From 2c97dada7b9c7fedc511f1ecf012346c198d92f8 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 11 Aug 2018 08:17:13 -0400 Subject: Various updates Edit boxes can have their contents retreived Fixed a typo for edit box methods various updates to the net api --- src/client/lua_api/gui/iguiwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/lua_api/gui/iguiwindow.cpp') diff --git a/src/client/lua_api/gui/iguiwindow.cpp b/src/client/lua_api/gui/iguiwindow.cpp index e5c3193..3fbd5e4 100644 --- a/src/client/lua_api/gui/iguiwindow.cpp +++ b/src/client/lua_api/gui/iguiwindow.cpp @@ -76,8 +76,10 @@ static const luaL_reg iguiwindow_m[] = { }; int iguiwindow_register(lua_State* L, IrrlichtDevice* d){ - luaL_newmetatable(L,"gui.window");//m{gui.checkbox} + luaL_newmetatable(L,"gui.window");//m{gui.window} + lua_newtable(L); luaL_register(L,NULL,iguiwindow_m); + lua_setfield(L,-2,"__index"); lua_pop(L,1);// lua_getglobal(L,"gui"); -- cgit v1.2.3-70-g09d2