diff options
author | Howaner <franzi.moos@googlemail.com> | 2015-02-06 21:54:47 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2015-02-06 21:54:47 +0100 |
commit | 7528230596dabc3aef975390caa6a55ec5d12a5c (patch) | |
tree | e945dedefb071cef0da4df832e121d5de9ada87f /src/UI/Window.h | |
parent | Merge branch 'master' into Inventory (diff) | |
download | cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.tar cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.tar.gz cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.tar.bz2 cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.tar.lz cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.tar.xz cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.tar.zst cuberite-7528230596dabc3aef975390caa6a55ec5d12a5c.zip |
Diffstat (limited to 'src/UI/Window.h')
-rw-r--r-- | src/UI/Window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/UI/Window.h b/src/UI/Window.h index 811cac812..9821aade1 100644 --- a/src/UI/Window.h +++ b/src/UI/Window.h @@ -157,6 +157,8 @@ public: virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) = 0; /** Called from DistributeStack() to distribute the stack into a_AreasInOrder; 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) 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); |