Panel:InsertFade
Description
Begins a text fade for a RichText element where the last appended text segment is fully faded out after a specific amount of time, at a specific speed.
The alpha of the text at any given time is determined by the text's base alpha * ((sustain
- CurTime) / length
) where CurTime is added to sustain
when this method is called.
Arguments
If set lower than sustain
, the text will not begin fading out until (sustain
- length
) seconds have passed.
If set higher than sustain
, the text will begin fading out immediately at a fraction of the base alpha.
If set to -1, the text doesn't fade out.
Example
Creates a Rich Text panel that sustains visibility for 6 seconds with a 2 second long fade-out.
length
values swapped in.
Example
Create a Rich Text panel where Dr. Kleiner reads a fading message in sync with text.
