Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 appreciated, Thanks.
XML



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
Posted
Updated 4-Sep-16 3:59am
v2

1 solution

Start with a dedicated site: Google can find you lots.
World of Warcraft addon tutorial- Google Search[^] - this is an IT based site, not a games related one, and you need to talk to more "focused" people.
This would be a start: AddOn programming tutorial - WoWWiki - Wikia[^] - join the community there and ask them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900