Thread Tools Display Modes
Prev Previous Post   Next Post Next
02/19/15, 01:18 PM   #1
Weolo
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 79
Question 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>
  <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>

Last edited by Weolo : 02/19/15 at 01:39 PM. Reason: Typo
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » XML Anchors


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off