This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/lua/LuaButton.h
jacob1 6749c2547f New SConscript (hopefully better)
Fixes a lot of bugs, also almost all options are no longer needed and are just auto-detected
2014-06-08 19:33:58 -04:00

28 lines
440 B
C++

#pragma once
#include "LuaLuna.h"
#include "LuaComponent.h"
namespace ui
{
class Button;
}
class LuaScriptInterface;
class LuaButton: public LuaComponent
{
ui::Button * button;
int actionFunction;
void triggerAction();
int action(lua_State * l);
int text(lua_State * l);
int enabled(lua_State * l);
public:
static const char className[];
static Luna<LuaButton>::RegType methods[];
LuaButton(lua_State * l);
~LuaButton();
};