mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
xml: panel orientation
This commit is contained in:
parent
22d2dc1cbe
commit
fcb4b1c38f
1 changed files with 6 additions and 0 deletions
|
|
@ -136,6 +136,12 @@ static void _readPanel(UiXmlReader& reader, xml::xmlelement element, Panel& pane
|
|||
if (element->has("max-length")) {
|
||||
panel.setMaxLength(element->attr("max-length").asInt());
|
||||
}
|
||||
if (element->has("orientation")) {
|
||||
auto oname = element->attr("orientation").getText();
|
||||
if (oname == "horizontal") {
|
||||
panel.setOrientation(Orientation::horizontal);
|
||||
}
|
||||
}
|
||||
if (subnodes) {
|
||||
for (auto& sub : element->getElements()) {
|
||||
if (sub->isText())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue