Lore archive · Warcraft Wiki, 2023 dump
API MessageFrame AddMessage
Last wiki revision 2022-03-22
Outputs text to a MessageFrame in the specified color. MessageFrame:AddMessage(text [, red, green, blue, messageId])
- 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. can be used to turn a symbolic name into an integer index.
- If you call UpdateChatColor with messageId as an argument, you can change the color of a chat message dynamically.
Source
https://warcraft.wiki.gg/wiki/API_MessageFrame_AddMessage · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.