lua suppliers update + label supplier XML attribute

This commit is contained in:
MihailRis
2024-03-19 14:04:06 +03:00
parent d5c39a05fb
commit f89c252ddf
4 changed files with 30 additions and 4 deletions
+8
View File
@@ -170,6 +170,14 @@ static std::shared_ptr<UINode> readLabel(UiXmlReader& reader, xml::xmlelement el
align_from_string(element->attr("valign").getText(), label->getVerticalAlign())
);
}
if (element->has("supplier")) {
auto supplier = scripting::create_wstring_supplier(
reader.getEnvironment().getId(),
element->attr("supplier").getText(),
reader.getFilename()
);
label->textSupplier(supplier);
}
return label;
}