Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
 
 
Line 1: Line 1:
  +
== Licensing ==
<center>'''ScrollingMessageFrame:AddMessage''' ''-Documentation by Jason Citron and Allara, Fixes by Beladona-''</center><br/><br/>
 
  +
{{Licensing|Mob}}
 
  +
[[Category:Frogs]]
Outputs text to a ScrollingMessageFrame in the specified color, for a specified amount of time.
 
 
ScrollingMessageFrame:AddMessage(text, red, green, blue, alpha, holdTime);
 
 
----
 
;''Arguments''
 
 
:(String text, Number red, Number green, Number blue, Number alpha, 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
 
:;alpha : The level of alpha opacity. A clamped float between 0.0 and 1.0
 
:;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, 1.0, 5);
 
 
;''Result''
 
Testing -- in red, fades out after 5 seconds
 
 
----
 
;''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.
 
 
----
 
{{Template:WoW API}}
 

Revision as of 10:48, 21 July 2011

Licensing