VoidvectorBot@legacy41580961 (talk | contribs) m (Robot: converting/fixing HTML) |
Driizt BB@legacy41536750 (talk | contribs) mNo edit summary |
||
Line 25: | Line 25: | ||
* 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, it will return nil. |
* If a :SetTexture("missing image") is performed on a texture, it will return nil. |
||
− | * If a SetPortraitTexture(texture,unit) is |
+ | * If a SetPortraitTexture(texture,unit) is performed 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. |
* 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. |
Revision as of 09:12, 7 September 2007
The API is no longer being updated here until further notice. |
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, it will return nil.
- If a SetPortraitTexture(texture,unit) is performed 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.