diff options
author | heavydemon21 <48092678+heavydemon21@users.noreply.github.com> | 2025-01-08 15:29:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 15:29:11 +0100 |
commit | 26fe39ef4e633206a9b202d431c969c66052d2ef (patch) | |
tree | b69eb6438434c65ce121ca609956364b0c793345 /game/menus/ButtonSubScene.cpp | |
parent | 52dab49823377e9ffaf7b583edc102b559e7382a (diff) | |
parent | 14d2398b776d7be3c404af5f4e983b435efaf1d1 (diff) |
Merge pull request #113 from lonkaars/jaro/game
Jaro/game
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r-- | game/menus/ButtonSubScene.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/game/menus/ButtonSubScene.cpp b/game/menus/ButtonSubScene.cpp index e41c798..30646f1 100644 --- a/game/menus/ButtonSubScene.cpp +++ b/game/menus/ButtonSubScene.cpp @@ -1,13 +1,16 @@ #include "ButtonSubScene.h" #include "ButtonNextMainMenuSubScript.h" +#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> @@ -58,6 +61,17 @@ void ButtonSubScene::set_script(crepe::GameObject & button_object, const Data & button_object.add_component<BehaviorScript>() .set_script<ButtonNextMainMenuSubScript>(); break; + case ScriptSelect::REPLAY: + 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; |