Skip to content

ModCS.Fade

The ModCS.Fade namespace contains functions related to the fade effects.

ModCS.Fade.Init()

ModCS.Fade.Init()

Resets the Fading effect, like done when starting a new save.

ModCS.Fade.SetMask()

ModCS.Fade.SetMask()

Puts the fade mask on screen immediately (makes the screen faded out).

ModCS.Fade.Clear()

ModCS.Fade.Clear()

Removes the fade mask on screen, immediately making the screen visible.

ModCS.Fade.ActMain()

ModCS.Fade.ActMain()

Runs the Fading act code, making it function for a new game mode the user may add.

ModCS.Fade.DrawMain()

ModCS.Fade.DrawMain()

Draws the Fade effect on screen, making it function for a new game mode the user may add.

ModCS.Fade.Out()

ModCS.Fade.Out(dir)

Start a fade out, in direction dir.

ModCS.Fade.In()

ModCS.Fade.In(dir)

Start a fade in, in direction dir.

ModCS.Fade.Active()

ModCS.Fade.IsActive()

Returns true if a fade is currently happening.