This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Button Glow
Post Reply
Return to board index
Post by
Taraezor
I am no LUA expert I will admit, but I can usually suss out whatever I need to do. But not this time. I am just not getting something lol.
All I want to do is make a button have a "proc" glow. Same as when an ability gets the required number of charges or gets an RNG buff. Like an Ice Lance that has a Brain Freeze, for example.
I have noticed something very similar in the Macro editing interface. The selected macro has a yellow glow border around it. I even have looked at Blizzard's own source for that but it peters out when I can't burrow low enough into the inheritance system.
Any help appreciated. Thank you.
Post by
Nulgar
Try
Inline Aura
:)
Has many defaults, but is also very customizable if you want it to behave differently.
Post by
Taraezor
For anyone interested, found two ways of doing this. One way was to define my button as a "CheckButton" based upon a template used by Blizzard themselves so that the button mimics that of Blizzard's. Unfortunately I found it restrictive as the pseudo-inherited behaviour had me tearing my hair out, no matter which template I chose and how I tried to override any behaviour. And most templates were just plain wrong for my purpose.
Another approach I figured out was to add an "Overlay" to the button and to use an overlay template used by Blizzard in game. I then turn on and off the animation as needed and no need for me to code that as I "borrowed" a working template. This is what I actually used and the code is tested and 100% functional in my add-on but (wait for it...)
I never actually used it after all that. Code will appear in a future version of my add-on, version number "v1.06" or "v2.0" depending upon what happens as I am writing a major unannounced enhancement. Add-on is
We Don't Wipe
.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.