aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-08 19:47:31 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-08 19:47:31 +0100
commit30974f588816aa03652002111c6a946b138e3bc5 (patch)
tree247b7f5b01c3a9ffad7f2c6ef7ac2c30109f3f8f /game/menus/ButtonSubScene.cpp
parentef3f5b0845ba127c0bfcda8c2fce37013fef3878 (diff)
replay in preview scene
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r--game/menus/ButtonSubScene.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/game/menus/ButtonSubScene.cpp b/game/menus/ButtonSubScene.cpp
index 30646f1..2c912b7 100644
--- a/game/menus/ButtonSubScene.cpp
+++ b/game/menus/ButtonSubScene.cpp
@@ -7,6 +7,9 @@
#include "IButtonScript.h"
#include "MenusConfig.h"
+#include "../preview/PreviewReplaySubScript.h"
+#include "../preview/PreviewStartRecSubScript.h"
+#include "../preview/PreviewStopRecSubScript.h"
#include "mainmenu/ButtonTransitionPreviewSubScript.h"
#include "../Config.h"
@@ -72,6 +75,18 @@ void ButtonSubScene::set_script(crepe::GameObject & button_object, const Data &
button_object.add_component<BehaviorScript>()
.set_script<ButtonShowCreditsSubScript>();
break;
+ case ScriptSelect::PREVIEW_REPLAY:
+ button_object.add_component<BehaviorScript>()
+ .set_script<PreviewReplaySubScript>();
+ break;
+ case ScriptSelect::PREVIEW_START:
+ button_object.add_component<BehaviorScript>()
+ .set_script<PreviewStartRecSubScript>();
+ break;
+ case ScriptSelect::PREVIEW_STOP:
+ button_object.add_component<BehaviorScript>()
+ .set_script<PreviewStopRecSubScript>();
+ break;
case ScriptSelect::NONE:
button_object.add_component<BehaviorScript>().set_script<IButtonScript>();
break;