mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
gui: added UINode.zindex
This commit is contained in:
parent
e1b2d8f7e4
commit
b6f675a540
6 changed files with 25 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ static void _readUINode(xml::xmlelement element, UINode& node) {
|
|||
if (element->has("margin")) {
|
||||
node.setMargin(element->attr("margin").asVec4());
|
||||
}
|
||||
if (element->has("z-index")) {
|
||||
node.setZIndex(element->attr("z-index").asInt());
|
||||
}
|
||||
std::string alignName = element->attr("align", "").getText();
|
||||
node.setAlign(align_from_string(alignName, node.getAlign()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue