From 9bd2c0b13b4006dbc2f9ded41a149c4aef96849a Mon Sep 17 00:00:00 2001 From: zackaryowo <103583353+xenkap@users.noreply.github.com> Date: Thu, 1 May 2025 17:19:23 +0800 Subject: [PATCH] Fix dialogue hanging bug ...wait, it's just one line? --- source/funkin/play/cutscene/dialogue/FunkinTypeText.hx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/funkin/play/cutscene/dialogue/FunkinTypeText.hx b/source/funkin/play/cutscene/dialogue/FunkinTypeText.hx index 371b55522..9491bbbca 100644 --- a/source/funkin/play/cutscene/dialogue/FunkinTypeText.hx +++ b/source/funkin/play/cutscene/dialogue/FunkinTypeText.hx @@ -1,6 +1,7 @@ package funkin.play.cutscene.dialogue; import flixel.addons.text.FlxTypeText; +import flixel.input.keyboard.FlxKey; /** * An FlxTypeText that accounts for text-wrapping in advance, @@ -60,4 +61,12 @@ class FunkinTypeText extends FlxTypeText _waiting = false; _length = 0; } + + override public function start(?Delay:Float, ForceRestart:Bool = false, AutoErase:Bool = false, ?SkipKeys:Array, ?Callback:Void->Void):Void + { + super.start(Delay, ForceRestart, AutoErase, SkipKeys, Callback); + + // Autocomplete if the text is empty anyway. + if (_finalText.length == 0) onComplete(); + } }