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