View Single Post
04/29/20, 02:12 PM   #3
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