2012-08-14 10:18:24 -04:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cWindow.h"
|
|
|
|
|
2012-08-14 10:18:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// fwd:
|
2012-06-14 09:06:06 -04:00
|
|
|
class cWindowOwner;
|
2012-08-14 10:18:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
class cCraftingWindow : public cWindow
|
|
|
|
{
|
|
|
|
public:
|
2012-08-14 10:18:24 -04:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
SLOT_CRAFTING_RESULT = 0,
|
|
|
|
SLOT_CRAFTING_MIN = 1,
|
|
|
|
SLOT_CRAFTING_MAX = 9,
|
|
|
|
} ;
|
|
|
|
|
|
|
|
cCraftingWindow(cWindowOwner * a_Owner, bool a_bInventoryVisible);
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
virtual void Clicked(
|
|
|
|
cPlayer & a_Player,
|
|
|
|
int a_WindowID, short a_SlotNum, bool a_IsRightClick, bool a_IsShiftPressed,
|
|
|
|
const cItem & a_HeldItem
|
|
|
|
) override;
|
2012-08-14 10:18:24 -04:00
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
virtual void Close(cPlayer & a_Player) override;
|
|
|
|
|
|
|
|
void ShiftClicked(cPlayer & a_Player, short a_SlotNum);
|
|
|
|
void ShiftClickedCraftingResult(cPlayer & a_Player, short a_SlotNum);
|
|
|
|
void ShiftClickedCraftingGrid (cPlayer & a_Player, short a_SlotNum);
|
2012-08-14 10:18:24 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
|