summaryrefslogtreecommitdiffstats
path: root/source/UI/Window.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-10 18:42:46 +0100
committermadmaxoft <github@xoft.cz>2013-11-10 18:42:46 +0100
commitbd664e0a903989b259b0037c6d20c6c83595ff51 (patch)
treecabf8387dec35fc1a1a62dc8c02280370676e221 /source/UI/Window.h
parentAdded cItem::GetMaxStackSize() (diff)
downloadcuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.tar
cuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.tar.gz
cuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.tar.bz2
cuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.tar.lz
cuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.tar.xz
cuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.tar.zst
cuberite-bd664e0a903989b259b0037c6d20c6c83595ff51.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);