summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-12-17 19:14:01 +0100
committerHowaner <franzi.moos@googlemail.com>2014-12-17 19:14:01 +0100
commit8277e1ec4e3e761527bc850ac371f3b899d023bf (patch)
tree5a5cb6bb1609e24bdd32ddbfb9354e158b51f161 /src/UI/Window.h
parentMerge branch 'master' into Inventory (diff)
downloadcuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.gz
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.bz2
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.lz
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.xz
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.zst
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.zip
Diffstat (limited to 'src/UI/Window.h')
-rw-r--r--src/UI/Window.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/UI/Window.h b/src/UI/Window.h
index 9d9a5d7e8..811cac812 100644
--- a/src/UI/Window.h
+++ b/src/UI/Window.h
@@ -153,11 +153,12 @@ public:
/** Called on shift-clicking to distribute the stack into other areas; Modifies a_ItemStack as it is distributed!
if a_ShouldApply is true, the changes are written into the slots;
- if a_ShouldApply is false, only a_ItemStack is modified to reflect the number of fits (for fit-testing purposes)
- */
- virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply);
+ if a_ShouldApply is false, only a_ItemStack is modified to reflect the number of fits (for fit-testing purposes) */
+ virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) = 0;
- void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, cSlotAreas & a_AreasInOrder, bool a_ShouldApply, bool a_BackFill);
+ /** Called from DistributeStack() to distribute the stack into a_AreasInOrder; Modifies a_ItemStack as it is distributed!
+ If a_BackFill is true, the areas will be filled from the back (right side). (Example: Empty Hotbar -> Item get in slot 8, not slot 0) */
+ void DistributeStackToAreas(cItem & a_ItemStack, cPlayer & a_Player, cSlotAreas & a_AreasInOrder, bool a_ShouldApply, bool a_BackFill);
/** 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.