summaryrefslogtreecommitdiffstats
path: root/source/UI/Window.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-18 13:26:37 +0200
committermadmaxoft <github@xoft.cz>2013-08-18 13:26:37 +0200
commit0d323563e4cc507e58ce1bb3ba632cf2310602c9 (patch)
tree0e06074b10344f81c823f4572f5a7035c68f04ff /source/UI/Window.h
parentcListenThread correctly closes all sockets. (diff)
downloadcuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar
cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.gz
cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.bz2
cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.lz
cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.xz
cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.zst
cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.zip
Diffstat (limited to 'source/UI/Window.h')
-rw-r--r--source/UI/Window.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/UI/Window.h b/source/UI/Window.h
index 0be43e819..aa7e9d0d0 100644
--- a/source/UI/Window.h
+++ b/source/UI/Window.h
@@ -120,14 +120,20 @@ public:
/// Sends the contents of the whole window to all clients of this window.
void BroadcastWholeWindow(void);
- /// Sends the progressbar to all clients of this window
- void BroadcastInventoryProgress(short a_Progressbar, short a_Value);
+ /// Sends the progressbar to all clients of this window (same as SetProperty)
+ void BroadcastProgress(int a_Progressbar, int a_Value);
// tolua_begin
const AString & GetWindowTitle() const { return m_WindowTitle; }
void SetWindowTitle(const AString & a_WindowTitle ) { m_WindowTitle = a_WindowTitle; }
+ /// Sends the UpdateWindowProperty (0x69) packet to all clients of the window
+ void SetProperty(int a_Property, int a_Value);
+
+ /// Sends the UpdateWindowPropert(0x69) packet to the specified player
+ void SetProperty(int a_Property, int a_Value, cPlayer & a_Player);
+
// tolua_end
void OwnerDestroyed(void);