From 30974f588816aa03652002111c6a946b138e3bc5 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 8 Jan 2025 19:47:31 +0100 Subject: replay in preview scene --- game/menus/ButtonSubScene.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'game/menus/ButtonSubScene.cpp') 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() .set_script(); break; + case ScriptSelect::PREVIEW_REPLAY: + button_object.add_component() + .set_script(); + break; + case ScriptSelect::PREVIEW_START: + button_object.add_component() + .set_script(); + break; + case ScriptSelect::PREVIEW_STOP: + button_object.add_component() + .set_script(); + break; case ScriptSelect::NONE: button_object.add_component().set_script(); break; -- cgit v1.2.3