diff --git a/source/Alphabet.hx b/source/Alphabet.hx index 56d07e2..a92b5d1 100644 --- a/source/Alphabet.hx +++ b/source/Alphabet.hx @@ -44,8 +44,14 @@ class Alphabet extends FlxSpriteGroup var isBold:Bool = false; + var pastX:Float = 0; + var pastY:Float = 0; + public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false, typed:Bool = false, shouldMove:Bool = false) { + pastX = x; + pastY = y; + super(x, y); _finalText = text; @@ -66,6 +72,24 @@ class Alphabet extends FlxSpriteGroup } } + public function reType(text) + { + for (i in listOAlphabets) + remove(i); + _finalText = text; + this.text = text; + + lastSprite = null; + + updateHitbox(); + + listOAlphabets.clear(); + x = pastX; + y = pastY; + + addText(); + } + public function addText() { doSplitWords(); diff --git a/source/Options.hx b/source/Options.hx index c763b2c..5166d17 100644 --- a/source/Options.hx +++ b/source/Options.hx @@ -312,7 +312,7 @@ class Judgement extends Option FlxG.save.data.frames = Conductor.safeFrames; Conductor.recalculateTimings(); - return true; + return false; } override function getValue():String {