aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-09 21:14:35 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-09 21:14:35 +0100
commitf6683fa71fa670cfbe6aa6233fafb869295da11a (patch)
treea46ee1d8856b5f0e0298abbab9c92ba21509d830 /game/menus/ButtonSubScene.cpp
parent296c7b8becc04fa0eeef7c732e5c62a26de45570 (diff)
added shop functionality
Diffstat (limited to 'game/menus/ButtonSubScene.cpp')
-rw-r--r--game/menus/ButtonSubScene.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/game/menus/ButtonSubScene.cpp b/game/menus/ButtonSubScene.cpp
index 436ff5f..baf154c 100644
--- a/game/menus/ButtonSubScene.cpp
+++ b/game/menus/ButtonSubScene.cpp
@@ -15,6 +15,8 @@
#include "../Config.h"
#include "mainmenu/CreditsSubScript.h"
+#include "menus/shop/ButtonBuySelectBubbleScript.h"
+#include "menus/shop/ButtonBuySelectBulletScript.h"
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/Button.h>
@@ -88,6 +90,14 @@ void ButtonSubScene::set_script(crepe::GameObject & button_object, const Data &
button_object.add_component<BehaviorScript>()
.set_script<PreviewStopRecSubScript>();
break;
+ case ScriptSelect::SHOP_BULLET:
+ button_object.add_component<BehaviorScript>()
+ .set_script<ButtonBuySelectBulletScript>();
+ break;
+ case ScriptSelect::SHOP_BUBBLE:
+ button_object.add_component<BehaviorScript>()
+ .set_script<ButtonBuySelectBubbleScript>();
+ break;
case ScriptSelect::NONE:
button_object.add_component<BehaviorScript>().set_script<IButtonScript>();
break;