summaryrefslogtreecommitdiffstats
path: root/source/UI/Window.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-10 21:42:56 +0100
committermadmaxoft <github@xoft.cz>2013-11-10 21:42:56 +0100
commitdde491ee0e3663440f05165f140e9086f68c69bf (patch)
tree4bec6ba6a6a60ff53fe3f2c7c9990fd4059cde5e /source/UI/Window.h
parentRenamed variables in cWolf. (diff)
parentImplemented inventory dblclick. (diff)
downloadcuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar
cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.gz
cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.bz2
cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.lz
cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.xz
cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.zst
cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.zip
Diffstat (limited to 'source/UI/Window.h')
-rw-r--r--source/UI/Window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/UI/Window.h b/source/UI/Window.h
index 6927cd3ac..c44b900d7 100644
--- a/source/UI/Window.h
+++ b/source/UI/Window.h
@@ -156,6 +156,12 @@ public:
*/
void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, cSlotArea * a_ExcludeArea, bool a_ShouldApply);
+ /// Called on DblClicking to collect all stackable items from all areas into hand, starting with the specified area.
+ /// The items are accumulated in a_Dragging and removed from the SlotAreas immediately.
+ /// If a_CollectFullStacks is false, slots with full stacks in the area are skipped while collecting.
+ /// Returns true if full stack has been collected, false if there's space remaining to fill.
+ bool CollectItemsToHand(cItem & a_Dragging, cSlotArea & a_Area, cPlayer & a_Player, bool a_CollectFullStacks);
+
/// 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);