Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API ChangeChatColor

From WoW Classic Wiki
ChangeChatColor -Documentation by Farmbuyer-
ChangeChatColor("channelname", red, green, blue);

Changes the text color of the specified chat channel. The "color wheel" popup calls this function to do the actual work, once the user is done with the popup.

Note that the RGB values are fractions from 0 to 1.


Arguments
(String "channelname", Number red, Number blue, Number green)
channelname
String - Name of the channel as given in chat-cache.txt files.
red, blue, green
Number - RGB values (as stored in chat-cache.txt divided by 255).

Returns
unknown
nil

Current calls in Blizzard files make no use of a return function.


Example
ChangeChatColor("CHANNEL1", 255/255, 192/255, 192/255);

would reset the General channel to the default (255,192,192, slightly off-white) color.

See also FontString:SetTextColor().



Template:WoW API