WoW:API Texture SetTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
({{widgetmethod}})
Line 1: Line 1:
{{widgetmethod}}
Can be used to either set the texture file, or to change the RGB fill of a texture. Pass it one string to change the texture file, or pass it three numbers to set the RGB. The only place I've seen this used to change the color is within the inline script of a ColorSelect object.
Can be used to either set the texture file, or to change the RGB fill of a texture. Pass it one string to change the texture file, or pass it three numbers to set the RGB. The only place I've seen this used to change the color is within the inline script of a ColorSelect object.


If no Alpha value is specified for the color, it is defaulted to be "1.0".
If no Alpha value is specified for the color, it is defaulted to be "1.0".
----
{{template:WoW API}}

Revision as of 13:30, 10 June 2006

Widget API ← Texture < SetTexture

Can be used to either set the texture file, or to change the RGB fill of a texture. Pass it one string to change the texture file, or pass it three numbers to set the RGB. The only place I've seen this used to change the color is within the inline script of a ColorSelect object.

If no Alpha value is specified for the color, it is defaulted to be "1.0".