mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
slots-grid coord fix
This commit is contained in:
parent
87f50f79c9
commit
e9cbb04090
2 changed files with 2 additions and 2 deletions
|
|
@ -207,4 +207,4 @@ const ubyte* ByteReader::pointer() const {
|
||||||
|
|
||||||
void ByteReader::skip(size_t n) {
|
void ByteReader::skip(size_t n) {
|
||||||
pos += n;
|
pos += n;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ static void readSlotsGrid(InventoryView* view, gui::UiXmlReader& reader, xml::xm
|
||||||
}
|
}
|
||||||
SlotLayout slotLayout = layout;
|
SlotLayout slotLayout = layout;
|
||||||
slotLayout.index = startIndex + idx;
|
slotLayout.index = startIndex + idx;
|
||||||
slotLayout.position = glm::vec2(
|
slotLayout.position += glm::vec2(
|
||||||
padding + col * (slotSize + interval),
|
padding + col * (slotSize + interval),
|
||||||
padding + row * (slotSize + interval)
|
padding + row * (slotSize + interval)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue