Archive 17/01/2023.

[Solved] What’s the usage of the UIElement color attribute?

victorfence

Hello everyone
I found the UIElement have a attribute named Color. This seems the setting of background color.

 <element>
    <attribute name="Is Enabled" value="true" />
    <attribute name="Color" value="0.3 0.4 0.9 1" />
    <attribute name="Opacity" value="1" />
    <attribute name="Size" value="300 100" />
</element>

I saw no background, just a placeholder, Can anyone give me some introduce about this?

victorfence

[quote=“Sinoid”]
Plain elements don’t render. They’re just layout / rational groupings. The element needs to be of some other type, such as BorderImage, in which case color is shorthand for setting all 4 corners. There are attributes for the individual corners if desired.[/quote]

I think you are right, BorderImage is the thing what I want, thank you so mush.