WoW:EnchantId and WoW:UIOBJECT Texture: Difference between pages

From AddOn Studio
(Difference between pages)
Jump to navigation Jump to search
(Updated with new information)
 
(Created page with "{{widget|Texture}}")
 
Line 1: Line 1:
{{widget}}


The following 2 functions are not included in Texture object's metatables and as such cannot be used as methods, however they impact texture appearance directly and as such included here:
: [[API SetPortraitTexture|SetPortraitTexture]](texture,"[[unitId|unit]]") - Paint a Texture object with the specified unit's portrait.
: [[API SetPortraitToTexture|SetPortraitToTexture]](texture or "texture", "texturePath") - Sets the texture to be displayed from a file applying circular opacity mask making it look round like portraits.
=== Notes ===
* the game will not find image files that did not exist when it was started, you may need to restart the game for the texture to appear.

Revision as of 18:02, 16 September 2013

Widget API < Texture


The following 2 functions are not included in Texture object's metatables and as such cannot be used as methods, however they impact texture appearance directly and as such included here:

SetPortraitTexture(texture,"unit") - Paint a Texture object with the specified unit's portrait.
SetPortraitToTexture(texture or "texture", "texturePath") - Sets the texture to be displayed from a file applying circular opacity mask making it look round like portraits.

Notes

  • the game will not find image files that did not exist when it was started, you may need to restart the game for the texture to appear.