aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/gui/iguicheckbox.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/iguicheckbox.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/iguicheckbox.cpp')
-rw-r--r--src/client/lua_api/gui/iguicheckbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/lua_api/gui/iguicheckbox.cpp b/src/client/lua_api/gui/iguicheckbox.cpp
index c0ca740..adfc28e 100644
--- a/src/client/lua_api/gui/iguicheckbox.cpp
+++ b/src/client/lua_api/gui/iguicheckbox.cpp
@@ -51,16 +51,16 @@ int newiguicheckbox(lua_State* L){
}
static const luaL_reg iguicheckbox_m[] = {
- {"move", moveiguielement},
- {"setText", setiguitext},
- //{"remove", guisethandeler},
- {0,0},
+ {0,0},
};
int iguicheckbox_register(lua_State* L){//
luaL_newmetatable(L,"gui.checkbox");//m{gui.checkbox}
+ lua_newtable(L);
+ luaL_register(L,NULL,iguielement_m);
luaL_register(L,NULL,iguicheckbox_m);
+ lua_setfield(L,-2,"__index");
lua_pop(L,1);//
lua_getglobal(L,"gui");//{gui}