aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ButtonSubScene.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-03 21:02:48 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-03 21:02:48 +0100
commit5ae4e3f0e3ff1d111eaea54b7b0a0788203d9d72 (patch)
treeabd7e7965eaff19c76daecb8a3f4514106562a09 /game/mainmenu/ButtonSubScene.h
parent209957a36c19968292032ead5974a695b22ffceb (diff)
bug fix
Diffstat (limited to 'game/mainmenu/ButtonSubScene.h')
-rw-r--r--game/mainmenu/ButtonSubScene.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/game/mainmenu/ButtonSubScene.h b/game/mainmenu/ButtonSubScene.h
index 6f183ed..843dbcd 100644
--- a/game/mainmenu/ButtonSubScene.h
+++ b/game/mainmenu/ButtonSubScene.h
@@ -1,6 +1,7 @@
#pragma once
#include <crepe/api/GameObject.h>
+#include <string>
#include "MainMenuConfig.h"
namespace crepe {
@@ -19,6 +20,7 @@ public:
//icon enum
enum class IconSelect {
SHOP,
+ COINS,
NONE,
};
//icon enum
@@ -37,13 +39,16 @@ public:
const ScriptSelect script_type = ScriptSelect::NONE;
const ButtonSelect button_type = ButtonSelect::LARGE;
const float scale = 1;
+ const bool worldspace = true;
+ const bool color_side = true;
+ const std::string & tag = "";
};
public:
void create(crepe::Scene & scn,const Data & data);
private:
- void large_btn_overlay(crepe::GameObject & button_object);
- void small_btn_overlay(crepe::GameObject & button_object);
- void btn_color_side(crepe::GameObject & button_object,const crepe::vec2 & offset);
+ void large_btn_overlay(crepe::GameObject & button_object,const Data & data);
+ void small_btn_overlay(crepe::GameObject & button_object,const Data & data);
+ void btn_color_side(crepe::GameObject & button_object,const crepe::vec2 & offset,const Data & data);
void btn_text(crepe::GameObject & button_object,const Data & data);
void set_script(crepe::GameObject & button_object,const Data & data);
void set_icon(crepe::GameObject & button_object,const Data & data);