aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-07 15:03:53 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-07 15:03:53 +0100
commite7ff8a9d0cff724520c4fb7a13b77e93797759cf (patch)
treec9261f172eef20857010180d82cb30e51cd6e5e8 /game/menus/ButtonSubScene.cpp
parent2c4091f845513cee2de4aac652f9720c74789327 (diff)
saving coins avaiable in menu
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r--game/menus/ButtonSubScene.cpp4
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;