fixed options menu
This commit is contained in:
parent
c9253ad396
commit
e462fc4956
@ -44,8 +44,14 @@ class Alphabet extends FlxSpriteGroup
|
|||||||
|
|
||||||
var isBold:Bool = false;
|
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)
|
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);
|
super(x, y);
|
||||||
|
|
||||||
_finalText = text;
|
_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()
|
public function addText()
|
||||||
{
|
{
|
||||||
doSplitWords();
|
doSplitWords();
|
||||||
|
@ -312,7 +312,7 @@ class Judgement extends Option
|
|||||||
FlxG.save.data.frames = Conductor.safeFrames;
|
FlxG.save.data.frames = Conductor.safeFrames;
|
||||||
|
|
||||||
Conductor.recalculateTimings();
|
Conductor.recalculateTimings();
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
override function getValue():String {
|
override function getValue():String {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user