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>
<Control name="$(parent)_Section">
<Controls>
<Texture textureFile="something.dds">
<Anchor point="TOPLEFT" relativePoint="$(parent)" relativeTo="TOPLEFT" offsetX="0" offsetY="0" />
<Dimensions x="20" y="20" />
</Texture>
<Texture textureFile="something.dds">
<Anchor point="TOPLEFT" relativePoint="$(parent)" relativeTo="TOPLEFT" offsetX="0" offsetY="0" />
<Dimensions x="20" y="20" />
</Texture>
<Texture textureFile="something.dds">
<Anchor point="TOPLEFT" relativePoint="$(parent)" relativeTo="TOPLEFT" offsetX="0" offsetY="0" />
<Dimensions x="20" y="20" />
</Texture>
<Texture textureFile="something.dds">
<Anchor point="TOPLEFT" relativePoint="$(parent)" relativeTo="TOPLEFT" offsetX="0" offsetY="0" />
<Dimensions x="20" y="20" />
</Texture>
</Controls>
</Control>
</Controls>