aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/MainMenuScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-28 12:15:39 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-28 12:15:39 +0100
commitdeb1cd4732fb3a880cd10ce677e62fc2aac974a0 (patch)
tree28f02f1f4d88687688e9670c85f409c90bfc041d /game/mainmenu/MainMenuScene.cpp
parentf91eff6285f651f5c3e310927026f419e67657ab (diff)
interface scripts added
Diffstat (limited to 'game/mainmenu/MainMenuScene.cpp')
-rw-r--r--game/mainmenu/MainMenuScene.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/game/mainmenu/MainMenuScene.cpp b/game/mainmenu/MainMenuScene.cpp
index 85437db..42d0eca 100644
--- a/game/mainmenu/MainMenuScene.cpp
+++ b/game/mainmenu/MainMenuScene.cpp
@@ -41,8 +41,14 @@ void MainMenuScene::load_scene(){
});
//Shop btn
- // pos.y += MainMenuConfig::MENU_BUTTON_SPACING + MainMenuConfig::LARGE_OVERLAY_SIZE.y;
- // button.create(*this,"SHOP",vec2{0,0},vec2{200,80},pos);
+ pos.y += MainMenuConfig::MENU_BUTTON_SPACING + MainMenuConfig::LARGE_OVERLAY_SIZE.y;
+ button.create(*this,ButtonSubScene::Data{
+ .text = "SHOP",
+ .text_size = vec2{200,80},
+ .position = pos,
+ .script = ButtonSubScene::ScriptSelect::SHOP,
+ });
+
//Start of map
StartSubScene start;