merge it into master
This commit is contained in:
parent
31fcb2575b
commit
ff472ca6e8
@ -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();
|
||||
|
@ -312,7 +312,7 @@ class Judgement extends Option
|
||||
FlxG.save.data.frames = Conductor.safeFrames;
|
||||
|
||||
Conductor.recalculateTimings();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
override function getValue():String {
|
||||
@ -370,6 +370,7 @@ class ScoreScreen extends Option
|
||||
public override function press():Bool
|
||||
{
|
||||
FlxG.save.data.scoreScreen = !FlxG.save.data.scoreScreen;
|
||||
display = updateDisplay();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -214,10 +214,8 @@ class OptionsMenu extends MusicBeatState
|
||||
if (isCat)
|
||||
{
|
||||
if (currentSelectedCat.getOptions()[curSelected].press()) {
|
||||
grpControls.remove(grpControls.members[curSelected]);
|
||||
var ctrl:Alphabet = new Alphabet(0, (70 * curSelected) + 30, currentSelectedCat.getOptions()[curSelected].getDisplay(), true, false);
|
||||
ctrl.isMenuItem = true;
|
||||
grpControls.add(ctrl);
|
||||
grpControls.members[curSelected].reType(currentSelectedCat.getOptions()[curSelected].getDisplay());
|
||||
trace(currentSelectedCat.getOptions()[curSelected].getDisplay());
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -236,7 +234,7 @@ class OptionsMenu extends MusicBeatState
|
||||
curSelected = 0;
|
||||
}
|
||||
|
||||
changeSelection(curSelected);
|
||||
changeSelection();
|
||||
}
|
||||
}
|
||||
FlxG.save.flush();
|
||||
|
Loading…
x
Reference in New Issue
Block a user