diff options
Diffstat (limited to 'src/cat/LuaLabel.cpp')
| -rw-r--r-- | src/cat/LuaLabel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cat/LuaLabel.cpp b/src/cat/LuaLabel.cpp index 5ab3d1c..c1d9497 100644 --- a/src/cat/LuaLabel.cpp +++ b/src/cat/LuaLabel.cpp @@ -6,6 +6,7 @@ extern "C" } #include <iostream> +#include "LuaScriptInterface.h" #include "LuaLabel.h" #include "interface/Label.h" @@ -28,6 +29,11 @@ LuaLabel::LuaLabel(lua_State * l) int sizeY = luaL_optinteger(l, 4, 10); std::string text = luaL_optstring(l, 5, ""); + lua_pushstring(l, "Luacon_ci"); + lua_gettable(l, LUA_REGISTRYINDEX); + ci = (LuaScriptInterface*)lua_touserdata(l, -1); + lua_pop(l, 1); + label = new ui::Label(ui::Point(posX, posY), ui::Point(sizeX, sizeY), text); } |
