View source
class CancellableEvent
package funkin.backend.scripting.events
implements IFlxDestroyable
extended by DialogueBoxCharPopupEvent, DialogueBoxPlayBubbleEvent, DialogueBoxSetTextEvent, DialogueBoxStructureEvent, DialogueCharHideEvent, DialogueCharShowEvent, DialogueCharStructureEvent, DialogueStructureEvent, AmountEvent, CamMoveEvent, CharacterNodeEvent, CharacterXMLEvent, CountdownEvent, DanceEvent, DirectionAnimEvent, DiscordPresenceUpdateEvent, DrawEvent, DynamicEvent, EventGameEvent, FreeplayAlphaUpdateEvent, FreeplaySongSelectEvent, GameOverCreationEvent, GameOverEvent, InputSystemEvent, MenuChangeEvent, NameEvent, NoteCreationEvent, NoteHitEvent, NoteMissEvent, NoteUpdateEvent, PauseCreationEvent, PlayAnimEvent, PointEvent, RatingUpdateEvent, ResizeEvent, SimpleNoteEvent, StageNodeEvent, StageXMLEvent, StateEvent, StrumCreationEvent, WeekSelectEvent
Constructor
View in GitHub
new()
Creates a new cancellable event.
This allows scripts to call cancel()
to cancel the event.
Variables
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 |
---|
View in GitHub
toString():String
Returns a string representation of the event, in this format:
[CancellableEvent]
[CancellableEvent (Cancelled)]
Returns:
String