View Single Post
07-04-12, 03:15 AM   #53
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Haleth View Post
Is GetTexture() bugged?
I don't know the answer to that specifically, but there is definitely some kind of issue going on with textures. In Grid, the NormalTexture on each unit button is hidden by setting its opacity to 0 with button:SetNormalTexture(1, 1, 1, 0). As far as I know, this is Pastamancer's original code that's been there since 2006. On the MoP beta servers, however, every frame's NormalTexture was set to a hideous neon green color, and button:GetNormalTexture():GetTexture() returned the number 0 instead of a string. The only way I could get rid of the awful green was to do button:SetNormalTexture("") to remove the texture entirely. Between there being no code in Grid or anywhere else that I could find that should be applying a neon green color to the NormalTexture of anything, and :GetTexture() returning a 0, I'd say there's definitely at least one bug they're (hopefully) working out.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.