m
→Details: Escaped the pointy brackets, so the wiki doesn't treat <Layer> as for its consumption.
(Created page with "{{uixmltype}} < Layers A Layer is a fundamental UI building block for defining visible UI elements of Frames. A Layer is an element...") |
m (→Details: Escaped the pointy brackets, so the wiki doesn't treat <Layer> as for its consumption.) |
||
| Line 18: | Line 18: | ||
=== Example === | === Example === | ||
<[[XML/Frame|Frame]] name="MyFrame"> | |||
<Layers> | |||
<Layer> | |||
<[[XML/Texture|Texture]]> | |||
<Size x="100" y="100" /> | |||
<HitRectInsets> | |||
<[[XML/AbsInset|AbsInset]] left="0" right="-100" top="0" bottom="0"/> | |||
</HitRectInsets> | |||
<Color a="1" r="1" g="1" b="1" /> | |||
</Texture> | |||
<Texture> | |||
<Size x="100" y="100" /> | |||
<Color a="1" r="1" g="1" b="1" /> | |||
</Texture> | |||
</Layer> | |||
</Layers> | |||
</Frame> | |||
This example will show a frame with a single default layer, displaying two textures. | This example will show a frame with a single default layer, displaying two textures. | ||
| Line 55: | Line 55: | ||
''Note: The above are capitalized for a reason. See example:''<BR /> | ''Note: The above are capitalized for a reason. See example:''<BR /> | ||
<Layers> | |||
<Layer level="BACKGROUND"> | |||
... | ... | ||
</Layer> | |||
<Layer level="ARTWORK"> | |||
... | ... | ||
</Layer> | |||
<Layer level="OVERLAY"> | |||
... | ... | ||
</Layer> | |||
</Layers> | |||