mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
InventoryView::readXML
This commit is contained in:
parent
8dbbea7b6d
commit
23705e065e
4 changed files with 91 additions and 10 deletions
|
|
@ -98,7 +98,14 @@ public:
|
|||
|
||||
void bind(std::shared_ptr<Inventory> inventory);
|
||||
|
||||
void addSlot(SlotLayout layout);
|
||||
std::shared_ptr<SlotView> addSlot(SlotLayout layout);
|
||||
|
||||
static std::shared_ptr<InventoryView> readXML(
|
||||
LevelFrontend* frontend,
|
||||
InventoryInteraction& interaction,
|
||||
const std::string& src,
|
||||
const std::string& file
|
||||
);
|
||||
|
||||
static const int SLOT_INTERVAL = 4;
|
||||
static const int SLOT_SIZE = ITEM_ICON_SIZE;
|
||||
|
|
@ -116,7 +123,8 @@ public:
|
|||
glm::vec2 coord,
|
||||
int padding,
|
||||
bool addpanel,
|
||||
SlotLayout slotLayout);
|
||||
SlotLayout slotLayout
|
||||
);
|
||||
|
||||
void add(SlotLayout slotLayout);
|
||||
std::shared_ptr<InventoryView> build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue