Thread: GUI's
View Single Post
05-26-05, 03:51 PM   #18
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Code:
  <TextureInfo item="corners.tga">
    <Size>
      <CX>256</CX>
      <CY>256</CY>
    </Size>
  </TextureInfo>
  <Ui2DAnimation item="topleftcorner">
    <Frames>
      <Texture>corners.tga</Texture>
      <Location>
        <X>0</X>
        <Y>0</Y>
      </Location>
      <Size>
        <CX>128</CX>
        <CY>128</CY>
      </Size>
     </Frames>
  </Ui2DAnimation>
If memory serves, this is making 'topleftcorner' be the top left quarter of corners.tga. The WoW equivalent is:

Code:
  <Texture name="topleftcorner" file="Interface\AddOns\MyMod\corners">
      <TexCoords left="0" right=".5" top="0" bottom=".5"/>
  </Texture>
The size of the whole texture and the pixel position of the texture within are never used anywhere.

When you see <Anchors>, those are always the position of the frame/control/texture/string in relationship to everything else.

When you see <Size> they never define how much of a texture to draw, it will stretch the whole file to that size. (Or a subset of that file if you define TexCoords)

What are some other UI elements you want to replace? Some may be easy to do without hooking or doing anything.
  Reply With Quote