Wowpedia
Advertisement
Links

Outputs text to a MessageFrame in the specified color.

MessageFrame:AddMessage(text [, red, green, blue, messageId])

Arguments

text 
string - The message to output
red 
number? - The intensity of the red component. A clamped float between 0.0 and 1.0
green 
number? - The intensity of the green component. A clamped float between 0.0 and 1.0
blue 
number? - The intensity of the blue component. A clamped float between 0.0 and 1.0
messageId 
number? - A user-defined number that specifies which "color group" this message fits into. See the list of system-defined symbolic names. GetChatTypeIndex() can be used to turn a symbolic name into an integer index.

Details

  • If you call UpdateChatColor with messageId as an argument, you can change the color of a chat message dynamically.
Advertisement