aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/gui/iguilabel.cpp
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2018-08-12 15:03:08 -0400
committerAlexander Pickering <alex@cogarr.net>2018-08-12 15:03:08 -0400
commitd169407dbc6d54ed4eb0bee06c6169b6ea40761d (patch)
tree859d9009286852ba68824af64dbda7cdadf15adc /src/client/lua_api/gui/iguilabel.cpp
parent57a195bb6bcdcee16824a669270946ff284f629b (diff)
downloadbrokengine-d169407dbc6d54ed4eb0bee06c6169b6ea40761d.tar.gz
brokengine-d169407dbc6d54ed4eb0bee06c6169b6ea40761d.tar.bz2
brokengine-d169407dbc6d54ed4eb0bee06c6169b6ea40761d.zip
Changed files to use the common iguielement registry
Files now use the registry defined in iguielement, so they are all in sync.
Diffstat (limited to 'src/client/lua_api/gui/iguilabel.cpp')
-rw-r--r--src/client/lua_api/gui/iguilabel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/lua_api/gui/iguilabel.cpp b/src/client/lua_api/gui/iguilabel.cpp
index 436844e..92611b2 100644
--- a/src/client/lua_api/gui/iguilabel.cpp
+++ b/src/client/lua_api/gui/iguilabel.cpp
@@ -69,9 +69,6 @@ static const luaL_reg iguilabel_f[] = {
};
static const luaL_reg iguilabel_m[] = {
- {"move", moveiguielement},
- {"settext", setiguitext},
- {"remove", removeiguielement},
{0, 0},
};
@@ -80,7 +77,8 @@ void iguilabel_register(lua_State* L){
luaL_newmetatable(L, "gui.iguilabel");//{m_gui.iguilabel}
lua_newtable(L);//{m_gui.iguilabel},{}
- luaL_register(L,"iguilabel",iguilabel_m);//{m_gui.iguilabel},{guilabel}
+ luaL_register(L,NULL,iguilabel_m);//{m_gui.iguilabel},{guilabel}
+ luaL_register(L,NULL,iguielement_m);
lua_setfield(L,-2,"__index");//{m_gui.iguilabel}
lua_pop(L,1);