From bf7c2fe783133cd9f15d96981053ef7ab6aaf49a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 31 May 2013 07:16:14 +0000 Subject: Added cLuaWindow:SetOnSlotChanged(); the callback is called only for non-inventory slots git-svn-id: http://mc-server.googlecode.com/svn/trunk@1535 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Plugin_NewLua.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/Plugin_NewLua.h') diff --git a/source/Plugin_NewLua.h b/source/Plugin_NewLua.h index fc3565bbc..34ab85ca4 100644 --- a/source/Plugin_NewLua.h +++ b/source/Plugin_NewLua.h @@ -108,6 +108,9 @@ public: /// 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); + /// Calls the plugin-specified "cLuaWindow slot changed" callback. + void CallbackWindowSlotChanged(int a_FnRef, cWindow & a_Window, int a_SlotNum); + protected: cCriticalSection m_CriticalSection; lua_State * m_LuaState; -- cgit v1.2.3