diff options
| author | Simon 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) |
| commit | 4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c (patch) | |
| tree | f76cf74aa260678cd230dba8955d378c5fa392f0 /src/cat/LuaWindow.cpp | |
| parent | b7616a91d860871a3e4ac46cba957633a93acb59 (diff) | |
| download | powder-4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c.zip powder-4e09a077a4d7494d1c1e1f494cbc36fa9abcb19c.tar.gz | |
Textbox component for Lua interface API
Diffstat (limited to 'src/cat/LuaWindow.cpp')
| -rw-r--r-- | src/cat/LuaWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cat/LuaWindow.cpp b/src/cat/LuaWindow.cpp index c837170..06b29c8 100644 --- a/src/cat/LuaWindow.cpp +++ b/src/cat/LuaWindow.cpp @@ -10,6 +10,7 @@ extern "C" #include "LuaWindow.h" #include "LuaButton.h" #include "LuaLabel.h" +#include "LuaTextbox.h" #include "interface/Button.h" #include "interface/Label.h" #include "interface/Window.h" @@ -103,6 +104,8 @@ int LuaWindow::addComponent(lua_State * l) component = Luna<LuaButton>::get(luaComponent)->GetComponent(); else if(luaComponent = Luna<LuaLabel>::tryGet(l, 1)) component = Luna<LuaLabel>::get(luaComponent)->GetComponent(); + else if(luaComponent = Luna<LuaTextbox>::tryGet(l, 1)) + component = Luna<LuaTextbox>::get(luaComponent)->GetComponent(); else luaL_typerror(l, 1, "Component"); if(component) |
