WoW:API FontString SetTextColor: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
<i>FontString</i>:SetTextColor(red,green,blue);
<i>FontString</i>:SetTextColor(red,green,blue[,alpha]);


Sets the text color for any FontString UI object.
Sets the text color for any FontString UI object.
Line 8: Line 8:
:'''green''' Range 0 to 1
:'''green''' Range 0 to 1
:'''blue''' Range 0 to 1
:'''blue''' Range 0 to 1
 
;''Optional Argument''
:'''alpha''' Range 0 to 1
----
----
;''Returns''
;''Returns''
Line 15: Line 16:
----
----
;''Example''
;''Example''
:<nowiki>String:SetTextColor(1.0,0,0);</nowiki>
:<nowiki>String:SetTextColor(1.0,0,0,0.5);</nowiki>
: This will set the text color to be used with SetText() or any other output function.
: This will set the text color to be used with SetText() or any other output function. In this the text will be semi transparent red.

Revision as of 01:31, 25 September 2005

FontString:SetTextColor(red,green,blue[,alpha]);

Sets the text color for any FontString UI object.


Arguments
red Range 0 to 1
green Range 0 to 1
blue Range 0 to 1
Optional Argument
alpha Range 0 to 1

Returns
nil

Example
String:SetTextColor(1.0,0,0,0.5);
This will set the text color to be used with SetText() or any other output function. In this the text will be semi transparent red.