Wikia

WoWWiki

API ScrollingMessageFrame SetFadeDuration

Talk0
102,255pages on
this wiki
Revision as of 23:57, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API


Set the fade duration (the time it takes from the line starts to fade till it's hidden) of lines added to a ScrollingMessageFrame.

ScrollingMessageFrame:SetFadeDuration(seconds);



Arguments
(Number seconds)
seconds 
The duration of the fade in seconds.

Returns
nil

Example
DEFAULT_CHAT_FRAME:SetFadeDuration(15);
Result
Changes the fade duration for lines added or updated to 15 seconds (very slow fade).

DetailsEdit

SetFadeDuration(seconds) doesn't affect already visible lines, unless these are updated.
A way to update them is to call one of the Scroll methods.
The default fade duration seems to be 3 seconds.
See also ScrollingMessageFrame:SetFading([isEnabled]) and ScrollingMessageFrame:SetTimeVisible(seconds).

Around Wikia's network

Random Wiki