summaryrefslogtreecommitdiffstats
path: root/source/UI/Window.cpp
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.cpp
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.cpp')
-rw-r--r--source/UI/Window.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/source/UI/Window.cpp b/source/UI/Window.cpp
index 415ce08ff..786ae6ed1 100644
--- a/source/UI/Window.cpp
+++ b/source/UI/Window.cpp
@@ -664,12 +664,12 @@ void cWindow::BroadcastWholeWindow(void)
-void cWindow::BroadcastInventoryProgress(short a_Progressbar, short a_Value)
+void cWindow::BroadcastProgress(int a_Progressbar, int a_Value)
{
cCSLock Lock(m_CS);
for (cPlayerList::iterator itr = m_OpenedBy.begin(); itr != m_OpenedBy.end(); ++itr)
{
- (*itr)->GetClientHandle()->SendInventoryProgress(m_WindowID, a_Progressbar, a_Value);
+ (*itr)->GetClientHandle()->SendWindowProperty(*this, a_Progressbar, a_Value);
} // for itr - m_OpenedBy[]
}
@@ -677,6 +677,28 @@ void cWindow::BroadcastInventoryProgress(short a_Progressbar, short a_Value)
+void cWindow::SetProperty(int a_Property, int a_Value)
+{
+ cCSLock Lock(m_CS);
+ for (cPlayerList::iterator itr = m_OpenedBy.begin(), end = m_OpenedBy.end(); itr != end; ++itr)
+ {
+ (*itr)->GetClientHandle()->SendWindowProperty(*this, a_Property, a_Value);
+ } // for itr - m_OpenedBy[]
+}
+
+
+
+
+
+void cWindow::SetProperty(int a_Property, int a_Value, cPlayer & a_Player)
+{
+ a_Player.GetClientHandle()->SendWindowProperty(*this, a_Property, a_Value);
+}
+
+
+
+
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cInventoryWindow: