WoW:API MessageFrame AddMessage: Difference between revisions
Jump to navigation
Jump to search
AddMessage -Documentation by Jason Citron-
(API MessageFrame AddMessage moved to API ScrollingMessageFrame AddMessage) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<center>'''AddMessage''' ''-Documentation by Jason Citron-''</center> | |||
Outputs text to a local frame in the specified color. | |||
AddMessage(text, red, green, blue); | |||
---- | |||
;''Arguments'' | |||
:(String text, Number red, Number green, Number blue) | |||
:;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 | |||
---- | |||
;''Returns'' | |||
:;nil | |||
---- | |||
;''Example'' | |||
AddMessage("Testing", 1.0, 0.0, 0.0); | |||
;''Result'' | |||
Testing -- in red | |||
---- | |||
;''Description'' | |||
IMPORTANT: This document is somewhat incomplete (there are additional arguments, AND It's not the same as the ScrollingMessageFrame one!) | |||
---- | |||
{{Template:WoW API}} |
Revision as of 04:40, 7 February 2005
Outputs text to a local frame in the specified color.
AddMessage(text, red, green, blue);
- Arguments
- (String text, Number red, Number green, Number blue)
- 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
- Returns
- nil
- Example
AddMessage("Testing", 1.0, 0.0, 0.0);
- Result
Testing -- in red
- Description
IMPORTANT: This document is somewhat incomplete (there are additional arguments, AND It's not the same as the ScrollingMessageFrame one!)