diff options
| author | Alexander Pickering <alex@cogarr.net> | 2018-06-30 21:20:51 -0600 |
|---|---|---|
| committer | Alexander Pickering <alex@cogarr.net> | 2018-06-30 21:20:51 -0600 |
| commit | 06203d8767e7da55deb4947c7660ff0136a31f29 (patch) | |
| tree | 91bc57f8b6372d5d585e3bd83b366421d8da8855 /src/client/lua_api/gui/iguiimage.cpp | |
| parent | e2568651c4dc1e42f123b6e8e8c7597ed50fd355 (diff) | |
| download | brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.tar.gz brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.tar.bz2 brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.zip | |
Removed some dead code
Removed a lot of commented out old code
Diffstat (limited to 'src/client/lua_api/gui/iguiimage.cpp')
| -rw-r--r-- | src/client/lua_api/gui/iguiimage.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
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){ |
