Skip to content

Commit

Permalink
Update ResultsSubState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Aug 26, 2023
1 parent 48a3bc4 commit 55cd16b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions source/meta/substate/ResultsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ResultsSubState extends MusicBeatSubState
var titleTxt:FlxText;
var resultsTxt:FlxText;

var bg:FlxSprite;
var bg:FlxSprite;

var sick = 0;
var good = 0;
Expand All @@ -27,9 +27,9 @@ class ResultsSubState extends MusicBeatSubState
var percentage = 0.0;
var rate = '';

public function new(sicks:Int, goods:Int, bads:Int, shits:Int, score:Int, misses:Int, percent:Float, rating:String)
public function new(sicks:Int, goods:Int, bads:Int, shits:Int, score:Int, misses:Int, percent:Float, rating:String)
{
super();
super();

sick = sicks;
good = goods;
Expand All @@ -45,17 +45,17 @@ class ResultsSubState extends MusicBeatSubState
{
persistentUpdate = true;

bg = new FlxSprite().loadGraphic(Paths.image('menuDesat'));
bg = new FlxSprite().loadGraphic(Paths.image('menuDesat'));
bg.screenCenter();
bg.alpha = 0.4;
add(bg);
bg.alpha = 0.4;
add(bg);

titleTxt = new FlxText(0, 0, 0, (PauseSubState.daSelected == 'Skip Song') ? 'y u skip??' : 'RESULTS', 72);
titleTxt.scrollFactor.set();
titleTxt.setFormat("VCR OSD Mono", 48, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
titleTxt.screenCenter(X);
titleTxt.updateHitbox();
add(titleTxt);
titleTxt = new FlxText(0, 0, 0, (PauseSubState.daSelected == 'Skip Song') ? 'y u skip??' : 'RESULTS', 72);
titleTxt.scrollFactor.set();
titleTxt.setFormat("VCR OSD Mono", 48, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
titleTxt.screenCenter(X);
titleTxt.updateHitbox();
add(titleTxt);

resultsTxt = new FlxText(0, 0, 0,
'Sicks: ' + sick
Expand All @@ -79,15 +79,15 @@ class ResultsSubState extends MusicBeatSubState
}

override function update(elapsed:Float)
{
{
super.update(elapsed);

if (controls.ACCEPT)
{
if (PlayState.isStoryMode)
MusicBeatState.switchState(new StoryMenuState());
else
{
{
if (PlayState.inMini) {
inMini = false;
MusicBeatState.switchState(new MinigamesState());
Expand All @@ -97,4 +97,4 @@ class ResultsSubState extends MusicBeatSubState
}
}
}
}
}

0 comments on commit 55cd16b

Please sign in to comment.