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/UI/Window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/UI/Window.h') diff --git a/source/UI/Window.h b/source/UI/Window.h index 1f2495a46..68774aa59 100644 --- a/source/UI/Window.h +++ b/source/UI/Window.h @@ -106,7 +106,9 @@ public: ); void OpenedByPlayer(cPlayer & a_Player); - void ClosedByPlayer(cPlayer & a_Player); + + /// Called when a player closes this window; notifies all slot areas. Returns true if close accepted + virtual bool ClosedByPlayer(cPlayer & a_Player); void SendWholeWindow(cClientHandle & a_Client); void BroadcastWholeWindow(void); -- cgit v1.2.3