diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 13:40:20 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 13:40:20 +0100 |
commit | aa8bf26452157f81f72b6d6759e461ff2ca24568 (patch) | |
tree | c8b69948708410dac3282ab5d3e7f9cde4cce22f /game/menus/mainmenu/MainMenuScene.cpp | |
parent | c001bfe4e82cecc880700b6f2a434371d818a473 (diff) |
updated preview and added credits button
Diffstat (limited to 'game/menus/mainmenu/MainMenuScene.cpp')
-rw-r--r-- | game/menus/mainmenu/MainMenuScene.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/game/menus/mainmenu/MainMenuScene.cpp b/game/menus/mainmenu/MainMenuScene.cpp index 43418e3..743fe43 100644 --- a/game/menus/mainmenu/MainMenuScene.cpp +++ b/game/menus/mainmenu/MainMenuScene.cpp @@ -64,7 +64,7 @@ void MainMenuScene::load_scene() { ButtonSubScene::Data { .text = "SHOP", .text_offset = {-20, 0}, - .text_width = 115, + .text_width = 110, .icon_offset = {60, 0}, .icon_type = ButtonSubScene::IconSelect::SHOP, .position = pos_btn, @@ -72,6 +72,19 @@ void MainMenuScene::load_scene() { } ); + //Credits btn + pos_btn.y += MENU_BUTTON_SPACING + LARGE_OVERLAY_SIZE.y; + button.create( + *this, + ButtonSubScene::Data { + .text = "CREDITS", + .text_offset = {0, 0}, + .text_width = 200, + .position = pos_btn, + //.script_type = ButtonSubScene::ScriptSelect::SHOP, + } + ); + //Start of map StartSubScene start; HallwaySubScene hallway; |