summaryrefslogtreecommitdiff
path: root/src/cat/LuaButton.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat/LuaButton.h')
-rw-r--r--src/cat/LuaButton.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cat/LuaButton.h b/src/cat/LuaButton.h
index a092d07..012779d 100644
--- a/src/cat/LuaButton.h
+++ b/src/cat/LuaButton.h
@@ -7,6 +7,7 @@ extern "C" {
}
#include "LuaLuna.h"
+#include "LuaComponent.h"
namespace ui
{
@@ -15,23 +16,18 @@ namespace ui
class LuaScriptInterface;
-class LuaButton
+class LuaButton: public LuaComponent
{
ui::Button * button;
int actionFunction;
- lua_State * l;
void triggerAction();
int action(lua_State * l);
int text(lua_State * l);
- int position(lua_State * l);
- int size(lua_State * l);
+ int enabled(lua_State * l);
public:
- LuaScriptInterface * ci;
- int UserData;
static const char className[];
static Luna<LuaButton>::RegType methods[];
- ui::Button * GetComponent() { return button; }
LuaButton(lua_State * l);
~LuaButton();
}; \ No newline at end of file