WoW:API ChangeChatColor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (__NOTOC__) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
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. | |||
ChangeChatColor("channelname", red, green, blue); | ChangeChatColor("channelname", red, green, blue); | ||
==Parameters== | |||
===Arguments=== | |||
:;channelname : String - Name of the channel as given in chat-cache.txt files. | :;channelname : String - Name of the channel as given in chat-cache.txt files. | ||
:;red, blue, green : Number - RGB values ( | :;red, blue, green : Number - RGB values (0-1, floats). | ||
==Example== | |||
ChangeChatColor("CHANNEL1", 255/255, 192/255, 192/255); | ChangeChatColor("CHANNEL1", 255/255, 192/255, 192/255); | ||
===Result=== | |||
Reset the General channel to the default (255,192,192, slightly off-white) color. | |||
==See Also== | |||
* [[API FontString SetTextColor|FontString:SetTextColor()]]. | |||
Revision as of 20:52, 25 December 2006
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.
ChangeChatColor("channelname", red, green, blue);
Parameters
Arguments
- channelname
- String - Name of the channel as given in chat-cache.txt files.
- red, blue, green
- Number - RGB values (0-1, floats).
Example
ChangeChatColor("CHANNEL1", 255/255, 192/255, 192/255);
Result
Reset the General channel to the default (255,192,192, slightly off-white) color.