diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:37 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:37 +0100 |
commit | 3b6081d03300d353434fd4f6e91237fc8f1a4390 (patch) | |
tree | 4c7b75f641e36de0c8aea933ea2cbdb213c35f0b /game/menus/ButtonSubScene.cpp | |
parent | aa8bf26452157f81f72b6d6759e461ff2ca24568 (diff) |
added credit window
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r-- | game/menus/ButtonSubScene.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/game/menus/ButtonSubScene.cpp b/game/menus/ButtonSubScene.cpp index 2fb4c38..d657be9 100644 --- a/game/menus/ButtonSubScene.cpp +++ b/game/menus/ButtonSubScene.cpp @@ -3,12 +3,14 @@ #include "ButtonReplaySubScript.h" #include "ButtonSetMainMenuSubScript.h" #include "ButtonSetShopSubScript.h" +#include "ButtonShowCreditsSubScript.h" #include "IButtonScript.h" #include "MenusConfig.h" #include "mainmenu/ButtonTransitionPreviewSubScript.h" #include "../Config.h" +#include "mainmenu/CreditsSubScript.h" #include <crepe/api/BehaviorScript.h> #include <crepe/api/Button.h> @@ -63,6 +65,14 @@ void ButtonSubScene::set_script(crepe::GameObject & button_object, const Data & button_object.add_component<BehaviorScript>() .set_script<ButtonReplaySubScript>(); break; + case ScriptSelect::CREDITS_BACK: + button_object.add_component<BehaviorScript>() + .set_script<CreditsSubScript>(data.tag); + break; + case ScriptSelect::CREDITS_SHOW: + button_object.add_component<BehaviorScript>() + .set_script<ButtonShowCreditsSubScript>(); + break; case ScriptSelect::NONE: button_object.add_component<BehaviorScript>().set_script<IButtonScript>(); break; |