WoW:API ScrollingMessageFrame AddMessage: Difference between revisions
Jump to navigation
Jump to search
AddMessage -Documentation by Jason Citron, Allara, and Kremonte-
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<center>'''AddMessage''' ''-Documentation by Jason Citron and | <center>'''AddMessage''' ''-Documentation by Jason Citron, Allara, and Kremonte-''</center> | ||
Outputs text to a local frame in the specified color. | Outputs text to a local frame in the specified color. | ||
Line 8: | Line 8: | ||
;''Arguments'' | ;''Arguments'' | ||
:(String text, Number red, Number green, Number blue, Number | :(String text, Number red, Number green, Number blue, Number alpha, Number fade) | ||
:;text : The message to output | :;text : The message to output | ||
Line 14: | Line 14: | ||
:;green : The intensity of the green 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 | :;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. | |||
---- | ---- | ||
Line 23: | Line 24: | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
AddMessage("Testing", 1.0, 0.0, 0.0); | AddMessage("Testing", 1.0, 0.0, 0.0, 0.5, 3); | ||
;''Result'' | ;''Result'' | ||
Testing -- in red | Testing -- in red, half-opaque, and fades in 3 seconds | ||
---- | ---- | ||
;''Description'' | ;''Description'' | ||
Adds a message to a ScrollingMessageFrame. | |||
--[[User:Kremonte|Kremonte]] 04:25, 15 Dec 2005 (EST) | |||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 21:39, 15 December 2005
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)