diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-29 15:05:21 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-29 15:05:21 +0100 |
commit | b758b2b20da8e3ab002dacc663237e1681ae973c (patch) | |
tree | 60c41aa58570eaebbc589b07ff13f045fe46a93a /game/mainmenu/MainMenuScene.cpp | |
parent | e007e8f467349eeddaf503e31897d4135ba6fed4 (diff) |
back button
Diffstat (limited to 'game/mainmenu/MainMenuScene.cpp')
-rw-r--r-- | game/mainmenu/MainMenuScene.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/game/mainmenu/MainMenuScene.cpp b/game/mainmenu/MainMenuScene.cpp index 80c945b..e514ee5 100644 --- a/game/mainmenu/MainMenuScene.cpp +++ b/game/mainmenu/MainMenuScene.cpp @@ -34,19 +34,22 @@ void MainMenuScene::load_scene(){ //Preview btn button.create(*this,ButtonSubScene::Data{ .text = "PREVIEW", - .text_size = vec2{200,80}, + .text_width = 200, .position = pos, - .script = ButtonSubScene::ScriptSelect::PREVIEW, + .script_type = ButtonSubScene::ScriptSelect::PREVIEW, }); - //Shop btn pos.y += MainMenuConfig::MENU_BUTTON_SPACING + MainMenuConfig::LARGE_OVERLAY_SIZE.y; button.create(*this,ButtonSubScene::Data{ .text = "SHOP", - .text_size = vec2{200,80}, + .text_offset = {-20,0}, + .text_width = 115, + .icon_offset = {60,0}, + .icon_type = ButtonSubScene::IconSelect::SHOP, .position = pos, - .script = ButtonSubScene::ScriptSelect::SHOP, + .script_type = ButtonSubScene::ScriptSelect::SHOP, }); + //Start of map StartSubScene start; |