diff options
Diffstat (limited to 'src/client/callbackhandeler.cpp')
| -rw-r--r-- | src/client/callbackhandeler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/callbackhandeler.cpp b/src/client/callbackhandeler.cpp index e398e80..469084d 100644 --- a/src/client/callbackhandeler.cpp +++ b/src/client/callbackhandeler.cpp @@ -63,7 +63,9 @@ bool GlobalEventReceiver::OnEvent(const SEvent& e){ if(guielements.find(caller) == guielements.end()) return false; int ref = guielements[caller]; + printf("About to get gui element\n"); lua_rawgeti(L,LUA_REGISTRYINDEX,ref);//{guielement} + printf("done getting gui element\n"); const char* fieldname; switch(get){ case EGET_ELEMENT_FOCUSED: fieldname = "onFocus"; break; @@ -99,8 +101,6 @@ bool GlobalEventReceiver::OnEvent(const SEvent& e){ case EGET_TREEVIEW_NODE_COLLAPSE: fieldname = "onNodeCollapse"; break; case EGET_COUNT: break; } - - //printf("got fieldname:%s\n",fieldname); lua_getfield(L,-1,fieldname);//{guielement},func() if(lua_isnil(L,-1)){ lua_pop(L,2); @@ -109,7 +109,6 @@ bool GlobalEventReceiver::OnEvent(const SEvent& e){ lua_rawgeti(L,LUA_REGISTRYINDEX,ref);//{guielement},func(),{guielement} lua_call(L,1,1);//{guielement} int n = lua_gettop(L); - printf("Found %d arguments on top\n",n); if(n > 1){ int ans = lua_toboolean(L,-1); lua_pop(L,n); |
