summaryrefslogtreecommitdiffstats
path: root/source/UI/Window.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-30 22:40:43 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-30 22:40:43 +0200
commit2eb1240e14986e1cccc02a96713133a003347f8b (patch)
tree28c58a677423d507ab57e421b9fcb8df8b31c5e0 /source/UI/Window.h
parentWindow contents are sent whenever the window is opened by a player. (diff)
downloadcuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar
cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.gz
cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.bz2
cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.lz
cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.xz
cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.tar.zst
cuberite-2eb1240e14986e1cccc02a96713133a003347f8b.zip
Diffstat (limited to 'source/UI/Window.h')
-rw-r--r--source/UI/Window.h4
1 files changed, 3 insertions, 1 deletions
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);