diff options
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r-- | game/menus/ButtonSubScene.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/game/menus/ButtonSubScene.cpp b/game/menus/ButtonSubScene.cpp index 8574b9b..ea0df8a 100644 --- a/game/menus/ButtonSubScene.cpp +++ b/game/menus/ButtonSubScene.cpp @@ -1,4 +1,5 @@ #include "ButtonSubScene.h" +#include "ButtonNextMainMenuScript.h" #include "ButtonSetMainMenuScript.h" #include "ButtonSetShopScript.h" #include "IButtonScript.h" @@ -46,6 +47,9 @@ void ButtonSubScene::set_script(crepe::GameObject & button_object,const Data & d case ScriptSelect::MAINMENU: button_object.add_component<BehaviorScript>().set_script<ButtonSetMainMenuScript>(); break; + case ScriptSelect::NEXT: + button_object.add_component<BehaviorScript>().set_script<ButtonNextMainMenuScript>(); + break; case ScriptSelect::NONE: button_object.add_component<BehaviorScript>().set_script<IButtonScript>(); break; |