diff options
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r-- | game/menus/ButtonSubScene.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/game/menus/ButtonSubScene.cpp b/game/menus/ButtonSubScene.cpp index e41c798..2fb4c38 100644 --- a/game/menus/ButtonSubScene.cpp +++ b/game/menus/ButtonSubScene.cpp @@ -1,5 +1,6 @@ #include "ButtonSubScene.h" #include "ButtonNextMainMenuSubScript.h" +#include "ButtonReplaySubScript.h" #include "ButtonSetMainMenuSubScript.h" #include "ButtonSetShopSubScript.h" #include "IButtonScript.h" @@ -58,6 +59,10 @@ 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::NONE: button_object.add_component<BehaviorScript>().set_script<IButtonScript>(); break; |