Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API ScrollingMessageFrame AddMessage
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{widgetmethod}} Outputs text to a local MessageFrame, with optional color id.- Updated in 2.4.2 MessageFrame:AddMessage(text[,r,g,b[,id][,addToStart]]); == Parameters == === Arguments === :(String text, Number red, Number green, Number blue, Number id, Boolean addToStart) :;text : The string message to output :;r : The intensity of the red component. A number between 0.0 and 1.0 :;g : The intensity of the green component. A number between 0.0 and 1.0 :;b : The intensity of the blue component. A number between 0.0 and 1.0 :;id : A number that classifies the line of text, for later changing the color :;addToStart : Boolean - Set to true to add the message to the start of the MessageFrame as if it was the first printed message - New in 2.4.2. === Returns === :;nil == Example == DEFAULT_CHAT_FRAME:AddMessage("Testing", 1.0, 0.0, 0.0); Outputs "Testing" on a single line in your default chat window -- in red. DEFAULT_CHAT_GLOBAL:AddMessage("AddOn Loaded!", 0.0, 1.0, 0.0, nil, true); Outputs "AddOn Loaded!" at the start of your default chat window -- in green. ==Escape Sequences== It is also possible to control the text of parts of lines in the MessageFrame with escape sequences in text. <div style="margin-left:3%;"> ===Set color=== Syntax: '''|c'''AARRGGBB colored text Example: '''|c'''FFFF0000This Will Be In Red ===Reset color=== Syntax: |cAARRGGBB colored text '''|r''' uncolored text Example: |cFF00FF00In Green'''|r'''Default Color </div> ==See also== *[[UI Escape Sequences]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Widget
(
edit
)
Template:Widgetmethod
(
edit
)