aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/gui/iguiimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/lua_api/gui/iguiimage.cpp')
-rw-r--r--src/client/lua_api/gui/iguiimage.cpp29
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){