fixed options menu

This commit is contained in:
Kade M 2021-06-21 02:28:09 -07:00
parent c9253ad396
commit e462fc4956
2 changed files with 25 additions and 1 deletions

View File

@ -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();

View File

@ -312,7 +312,7 @@ class Judgement extends Option
FlxG.save.data.frames = Conductor.safeFrames;
Conductor.recalculateTimings();
return true;
return false;
}
override function getValue():String {