WoW:API Texture GetTexture: Difference between revisions

m
no edit summary
m (Clarify that no extension is returned.)
mNo edit summary
Line 22: Line 22:
;''Notes''
;''Notes''
* If a :SetTexture(nil) is performed on a texture, then it will return nil.
* If a :SetTexture(nil) is performed on a texture, then it will return nil.
* If a :SetTexture("missing image") is performed on a texture (resulting in the "green rectangle"), then it will return "Solid Texture"
* If a :SetTexture("missing image") is performed on a texture, it will return nil.
* If a SetPortraitTexture(texture,unit) is performaned on a texture, then it will return "Portrait1"
* If a SetPortraitTexture(texture,unit) is performaned on a texture, then it will return "Portrait1"
 
* The "Solid Texture" return for a missing image has been removed as of 1.10.  Use the return of :SetTexture to determine if a texture exists.
{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user