aboutsummaryrefslogtreecommitdiff
path: root/game/menus/mainmenu/MainMenuScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-08 14:40:37 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-08 14:40:37 +0100
commit3b6081d03300d353434fd4f6e91237fc8f1a4390 (patch)
tree4c7b75f641e36de0c8aea933ea2cbdb213c35f0b /game/menus/mainmenu/MainMenuScene.cpp
parentaa8bf26452157f81f72b6d6759e461ff2ca24568 (diff)
added credit window
Diffstat (limited to 'game/menus/mainmenu/MainMenuScene.cpp')
-rw-r--r--game/menus/mainmenu/MainMenuScene.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/game/menus/mainmenu/MainMenuScene.cpp b/game/menus/mainmenu/MainMenuScene.cpp
index 743fe43..fba90ac 100644
--- a/game/menus/mainmenu/MainMenuScene.cpp
+++ b/game/menus/mainmenu/MainMenuScene.cpp
@@ -1,5 +1,6 @@
#include "MainMenuScene.h"
+#include "CreditsSubScene.h"
#include "MainMenuConfig.h"
#include "TransitionStartSubScript.h"
@@ -81,7 +82,7 @@ void MainMenuScene::load_scene() {
.text_offset = {0, 0},
.text_width = 200,
.position = pos_btn,
- //.script_type = ButtonSubScene::ScriptSelect::SHOP,
+ .script_type = ButtonSubScene::ScriptSelect::CREDITS_SHOW,
}
);
@@ -123,6 +124,9 @@ void MainMenuScene::load_scene() {
.tag = MENU_INFO_TAG,
}
);
+
+ CreditsSubScene creditscene;
+ creditscene.create(*this);
}
string MainMenuScene::get_name() const { return MAINMENU_SCENE; }