blob: 4f395ebd29168404f1f058e6d89c49f6a87ca7da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
|