Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-03-09, 01:16 PM   #1
Rhamses
A Theradrim Guardian
Join Date: Jun 2009
Posts: 61
Icon texture instead of box

I am working on an addon that gices a warning to drain souls. I am pulling some different code together.

I have
function ExecuteWarning_OnLoad()
ExecuteWarning_BuffFrame:Show();
ExecuteWarning_BuffFrame:SetAttribute('type', 'spell')
ExecuteWarning_BuffFrame:SetAttribute('spell', "Drain Soul")
getglobal(ExecuteWarning_BuffFrame:GetName().."_Text"):SetText( "Loaded!" );.

This allows me to take the previous text warning and turn it into a button that can be clicked to drain soul.

I have found the physical dimension in the XML file.

If I wanted to have a Soul Shard icon instead of the box, how do I change the texture? If it is a root path and you do not know it you can write the first part Interface/*** and I will hunt it out.

When I try to change the texture in xml or lua I just get errors. 8 (

Rhamses
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » Icon texture instead of box


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off