summaryrefslogtreecommitdiffstats
path: root/source/cCraftingWindow.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-14 16:18:24 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-14 16:18:24 +0200
commit8f79074c421fb69c29511acd829e777c4ceba706 (patch)
tree866c2527af4cfe0af7482a21e6f2a45f6c820078 /source/cCraftingWindow.h
parentShift-clicking the crafting grid in curvival inventory tries placing things in inventory first, then the hotbar. (diff)
downloadcuberite-8f79074c421fb69c29511acd829e777c4ceba706.tar
cuberite-8f79074c421fb69c29511acd829e777c4ceba706.tar.gz
cuberite-8f79074c421fb69c29511acd829e777c4ceba706.tar.bz2
cuberite-8f79074c421fb69c29511acd829e777c4ceba706.tar.lz
cuberite-8f79074c421fb69c29511acd829e777c4ceba706.tar.xz
cuberite-8f79074c421fb69c29511acd829e777c4ceba706.tar.zst
cuberite-8f79074c421fb69c29511acd829e777c4ceba706.zip
Diffstat (limited to 'source/cCraftingWindow.h')
-rw-r--r--source/cCraftingWindow.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/source/cCraftingWindow.h b/source/cCraftingWindow.h
index 16fe3bb23..70a731a65 100644
--- a/source/cCraftingWindow.h
+++ b/source/cCraftingWindow.h
@@ -1,13 +1,38 @@
+
#pragma once
#include "cWindow.h"
+
+
+
+// fwd:
class cWindowOwner;
+
+
+
+
+
class cCraftingWindow : public cWindow
{
public:
- cCraftingWindow( cWindowOwner* a_Owner, bool a_bInventoryVisible );
+ enum
+ {
+ SLOT_CRAFTING_RESULT = 0,
+ SLOT_CRAFTING_MIN = 1,
+ SLOT_CRAFTING_MAX = 9,
+ } ;
+
+ cCraftingWindow(cWindowOwner * a_Owner, bool a_bInventoryVisible);
+
+ virtual void Clicked(cPacket_WindowClick * a_ClickPacket, cPlayer & a_Player);
+ virtual void Close(cPlayer & a_Player);
+
+ void ShiftClicked(cPacket_WindowClick * a_ClickPacket, cPlayer & a_Player);
+ void ShiftClickedCraftingResult(short a_Slot, cPlayer & a_Player);
+ void ShiftClickedCraftingGrid (short a_Slot, cPlayer & a_Player);
+};
+
+
+
- virtual void Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player );
- virtual void Close( cPlayer & a_Player );
-}; \ No newline at end of file