From 2eb1240e14986e1cccc02a96713133a003347f8b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 30 May 2013 20:40:43 +0000 Subject: Added the OnClosing callback to cLuaWindow API git-svn-id: http://mc-server.googlecode.com/svn/trunk@1534 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Plugin_NewLua.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/Plugin_NewLua.h') diff --git a/source/Plugin_NewLua.h b/source/Plugin_NewLua.h index acc43c7a4..fc3565bbc 100644 --- a/source/Plugin_NewLua.h +++ b/source/Plugin_NewLua.h @@ -11,8 +11,12 @@ +// fwd: Lua typedef struct lua_State lua_State; +// fwd: UI/Window.h +class cWindow; + @@ -101,6 +105,9 @@ public: /// Removes a previously referenced object (luaL_unref()) void Unreference(int a_LuaRef); + /// Calls the plugin-specified "cLuaWindow closing" callback. Returns true only if the callback returned true + bool CallbackWindowClosing(int a_FnRef, cWindow & a_Window, cPlayer & a_Player); + protected: cCriticalSection m_CriticalSection; lua_State * m_LuaState; -- cgit v1.2.3