WoW:API FontString SetTextColor

From AddOn Studio
Revision as of 17:48, 30 December 2005 by WoWWiki>Muert
Jump to navigation Jump to search

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.

Template:WoW API