From 06203d8767e7da55deb4947c7660ff0136a31f29 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 30 Jun 2018 21:20:51 -0600 Subject: Removed some dead code Removed a lot of commented out old code --- src/client/lua_api/gui/iguiimage.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/client/lua_api/gui/iguiimage.cpp') diff --git a/src/client/lua_api/gui/iguiimage.cpp b/src/client/lua_api/gui/iguiimage.cpp index 0428344..13a52b6 100644 --- a/src/client/lua_api/gui/iguiimage.cpp +++ b/src/client/lua_api/gui/iguiimage.cpp @@ -22,35 +22,6 @@ using namespace gui; extern IrrlichtDevice* device; extern IGUIEnvironment* env; -//IrrlichtDevice* guidevice; - - -//static bool iguiimageevent(irr::SEvent e){ - //IGUIElement* caller = (IGUIElement*)e.GUIEvent.Caller; - //int ref = iguielements[caller]; - //EGUI_EVENT_TYPE etype = e.GUIEvent.EventType; - //printf("Detected image event\n"); - //if(etype == EGET_ELEMENT_CLOSED){ - //lua_rawgeti(tL,LUA_REGISTRYINDEX,ref); - //printf("getting raw, the thing on the top of stack is a %s\n",luaL_typename(tL,-1)); - //LIGUIElement* tbut = checkiguiwindow(tL,-1); - //int hashmapresponse; - //char* hashkey = (char*)"onclose"; - //int terror = hashmap_get(tbut->funcmap,hashkey,(void**)&hashmapresponse); - //if(terror == MAP_OK){ //Only call if we actually have that function. - //printf("Looks like we have an onclose function, calling!\n"); - //lua_rawgeti(tL,LUA_REGISTRYINDEX,hashmapresponse); //push the function - //lua_rawgeti(tL,LUA_REGISTRYINDEX,ref); //push the referance to iguielement - //lua_call(tL,1,1); - ////int b = lua_isnoneornil(tL,1); - //int a = lua_toboolean(tL,-1); - //printf("a:%d\n",a); - //return a; - //} - //} - //printf("Oh no! an iguiimage generated an event!"); - //return false; -//} //new({startx,starty},alpha,{itexture}) -> {guielement} static int newiguiimage(lua_State* L){ -- cgit v1.2.3-70-g09d2