diff options
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) |
