From 8f79074c421fb69c29511acd829e777c4ceba706 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 14 Aug 2012 14:18:24 +0000 Subject: Crafting window crafting grid shift-click handling git-svn-id: http://mc-server.googlecode.com/svn/trunk@735 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cCraftingWindow.h | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'source/cCraftingWindow.h') 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 -- cgit v1.2.3