Codename LogoCodename Logo

funkin.backend.scripting.events.TransitionCreationEvent

APIWikiTools

CANCEL this event to prevent default behaviour!

Constructor

Variables

newState:FlxState

The state that is about to be loaded (only on trans out)

transOut:Bool

If the transition is going out into another state

Methods

View in GitHub

recycle(transOut:Bool, newState:FlxState):TransitionCreationEvent

Inherited Variables

Defined by CancellableEvent

data:Dynamic = { }

Additional data if used in scripts

Inherited Methods

Defined by CancellableEvent

View in GitHub

preventDefault(c:Bool = false):Void

Prevents default action from occurring.

Parameters:

c

Whenever the scripts following this one should be called or not. (Defaults to true)

View in GitHub

toString():String

Returns a string representation of the event, in this format: [CancellableEvent] [CancellableEvent (Cancelled)]

Returns:

String