summaryrefslogtreecommitdiffstats
path: root/source/UI
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-02 23:59:25 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-02 23:59:25 +0200
commit8ff22344af60a8f1d7de4501f04c7f659bd5bb08 (patch)
treedb241c9647d8e4c51d49d1f47c1b3236842f3747 /source/UI
parentAdded the possibility to specify enchantments by name in the constructor and AddFromString() function (diff)
downloadcuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar
cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.gz
cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.bz2
cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.lz
cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.xz
cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.zst
cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.zip
Diffstat (limited to '')
-rw-r--r--source/UI/Window.cpp2
-rw-r--r--source/UI/Window.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/UI/Window.cpp b/source/UI/Window.cpp
index f353d0721..3c28f33b0 100644
--- a/source/UI/Window.cpp
+++ b/source/UI/Window.cpp
@@ -251,7 +251,7 @@ void cWindow::OpenedByPlayer(cPlayer & a_Player)
-bool cWindow::ClosedByPlayer(cPlayer & a_Player)
+bool cWindow::ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse)
{
// Checks whether the player is still holding an item
if (a_Player.IsDraggingItem())
diff --git a/source/UI/Window.h b/source/UI/Window.h
index 68774aa59..0ff87dc70 100644
--- a/source/UI/Window.h
+++ b/source/UI/Window.h
@@ -108,7 +108,7 @@ public:
void OpenedByPlayer(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);
+ virtual bool ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse);
void SendWholeWindow(cClientHandle & a_Client);
void BroadcastWholeWindow(void);