This commit is contained in:
MihailRis
2025-04-21 21:53:27 +03:00
parent fe2a40b06e
commit 3498af6be9
5 changed files with 6 additions and 26 deletions
+4 -4
View File
@@ -619,7 +619,7 @@ static slotcallback read_slot_func(
};
}
static void readSlot(
static void read_slot(
InventoryView* view, UiXmlReader& reader, const xml::xmlelement& element
) {
int index = element.attr("index", "0").asInt();
@@ -649,7 +649,7 @@ static void readSlot(
view->add(slot);
}
static void readSlotsGrid(
static void read_slots_grid(
InventoryView* view,
const UiXmlReader& reader,
const xml::xmlelement& element
@@ -726,9 +726,9 @@ static std::shared_ptr<UINode> read_inventory(
for (auto& sub : element.getElements()) {
if (sub->getTag() == "slot") {
readSlot(view.get(), reader, *sub);
read_slot(view.get(), reader, *sub);
} else if (sub->getTag() == "slots-grid") {
readSlotsGrid(view.get(), reader, *sub);
read_slots_grid(view.get(), reader, *sub);
}
}
return view;