Class UI.ScreenFade
UI Screen Fade class.
To fades the screen.
Data Structures
.screenFadeDrawOption | The UI.ScreenFade:Draw options. |
Methods
UI.ScreenFade:Draw ([Duration=0[, HoldTime=0[, Flags=0[, ColorR=0[, ColorG=0[, ColorB=0[, Alpha=0]]]]]]]) | Draws the screen fade. |
UI.ScreenFade:Hide () | Hides the screen fade. |
UI.ScreenFade:IsVisible () | Checks whether the screen fade is visible. |
Data Structures
- .screenFadeDrawOption
-
The UI.ScreenFade:Draw options.
- mode Common.ScreenFade.FFADE Fading mode. (default Common.ScreenFade.FFADE.IN)
- modulate bool Modulate (don't blend). (default false)
- duration number Fading duration (in second unit). (default 0)
- holdTime number Display duration after fading finished (in second unit). (default 0)
- r number Red color composition. (default 0)
- g number Green color composition. (default 0)
- b number Blue color composition. (default 0)
- a number Transparency. (default 0)
See also:
Methods
- UI.ScreenFade:Draw ([Duration=0[, HoldTime=0[, Flags=0[, ColorR=0[, ColorG=0[, ColorB=0[, Alpha=0]]]]]]])
-
Draws the screen fade.
Parameters:
- Duration number or .screenFadeDrawOption Fading duration (in second unit). | Options table. (default 0)
- HoldTime
number
Display duration after fading finished (in second unit)(Ignored if
Duration
is a table). (default 0) - Flags
number
The screen fading bitflags (Ignored if
Duration
is a table). (default 0) - ColorR
number
Red color composition (Ignored if
Duration
is a table). (default 0) - ColorG
number
Green color composition (Ignored if
Duration
is a table). (default 0) - ColorB
number
Blue color composition (Ignored if
Duration
is a table). (default 0) - Alpha
number
Transparency (Ignored if
Duration
is a table). (default 0)
Returns:
-
self
This class.
See also:
- UI.ScreenFade:Hide ()
-
Hides the screen fade.
Returns:
-
self
This class.
- UI.ScreenFade:IsVisible ()
-
Checks whether the screen fade is visible.
Returns:
-
bool
Returns
true
if visible.