Fix dialogue hanging bug
...wait, it's just one line?
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user