Widget API: ScrollingMessageFrame:SetFading

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API ScrollingMessageFrame SetFading to API ScrollingMessageFrame SetFading without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Widget API ← ScrollingMessageFrame < SetFading

Enables or disables fading of lines on a ScrollingMessageFrame.

ScrollingMessageFrame:SetFading([isEnabled]);

Arguments
(Boolean [isEnabled])
isEnabled
Enables or disables fading for the ScrollingMessageFrame. If not specified, fading will be enabled.

Returns
nil

Example
DEFAULT_CHAT_FRAME:SetFading(false);
Result
Disables fading on DEFAULT_CHAT_FRAME.

Details

When fading is enabled, the values set by SetTimeVisible and SetFadeDuration are used to determine when lines should start to fade, and how fast the fading should be.
When fading is disabled, these values are ignored, and lines are shown indefinitely or until scrolled out of the visible area of the frame.
See also ScrollingMessageFrame:SetFadeDuration(seconds) and ScrollingMessageFrame:SetTimeVisible(seconds).