aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonSubScene.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:33:41 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:33:41 +0100
commitce83df284173cfb4f6e430bf3ed8080ea21204d7 (patch)
treecb30e6bd44b4cf61ee696b55b46f7b817bf4157a /game/menus/ButtonSubScene.cpp
parent698628cf1fb1b8a1f68bf6a5672d984bd64be58f (diff)
parent26fe39ef4e633206a9b202d431c969c66052d2ef (diff)
Merge branch 'master' into niels/game
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r--game/menus/ButtonSubScene.cpp14
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;