Quantcast ActionButtonBorder highlight on unit buff/debuff - WoWInterface
Thread Tools Display Modes
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,726
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) | TDMOG

"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
01-20-18, 08:29 PM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,726
I made a small addon around the idea.
http://www.wowinterface.com/download...uttonAura.html
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
01-20-18, 08:58 PM   #3
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 450
LibPlayerSpells for the spell-to-aura connections. Don't know what your definition of "small table" is, but keeping this up to date is a huge PITA.

Aura look-ups by name will give you false positives.
  Reply With Quote
01-21-18, 09:02 AM   #4
gempir
A Cliff Giant
 
gempir's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2015
Posts: 79
The idea is cool but IMO only useful in some cases. Not all auras will have spells (Example: Enrage) so you will have another tracker of sorts in addition to this visual hint.
  Reply With Quote
01-21-18, 01:43 PM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,273
I think you are highlighting Disarm instead of Shield Block.

Edit: Forget it, i was editing the file inside the damn zip.

Last edited by Resike : 01-21-18 at 01:46 PM.
  Reply With Quote
01-21-18, 02:03 PM   #6
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 450
The spells are hardcoded to the actionbar buttons. Once they change places you get the wrong highlights. Also broken when the actionbar page is changed.

@Zork you might want to use 'HELPFUL|PLAYER' or 'HARMFUL|PLAYER' as filter, else you might get the auras from someone else.
  Reply With Quote
01-21-18, 03:56 PM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,726
Thx rainrider. The addon is a just a bare bone proof of concept atm. Just wanted to know if the general idea is working.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
01-21-18, 04:28 PM   #8
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,052
I use this technique in Crack Cooldown to show the duration of your buffs and debuffs on your action buttons, but it only works when the name of the aura matches the name of the spell if you don't use a lookup table.
  Reply With Quote

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

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