Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-09-14, 04:49 AM   #1
sezz
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 158
toggle aura with a custom SecureActionButtonTemplate button (like Stancebar)

i want to recreate the hunter aspect bar for wod using custom buttons based on SecureActionButtonTemplate

currently i'm using this to cast a spell on left click and cancel the aura on rightclick:

Lua Code:
  1. button:SetAttribute("type", "spell");
  2. button:SetAttribute("spell", spellId);
  3. button:SetAttribute("type2", "cancelaura");
  4. button:SetAttribute("unit2", "player");
  5. button:SetAttribute("spell2", spellName);
  6. button:RegisterForClicks("AnyUp");

is there a way to change the behavior of my buttons to act more like the real stancebar, that means left click should cancel the aura if it is already active and casts it if not?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » toggle aura with a custom SecureActionButtonTemplate button (like Stancebar)


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