View Single Post
Unread 01-13-13, 11:13 PM   #10
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,437
Well, you've never specified which button(s) you want to recolor, but assuming they inherit from the UIPanelButtonTemplate, they don't use the normal texture and pushed texture. Instead, they have separate left/right/center texture regions (to accomodate different widths without distorting the texture too much) and the textures are swapped OnMouseDown and OnMouseUp.

See:
http://wow.go-hero.net/framexml/1644...mplates.xml#18

You'd need to HookScript each method that sets textures, and set your own texture in the post-hook, or just overwrite the relevant methods (though you'd need to be careful to avoid tainting or breaking anything, so simple overwriting might not be an option for some buttons).
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote