Hi
Have anyone tried loading a UI into a scene with Window UIElements? I tried to in the past pre-1.40 and Urho couldn’t do it. So, I removed the Window elements because it was being assigned correctly display wise.
I’m starting to load UI interfaces like configuration, player info, panels. I just want to create the interfaces in the editor and load them in the code with the right actions after… I am not sure how it’s going be all managed specifically the events.
Vivienne
The latest test of
<?xml version="1.0"?>
<element>
<attribute name="Name" value="PlayerWindowUIElement" />
<attribute name="Size" value="600 460" />
<attribute name="Is Enabled" value="true" />
<element type="Window">
<attribute name="Name" value="PlayerWindow" />
<attribute name="Size" value="600 460" />
<attribute name="Opacity" value="0.9" />
<attribute name="Use Derived Opacity" value="false" />
<attribute name="Blend Mode" value="add" />
<attribute name="Is Movable" value="true" />
<attribute name="Is Resizable" value="true" />
<element type="Window">
<attribute name="Name" value="PlayerWindowMenuArea" />
<attribute name="Position" value="16 3" />
<attribute name="Size" value="500 32" />
<element type="Button">
<attribute name="Size" value="32 32" />
</element>
<element type="Button">
<attribute name="Position" value="48 0" />
<attribute name="Size" value="32 32" />
</element>
</element>
<element type="Window">
<attribute name="Name" value="PlayerWindowContext" />
<attribute name="Position" value="16 56" />
<attribute name="Size" value="568 400" />
</element>
</element>
<element>
<attribute name="Name" value="CloseButtonUIElement" />
<attribute name="Position" value="566 18" />
<attribute name="Is Enabled" value="true" />
<element type="Button">
<attribute name="Name" value="closeButton" />
<attribute name="Blend Mode" value="add" />
</element>
</element>
</element>
Gave me attribute errors specifically the stuff relating to window resize and sizing.