Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement
AddMessage -Documentation by Jason Citron and Allara-

Outputs text to a local frame in the specified color.

AddMessage(text, red, green, blue, id);

Arguments
(String text, Number red, Number green, Number blue, Number id)
text
The message to output
red
The intensity of the red component. A clamped float between 0.0 and 1.0
green
The intensity of the green component. A clamped float between 0.0 and 1.0
blue
The intensity of the blue component. A clamped float between 0.0 and 1.0
id
A number that classifies the line of text, for later changing the color

Returns
nil

Example
AddMessage("Testing", 1.0, 0.0, 0.0);
Result
Testing -- in red

Description

Any of the parameters after text are optional. ID is used internally by the chat system, in order to provide a way to later customize the color of specific lines in the chat window. By tying each type of chat to a unique ID, the ColorPicker's colorFunc can use UpdateColorByID to dynamically change the color of the lines. There does not appear to be a way to influence the alpha of chat lines, or to change or duplicate the behavior of the ScrollingMessageFrame's fading out ability. --Allara 02:38, 16 May 2005 (EDT)


Template:WoW API

Advertisement