WoW:API ScrollingMessageFrame SetFadeDuration: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widgetmethod}})
m (Move page script moved page API ScrollingMessageFrame SetFadeDuration to API ScrollingMessageFrame SetFadeDuration without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
<center>'''ScrollingMessageFrame:SetFadeDuration''' ''-Documentation by Maldivia-''</center><br/><br/>


Set the fade duration (the time it takes from the line starts to fade till it's hidden) of lines added to a ScrollingMessageFrame.
Set the fade duration (the time it takes from the line starts to fade till it's hidden) of lines added to a ScrollingMessageFrame.
Line 31: Line 29:
:A way to update them is to call one of the Scroll methods.
:A way to update them is to call one of the Scroll methods.
:The default fade duration seems to be 3 seconds.
:The default fade duration seems to be 3 seconds.
:See also [[API ScrollingMessageFrame EnableFading|ScrollingMessageFrame:EnableFading(&#91;isEnabled&#93;)]] and [[API ScrollingMessageFrame SetTimeVisible|ScrollingMessageFrame:SetTimeVisible(seconds)]].
:See also [[API ScrollingMessageFrame SetFading|ScrollingMessageFrame:SetFading(&#91;isEnabled&#93;)]] and [[API ScrollingMessageFrame SetTimeVisible|ScrollingMessageFrame:SetTimeVisible(seconds)]].

Latest revision as of 04:47, 15 August 2023

Widget API ← ScrollingMessageFrame < SetFadeDuration

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).

Details[edit]

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(&#91;isEnabled&#93;) and ScrollingMessageFrame:SetTimeVisible(seconds).