XML Anchors
Hi All
I am trying to create a group of textures and I am having trouble positioning them. I don't completely understand Anchors yet. Whats the easiest way with XML to align 4 textures each 20px square into a 2x2 grid shape? Any tips on using Anchors? Heres some bad XML code so we have something to work with :) Code:
<Controls> |
See picture here:
http://wiki.esoui.com/Control:SetAnchor There is many ways how to do it, everything depends on how you want to handle parent control. For example you can anchor first texture to the top left corner of parent control an then all other textures anchor to the first one: XML Code:
Another example could be anchoring to the center of parent control: XML Code:
If you do not specify any anchor argument, it will use default. For example relativeTo will be "$(parent)", offsetX and offsetY will be "0". |
Thats brilliant!
Exactly the information I needed, thanks very much. |
All times are GMT -6. The time now is 11:32 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI