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:
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? |
I would say 'no'. Except you could rewrite the buttons attributes to cancleaura if the player casts the aura and vice vesa. But this is resticted to out of combat. :/
[e] Maybe there is a kind of macro that works this way? I'm not that familar with macros. |
Check this out: http://www.wowinterface.com/download...ellToggle.html
|
I'm not sure I understand the question, if you try and cast an active aspect again on the beta it cancels itself.
You shouldn't need to handle canceling the aura at all. |
Quote:
When I change the spell ID to the spell name it works as expected :) |
All times are GMT -6. The time now is 10:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI