Thread Tools Display Modes
04/29/20, 02:12 PM   #1
Fooberticus
AddOn Author - Click to view addons
Join Date: Apr 2020
Posts: 2
Yes. Yes, that worked. Goddammit. Thanks very much for the assist!

Working solution that centers the texture+label correctly:

Code:
...
<TopLevelControl name="SomeTopLevelControl" hidden="true" mouseEnabled="true" movable="true" clampedToScreen="true">
      <Dimensions x="300" y="25" />
      <Anchor point="BOTTOM" relativeTo="GuiRoot" relativePoint="CENTER" offsetY="-40"/>
 
      <Controls> 
        <Label name="FooLabel" font="ZoFontWinH1" inheritAlpha="true" inheritScale="true" pixelRoundingEnabled="true"
            wrapMode="TRUNCATE" verticalAlignment="CENTER" horizontalAlignment="CENTER" text="Example Text Blah">
          <Anchor point="TOP" relativeTo="$(parent)" relativePoint="TOP" />
        </Label>

        <Texture hidden="true" name="$(parent)Icon" inheritAlpha="true" inheritScale="true" pixelRoundingEnabled="true"
            textureFile="/esoui/art/lfg/lfg_icon_healer.dds">
          <Dimensions x="40" y="40"/>
          <Anchor point="RIGHT" relativeTo="FooLabel" relativePoint="LEFT"/>
        </Texture>

      </Controls>
</TopLevelControl>
...
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Centering Controls (Lua/XML)


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