Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ScrollingMessageFrame AddMessage

Last wiki revision 2021-09-20

Outputs text to a local MessageFrame, with optional color id.- Updated in 2.4.2 MessageFrame:AddMessage(text [, r, g, b, id, addToStart])

  • text : - Message to output
  • r : - Red font color component between 0.1 and 1.0.
  • g : - Green font color component between 0.1 and 1.0.
  • b : - Blue font color component between 0.1 and 1.0.
  • id : - Identifies the line of text for later accessing it.
  • addToStart : - True to add the message to the start of the MessageFrame as if it were the first printed message.
  • refers to the current default chat window.
  • UI Escape Sequences are often applied to style the text or insert hyperlinks.

Outputs "Testing" on in red to the default chat window: DEFAULT_CHAT_FRAME:AddMessage("Testing", 1.0, 0.0, 0.0);

Outputs "AddOn Loaded!" in green at the start of the default chat window: DEFAULT_CHAT_FRAME:AddMessage("AddOn Loaded!", 0.0, 1.0, 0.0, nil, true);

Styles the text using UI Escape Sequences: DEFAULT_CHAT_FRAME:AddMessage("Look at this: messages can be |cffff0000red|r and |cff00ff00green|r!");

Source

https://warcraft.wiki.gg/wiki/API_ScrollingMessageFrame_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.