This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Custom action bar button glowing via addons - possible?
Post Reply
Return to board index
Post by
lockbox
Greetings!
We're all aware of 4.0.1's cool feature: button glowing. When something procs, any abilities that benefit from the proc will have their action bar button(s) lit up.
I was wondering if it's possible to write an addon (or if one currently exists) that would allow the user to input conditionals such as:
if( UnitHasAura("Hand of Light", "player") ) then
GlowButtonsWhichTriggerSpell("Templar's Verdict") -- by spell name or ID
end
...and have the addon read it as such: if the player has Hand of Light, check for all buttons which trigger Templar's Verdict and give them the glowing effect. This is just an example; I know the game already has glowing effects for Hand of Light.
I've been replicating this functionality using Power Auras. I'm just using plain rectangles positioned in the same location as the buttons which trigger the abilities, which isn't too great. It
does
work, but it's a pain to update.
So, is this possible? My knowledge of Lua is somewhat limited, but I don't mind giving it a go if I know it's possible.
Cheers.
Post by
131584
This post was from a user who has deleted their account.
Post by
HighFive
Oh, no, it's definitely possible. In fact I don't know why there's no addon doing it already. The tech has been available for a long time.
Post by
131584
This post was from a user who has deleted their account.
Post by
HighFive
Oh I'm pretty sure the glow doesn't appear on macroes, only because Blizzard was too lazy to implement it.
Looking at the code, it does only handle "spell" buttons. Handling "macro" buttons would be only marginally trickier, I think.
Post by
lockbox
Well, I've given it a go and it's definitely possible to make action bar buttons glow through code.
http://imgur.com/qe16H.png
Now it's just a case of implementing a filter (only glow buttons under certain conditions) and it's done.
Post by
Wanderingfox
Dominos has it implemented for spell buttons already. No idea if it works on macros, I'd assume not.
Post by
pelf
Hmph. I'm trying to think of whether or not I have any macroed abilities that are glowing and ... I'm thinking Mangle maybe should be glowing when the cooldown is reset by Berserk. It's not ... and I have it in a macro. I need to test that. I was about to install TellMeWhen just so I could easily see when the Mangle cooldown got reset and a big glow would make that a lot easier to see.
Post by
263899
This post was from a user who has deleted their account.
Post by
614479
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.