blob: 88639bd4a0890d0e46b57d93494f8fd9dbb5cc3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "ButtonSetShopScript.h"
#include "MenusConfig.h"
using namespace crepe;
using namespace std;
void ButtonSetShopScript::init(){
IButtonScript::init();
this->subscribe<ButtonPressEvent>([this](const ButtonPressEvent& e) { return this->on_button_press(e); });
}
bool ButtonSetShopScript::on_button_press(const ButtonPressEvent& e){
this->set_next_scene(SHOP_SCENE);
return false;
}
|