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(); + } }