Skip to content

[MODDING] Add dialogue callbacks for Module #5140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions source/funkin/modding/module/Module.hx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ class Module implements IPlayStateScriptedClass implements IStateChangingScripte
*/
public function onNoteMiss(event:NoteScriptEvent) {}

/**
* Called when a hold note has been dropped.
* This gets dispatched for both the player and opponent strumlines.
*/
public function onNoteHoldDrop(event:HoldNoteScriptEvent) {}

/**
Expand Down Expand Up @@ -210,4 +214,29 @@ class Module implements IPlayStateScriptedClass implements IStateChangingScripte
* Called when the song has been restarted.
*/
public function onSongRetry(event:SongRetryEvent) {}

/**
* Called as the dialogue starts, and before the first dialogue text is displayed.
*/
public function onDialogueStart(event:DialogueScriptEvent):Void {};

/**
* Called when a dialogue line has been completed.
*/
public function onDialogueCompleteLine(event:DialogueScriptEvent):Void {};

/**
* Called when a dialogue line is displayed.
*/
public function onDialogueLine(event:DialogueScriptEvent):Void {};

/**
* Called when the dialogue is skipped.
*/
public function onDialogueSkip(event:DialogueScriptEvent):Void {};

/**
* Called when the dialogue ends.
*/
public function onDialogueEnd(event:DialogueScriptEvent):Void {};
}
Loading