Thread Tools Display Modes
10-18-10, 07:47 PM   #1
BDelacroix
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 33
SetAttribute("spell",...

Is there a way to set an attribute on a secure button with a target of a spell.

That is to set a button with the attribute "spell" "blabla" where blabla is a spell that expects you to then select another spell.

I keep looking around but haven't seen an example that did this.
  Reply With Quote
10-18-10, 07:58 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You could just use macrotext instead of spell:
Code:
button:SetAttribute("type1", "macro")
button:SetAttribute("macrotext1", "/cast [@mouseover] Spell Name")
  Reply With Quote
10-19-10, 09:06 AM   #3
BDelacroix
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 33
I have thought of this and will try it out but in my case it isn't a spell that requires an external target like something you can mouse over.

I'm using the trap launcher which gives a buff but while its up you have to select one of your traps which you then use the green target circle to place.

Still, though, I'll see what happens.
  Reply With Quote
10-19-10, 09:37 AM   #4
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
So, if your goal is to activate Trap Launcher and to cast the Trap with a single button/click/keypress - I think that's impossible.
  Reply With Quote
10-19-10, 12:00 PM   #5
BDelacroix
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 33
You may be right and, in that case or in the interim if I find out otherwise, I may just have to make 2 buttons for each.

If I could make it work similar to blizzard's action buttons and just have the 5 that change spell state when that buff is on that would be nice but I am thinking that's a special deal only blizzard gets to do.

Thanks for the help everyone.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SetAttribute("spell",...

Thread Tools
Display Modes

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