WoW:API ScrollingMessageFrame AddMessage: Difference between revisions
Jump to navigation
Jump to search
ScrollingMessageFrame:AddMessage -Documentation by Jason Citron and Allara, Fixes by Beladona-
No edit summary |
({{widgetmethod}}) |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<center>'''ScrollingMessageFrame:AddMessage''' ''-Documentation by Jason Citron and Allara, Fixes by Beladona-''</center><br/><br/> | <center>'''ScrollingMessageFrame:AddMessage''' ''-Documentation by Jason Citron and Allara, Fixes by Beladona-''</center><br/><br/> | ||
Line 45: | Line 47: | ||
Example: | Example: | ||
|cFF00FF00In Green|rDefault Color | |cFF00FF00In Green|rDefault Color | ||
Revision as of 13:00, 10 June 2006
← Widget API ← ScrollingMessageFrame < AddMessage
Outputs text to a local MessageFrame, with optional color id.
MessageFrame:AddMessage(text[,r,g,b[,id]]);
- Arguments
- (String text, Number red, Number green, Number blue, Number id)
- 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
- Returns
- nil
- Example
DEFAULT_CHAT_FRAME:AddMessage("Testing", 1.0, 0.0, 0.0, 1.0);
- Result
Testing -- in red
Escape Sequences
It is possible to control the text in the MessageFrame with escape sequences in text
Set Color
Syntax:
|cAARRGGBB colored text
Example:
|cFFFF0000This Will Be In Red
Remove Color
Syntax:
|cAARRGGBB colored text |r uncolored text
Example:
|cFF00FF00In Green|rDefault Color