Wikia

WoWWiki

API FontString SetTextColor

Talk0
102,016pages on
this wiki
Revision as of 23:51, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API

Set the color of the text.

someText:SetTextColor(red,green,blue,alpha)

Parameters Edit

Arguments Edit

(red, green, blue, alpha)
red 
Number - Range 0 to 1
green 
Number - Range 0 to 1
blue 
Number - Range 0 to 1
alpha 
Number - Range 0 to 1. Optional.

Returns Edit

Nothing.

Example Edit

string:SetTextColor(1.0, 0, 0, 0.5)

ResultEdit

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.


Around Wikia's network

Random Wiki