Wikia

WoWWiki

Changes: API ScrollingMessageFrame SetTimeVisible

Edit

Back to page

m (catfix, Replaced: {{widgetmethod}} → {{widgetmethod}}<br>)
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
 
Line 1: Line 1:
{{widgetmethod}}<br>
+
{{widgetmethod}}
   
 
Set the time, lines added to a ScrollingMessageFrame are visible before they start to fade.
 
Set the time, lines added to a ScrollingMessageFrame are visible before they start to fade.

Latest revision as of 23:58, July 14, 2008

Widget API


Set the time, lines added to a ScrollingMessageFrame are visible before they start to fade.

ScrollingMessageFrame:SetTimeVisible(seconds);



Arguments
(Number seconds)
seconds 
The time, lines added to the ScrollingMessageFrame are visible, before they start to fade.

Returns
nil

Example
DEFAULT_CHAT_FRAME:SetTimeVisible(15);
Result
Changes the visible time for lines added or updated to 15 seconds.

DetailsEdit

SetTimeVisible(seconds) doesn't affect already visible lines, unless these are updated.
A way to update them is to call one of the Scroll methods.
Settings a value of 0 or below, means lines begin to fade immediately.
Calling this method has the same affect as setting the ScrollingMessageFrame XML attribute "displayDuration".
See also ScrollingMessageFrame:SetFading([isEnabled]) and ScrollingMessageFrame:SetFadeDuration(seconds).

Around Wikia's network

Random Wiki