Quantcast WoWInterface - View Single Post - Beginner: Custom Graphic
View Single Post
05-20-09, 08:54 PM   #3
An Aku'mai Servant
Samsan's Avatar
Join Date: May 2009
Posts: 33
Smile Custom Graphic in XML

Here's an example of code I use to create a piece of frame background. The images don't have to be in a seperate directory but personally I do it for a little more organization. This is a snippet from my frame background, it's 1 of 6 pieces. I also found that WoW prefers images with dimensions of 256 x 256, 512 x 512 and so on but smaller ones 128 x 64, 32 x 32, 64 x 64 etc. It was trial and error to get the sizing right for me.

I use "Gimp" to create the tga's, "Tilesplitter" to make the 256 squares and believe it or not "Windows Paint" to create the original images.

Hope this helps

     <Frame name="TopSkinTexture1Right">
          <AbsDimension x="512" y="32" />
          <Anchor point="TOPLEFT">
              <AbsDimension x="245" y="-31" />
          <Layer Level="ARTWORK">
            <Texture name="DWMBgS2" setAllPoints="true" file="interface\AddOns\yourmod\images\Purple-Panel_S1a">
              <TexCoords left="0" right="1" top="0" bottom="1" />
To give is to receive so the more that you give the more that you receive.

Last edited by Samsan : 05-20-09 at 09:01 PM.
  Reply With Quote