View Single Post
09-19-14, 03:20 AM   #13
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Phanx View Post
There's also no guarantee that your handler for that event will be run before the default UI's handler for the same event. Hooking the actual texture change is a better solution all around.
Before? You mean after? I'm hooking the button in question, so it will run afterwards, and I'm pretty sure this is the event that's used by the default UI to update the texture, so there should be no way it could fail. Seems less hacky than hooking SetTexture, to me.
__________________
Grab your sword and fight the Horde!
  Reply With Quote