summaryrefslogtreecommitdiffstats
path: root/source/UI/cWindow.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-21 22:50:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-21 22:50:34 +0200
commit50c6a660922410e9c010583f597ee3f011f43226 (patch)
treec3a53b70f7ff1d390d7469b739b2f4afaafa9f8f /source/UI/cWindow.h
parentUI: Added shift-click support to most slot areas, except crafting. (diff)
downloadcuberite-50c6a660922410e9c010583f597ee3f011f43226.tar
cuberite-50c6a660922410e9c010583f597ee3f011f43226.tar.gz
cuberite-50c6a660922410e9c010583f597ee3f011f43226.tar.bz2
cuberite-50c6a660922410e9c010583f597ee3f011f43226.tar.lz
cuberite-50c6a660922410e9c010583f597ee3f011f43226.tar.xz
cuberite-50c6a660922410e9c010583f597ee3f011f43226.tar.zst
cuberite-50c6a660922410e9c010583f597ee3f011f43226.zip
Diffstat (limited to 'source/UI/cWindow.h')
-rw-r--r--source/UI/cWindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/UI/cWindow.h b/source/UI/cWindow.h
index 980a1e711..0fc368c9c 100644
--- a/source/UI/cWindow.h
+++ b/source/UI/cWindow.h
@@ -58,7 +58,7 @@ public:
cWindow(WindowType a_WindowType, const AString & a_WindowTitle);
virtual ~cWindow();
- int GetWindowID(void) const { return m_WindowID; }
+ char GetWindowID(void) const { return m_WindowID; }
int GetWindowType(void) const { return m_WindowType; }
cWindowOwner * GetOwner() { return m_Owner; }
@@ -99,6 +99,9 @@ public:
*/
void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, cSlotArea * a_ExcludeArea, bool a_ShouldApply);
+ /// Used by cSlotAreas to send individual slots to clients, a_RelativeSlotNum is the slot number relative to a_SlotArea
+ void SendSlot(cPlayer & a_Player, cSlotArea * a_SlotArea, int a_RelativeSlotNum);
+
protected:
cSlotAreas m_SlotAreas;