mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
fix 'align' ui property reading
This commit is contained in:
parent
47cdc02137
commit
c8ba5b5dbb
1 changed files with 3 additions and 2 deletions
|
|
@ -152,8 +152,9 @@ static void read_uinode(
|
||||||
if (element.has("pressed-color")) {
|
if (element.has("pressed-color")) {
|
||||||
node.setPressedColor(element.attr("pressed-color").asColor());
|
node.setPressedColor(element.attr("pressed-color").asColor());
|
||||||
}
|
}
|
||||||
const auto& alignName = element.attr("align", "").getText();
|
node.setAlign(
|
||||||
node.setAlign(align_from_string(alignName, node.getAlign()));
|
align_from_string(element.attr("align", "").getText(), node.getAlign())
|
||||||
|
);
|
||||||
|
|
||||||
if (element.has("gravity")) {
|
if (element.has("gravity")) {
|
||||||
node.setGravity(gravity_from_string(element.attr("gravity").getText()));
|
node.setGravity(gravity_from_string(element.attr("gravity").getText()));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue