WoW:API ScrollingMessageFrame AddMessage
Jump to navigation
Jump to search
Outputs text to a local frame in the specified color.
AddMessage(text, red, green, blue, id);
- Arguments
- (String text, Number red, Number green, Number blue, Number alpha, Number fade)
- text
- The message to output
- red
- The intensity of the red component. A clamped float between 0.0 and 1.0
- green
- The intensity of the green component. A clamped float between 0.0 and 1.0
- blue
- The intensity of the blue component. A clamped float between 0.0 and 1.0
- alpha
- The alpha of the text. A clamped float between 0.0 and 1.0
- fade
- The time until the text fades. If nil, the text stays pinned until it gets scrolled down, or UI is reloaded.
- Returns
- nil
- Example
AddMessage("Testing", 1.0, 0.0, 0.0, 0.5, 3);
- Result
Testing -- in red, half-opaque, and fades in 3 seconds
- Description
Adds a message to a ScrollingMessageFrame. --Kremonte 04:25, 15 Dec 2005 (EST)