slots-grid coord fix
This commit is contained in:
@@ -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)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user