WoW:API FontString SetTextColor: Difference between revisions

m
no edit summary
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.
Anonymous user