WoW:API ScrollingMessageFrame SetTimeVisible: Difference between revisions

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


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.
Line 32: Line 30:
:Settings a value of 0 or below, means lines begin to fade immediately.
: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".
:Calling this method has the same affect as setting the ScrollingMessageFrame XML attribute "displayDuration".
:See also [[API ScrollingMessageFrame EnableFading|ScrollingMessageFrame:EnableFading(&#91;isEnabled&#93;)]] and [[API ScrollingMessageFrame SetFadeDuration|ScrollingMessageFrame:SetFadeDuration(seconds)]].
:See also [[API ScrollingMessageFrame SetFading|ScrollingMessageFrame:SetFading(&#91;isEnabled&#93;)]] and [[API ScrollingMessageFrame SetFadeDuration|ScrollingMessageFrame:SetFadeDuration(seconds)]].

Latest revision as of 04:47, 15 August 2023

Widget API ← ScrollingMessageFrame < SetTimeVisible

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.

Details[edit]

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