Right I have to admit I'm new to this so here we go;
So I am creating a World of Warcraft addon, something I have not attempted before and I am struggling. To start with I am trying to create a frame at the bottom of the screen with an image displayed within it. I am able to create the frame, but the image appears green and does not appear, obviously implying that the texture is incorrect or cannot be found. Below I will post all my xml code, as well as my steps to create the texture. Honestly any help would be appreciate
d, Thanks.
What I have tried:
Texture creation:
World of warcraft allows for either .blp or .tga format for images.
Firstly I open my image editor/creation software "GIMP" and create a new texture with a blank background with size 300x:300y which from what I can tell is an acceptable size. Then I draw whatever I wish to appear, and then export it in .tga format, and RLE compress it to bottom Left. I then place the texture in my Interface/addons/DS/ Folder.
##CODE in my DS.xml file.
Ui
Frame name="DS_MainFrame" parent="UIParent"
Anchors
Anchor point="LEFT"/
Anchor point="RIGHT"/
Anchor point="BOTTOM"/
/Anchors
Size
RelDimension x="1" y="0.15" /
/Size
Backdrop bgfile="Interface\Tooltips\UI-Tooltip-Background"
Title="true">
TitleSize
AbsValue val="16" /
/TitleSize
/Backdrop
Layers
Layer level="BACKGROUND"
Texture name="MyTexture" file="Interface\\AddOns\\DS\\DS2.blp" alphaMode="ADD"
Size
AbsDimension x="13" y="13"/
/Size
Anchors
Anchor point="CENTER"
Offset
Rel x="1" y="0.1"/
/Offset
/Anchor
/Anchors
TexCoords left="0.398" right="0.445" top="0.402" bottom="0.449"/
/Texture
/Layer
/Layers
/Frame
/Ui