summaryrefslogtreecommitdiff
path: root/src/cat/LuaButton.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-02 22:55:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-02 22:55:08 (GMT)
commit4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c (patch)
treef76cf74aa260678cd230dba8955d378c5fa392f0 /src/cat/LuaButton.h
parentb7616a91d860871a3e4ac46cba957633a93acb59 (diff)
downloadpowder-4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c.zip
powder-4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c.tar.gz
Textbox component for Lua interface API
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