diff options
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; |