summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-06 00:40:59 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-06 00:40:59 +0200
commit9d7a59012c428e0207583f35c79938bcdab625b5 (patch)
tree4835cc67b4d0f67662b402fb78a7940fbd682f36 /src/UI/SlotArea.h
parentAdd middle click. (diff)
downloadcuberite-9d7a59012c428e0207583f35c79938bcdab625b5.tar
cuberite-9d7a59012c428e0207583f35c79938bcdab625b5.tar.gz
cuberite-9d7a59012c428e0207583f35c79938bcdab625b5.tar.bz2
cuberite-9d7a59012c428e0207583f35c79938bcdab625b5.tar.lz
cuberite-9d7a59012c428e0207583f35c79938bcdab625b5.tar.xz
cuberite-9d7a59012c428e0207583f35c79938bcdab625b5.tar.zst
cuberite-9d7a59012c428e0207583f35c79938bcdab625b5.zip
Diffstat (limited to 'src/UI/SlotArea.h')
-rw-r--r--src/UI/SlotArea.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h
index b72450a58..03f538956 100644
--- a/src/UI/SlotArea.h
+++ b/src/UI/SlotArea.h
@@ -53,6 +53,9 @@ public:
/** Called from Clicked when the action is a middleclick */
virtual void MiddleClicked(cPlayer & a_Player, int a_SlotNum);
+ /** Called from Clicked when the action is a drop click. */
+ virtual void DropClicked(cPlayer & a_Player, int a_SlotNum, bool a_DropStack);
+
/// Called when a new player opens the same parent window. The window already tracks the player. CS-locked.
virtual void OnPlayerAdded(cPlayer & a_Player);
@@ -251,6 +254,9 @@ protected:
/// Handles a shift-click in the result slot. Crafts using the current recipe until it changes or no more space for result.
void ShiftClickedResult(cPlayer & a_Player);
+
+ /** Handles a drop-click in the result slot. */
+ void DropClickedResult(cPlayer & a_Player);
/// Updates the current recipe and result slot based on the ingredients currently in the crafting grid of the specified player
void UpdateRecipe(cPlayer & a_Player);