Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-20-18, 02:47 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
ActionButtonBorder highlight on unit buff/debuff

I just tested this macro in combat:
Lua Code:
  1. /run local a=_G["ActionButton8Border"] local b=UnitBuff("player", "Schildblock") if b then a:Show() else a:Hide() end

https://imgpile.com/i/nru4Dg

I have Shield Block on ActionButton8.

/dump GetActionInfo(8) returns "spell", 2565 which is the spell id for Shield Block
/dump GetSpellInfo(2565) returns the spell info for the action button spell shield block
/dump GetSpellInfo(132404) returns the spell info for the player aura button spell shield block

There is an addon called https://github.com/AdiAddons/AdiButtonAuras which sort of does what I am looking for but it is quite huge.

I want to connect an action button spell to a unit aura. If both match the corresponding action button border should get highlighted.

It should be possible to set up a small table that connects action button spells to unit auras. All one needs is a script that parses unit auras and checks for matches. If one is found the button border will be highlighted.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 01-20-18 at 02:51 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » ActionButtonBorder highlight on unit buff/debuff


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