From b758b2b20da8e3ab002dacc663237e1681ae973c Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 29 Dec 2024 15:05:21 +0100 Subject: back button --- game/mainmenu/MainMenuScene.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'game/mainmenu/MainMenuScene.cpp') 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; -- cgit v1.2.3