Codename LogoCodename Logo

funkin.backend.scripting.events.CancellableEvent

APIWiki

Constructor

View in GitHub

new()

Creates a new cancellable event. This allows scripts to call cancel() to cancel the event.

Variables

data:Dynamic = { }

Additional data if used in scripts

Methods

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