Skip to content

[ENHANCEMENT] Add custom callback params to VideoCutscene - #7789

Open
notboboxslayer wants to merge 1 commit into
FunkinCrew:developfrom
notboboxslayer:develop
Open

[ENHANCEMENT] Add custom callback params to VideoCutscene#7789
notboboxslayer wants to merge 1 commit into
FunkinCrew:developfrom
notboboxslayer:develop

Conversation

@notboboxslayer

Copy link
Copy Markdown

Completes todo in VideoCutscene.hx by allowing VideoCutscene.play() to accept an optional completion callback function.

Before, video cutscenes were hardcoded to trigger default actions based on CutsceneType. With this change, if an onFinish callback is given, it executes when the video ends or finishes transitioning. If no callback is provided, it falls back to the standard types (STARTING, ENDING, MIDSONG).

By doing this, it makes cutscene calls a total of 0.5% easier!

@github-actions github-actions Bot added size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. labels Jul 24, 2026
@notboboxslayer notboboxslayer changed the title added custom callback params to Videocutscene added custom callback params to VideoCutscene Jul 24, 2026
@github-actions github-actions Bot added the pr: haxe PR modifies game code. label Jul 24, 2026
@NotHyper-474 NotHyper-474 added the type: enhancement Involves an enhancement or new feature. label Jul 24, 2026
@Hundrec Hundrec changed the title added custom callback params to VideoCutscene [ENHANCEMENT] Add custom callback params to VideoCutscene Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: enhancement Involves an enhancement or new feature.

Development

Successfully merging this pull request may close these issues.

2 participants