diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:52:00 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:52:00 +0100 |
commit | b1824253875901b4fb6f4c5fee72aea6d807d370 (patch) | |
tree | 8acc156e68d48022f453dcf06b541f77a5803484 /game/menus/ButtonSetShopSubScript.cpp | |
parent | e9082de7d114ce024a884cac38c545c99de4026a (diff) | |
parent | e75ca1c947f3cde19bebf15049732bc069c6e913 (diff) |
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/menus/ButtonSetShopSubScript.cpp')
-rw-r--r-- | game/menus/ButtonSetShopSubScript.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/game/menus/ButtonSetShopSubScript.cpp b/game/menus/ButtonSetShopSubScript.cpp new file mode 100644 index 0000000..4f395eb --- /dev/null +++ b/game/menus/ButtonSetShopSubScript.cpp @@ -0,0 +1,17 @@ +#include "ButtonSetShopSubScript.h" +#include "MenusConfig.h" + +using namespace crepe; +using namespace std; + +void ButtonSetShopSubScript::init() { + IButtonScript::init(); + this->subscribe<ButtonPressEvent>([this](const ButtonPressEvent & e) { + return this->on_button_press(e); + }); +} + +bool ButtonSetShopSubScript::on_button_press(const ButtonPressEvent & e) { + this->set_next_scene(SHOP_SCENE); + return false; +} |