@@ -9,14 +9,6 @@
|
||||
#include "ResultSlot.h"
|
||||
#include "CraftingMenu.h"
|
||||
|
||||
const int CraftingMenu::RESULT_SLOT = 0;
|
||||
const int CraftingMenu::CRAFT_SLOT_START = 1;
|
||||
const int CraftingMenu::CRAFT_SLOT_END = CraftingMenu::CRAFT_SLOT_START + 9;
|
||||
const int CraftingMenu::INV_SLOT_START = CraftingMenu::CRAFT_SLOT_END;
|
||||
const int CraftingMenu::INV_SLOT_END = CraftingMenu::INV_SLOT_START + 9 * 3;
|
||||
const int CraftingMenu::USE_ROW_SLOT_START = CraftingMenu::INV_SLOT_END;
|
||||
const int CraftingMenu::USE_ROW_SLOT_END = CraftingMenu::USE_ROW_SLOT_START + 9;
|
||||
|
||||
CraftingMenu::CraftingMenu(shared_ptr<Inventory> inventory, Level *level, int xt, int yt, int zt) : AbstractContainerMenu()
|
||||
{
|
||||
craftSlots = std::make_shared<CraftingContainer>(this, 3, 3);
|
||||
|
||||
@@ -9,13 +9,13 @@ class CraftingMenu : public AbstractContainerMenu
|
||||
{
|
||||
// 4J Stu Made these public for UI menus, perhaps should make friend class?
|
||||
public:
|
||||
static const int RESULT_SLOT;
|
||||
static const int CRAFT_SLOT_START;
|
||||
static const int CRAFT_SLOT_END;
|
||||
static const int INV_SLOT_START;
|
||||
static const int INV_SLOT_END;
|
||||
static const int USE_ROW_SLOT_START;
|
||||
static const int USE_ROW_SLOT_END;
|
||||
static const int RESULT_SLOT = 0;
|
||||
static const int CRAFT_SLOT_START = 1;
|
||||
static const int CRAFT_SLOT_END = CRAFT_SLOT_START + 9;
|
||||
static const int INV_SLOT_START = CRAFT_SLOT_END;
|
||||
static const int INV_SLOT_END = INV_SLOT_START + (9 * 3);
|
||||
static const int USE_ROW_SLOT_START = INV_SLOT_END;
|
||||
static const int USE_ROW_SLOT_END = USE_ROW_SLOT_START + 9;
|
||||
|
||||
public:
|
||||
shared_ptr<CraftingContainer> craftSlots;
|
||||
|
||||
Reference in New Issue
Block a user