WoW:API Texture GetTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Clarify that no extension is returned.)
Line 11: Line 11:
;''Returns''
;''Returns''


:;texture : String - The path/filename of the texture
:;texture : String - The path/filename without extension of the texture


----
----

Revision as of 15:02, 6 March 2006

texture = Texture:GetTexture();

Returns the texture string from any Texture object.


Arguments
none

Returns
texture
String - The path/filename without extension of the texture

Example
/script message(ActionButton1Icon:GetTexture())
Result
Interface\Icons\INV_Mace_07

Notes
  • 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 SetPortraitTexture(texture,unit) is performaned on a texture, then it will return "Portrait1"

Template:WoW API