Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API MessageFrame AddMessage
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 MessageFrame in the specified color, for a specified amount of time. MessageFrame:AddMessage("text", red, green, blue, messageId, holdTime); ---- ;''Arguments'' :(String text, Number red, Number green, Number blue, Number messageId, Number holdTime) :;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 :;messageId : A user-defined number that specifies which "color group" this message fits into. See the [[ChatTypeInfo|list of system-defined symbolic names]]. [[API GetChatTypeIndex|GetChatTypeIndex]] can be used to turn a symbolic name into an integer index. :;holdTime : length of time before the message fades out from the frame, in seconds ---- ;''Returns'' :;nil ---- ;''Example'' UIErrorsFrame:AddMessage("Testing", 1.0, 0.0, 0.0, 53, 5); ;''Result'' Testing -- in red, fades out after 5 seconds, in message group 53 ---- ;''Description'' Any of the parameters after text are optional. The hold time should also be set however, otherwise the message will remain within the ScrollingMessageFrame until it is scrolled up past the lines specified in the frame, or until you exit the game. If you call UpdateChatColor with messageId as an argument, you can change the color of a chat message dynamically.
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
)