slots-grid coord fix
This commit is contained in:
parent
87f50f79c9
commit
e9cbb04090
@ -207,4 +207,4 @@ const ubyte* ByteReader::pointer() const {
|
||||
|
||||
void ByteReader::skip(size_t n) {
|
||||
pos += n;
|
||||
}
|
||||
}
|
||||
|
||||
@ -396,7 +396,7 @@ static void readSlotsGrid(InventoryView* view, gui::UiXmlReader& reader, xml::xm
|
||||
}
|
||||
SlotLayout slotLayout = layout;
|
||||
slotLayout.index = startIndex + idx;
|
||||
slotLayout.position = glm::vec2(
|
||||
slotLayout.position += glm::vec2(
|
||||
padding + col * (slotSize + interval),
|
||||
padding + row * (slotSize + interval)
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user