Fix dialogue hanging bug

...wait, it's just one line?
This commit is contained in:
zackaryowo
2025-06-18 13:01:16 -07:00
committed by Kade
parent af716f9273
commit 9bd2c0b13b
@@ -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<FlxKey>, ?Callback:Void->Void):Void
{
super.start(Delay, ForceRestart, AutoErase, SkipKeys, Callback);
// Autocomplete if the text is empty anyway.
if (_finalText.length == 0) onComplete();
}
}