Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed May 9, 2023
1 parent 502019a commit 7f3ec52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions source/options/Stats.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ class Stats extends MusicBeatState
statsTxt = new Alphabet(0, 200, "N/A: 0000", false);
statsTxt.screenCenter();
statsTxt.text = stats[i][0] + ": " + stats[i][1];
statsTxt.alpha = 0.6;
statsTxt.isMenuItemCenter = true;
statsTxt.targetY = i;
statsTxt.ID = i;
statsTxt.changeX = false;
grpTexts.add(statsTxt);
}

changeSelection();

textBG = new FlxSprite(0, FlxG.height - 26).makeGraphic(FlxG.width, 26, 0xFF000000);
textBG.scrollFactor.set(0, 0);
textBG.alpha = 0.6;
Expand Down Expand Up @@ -111,7 +113,7 @@ class Stats extends MusicBeatState

item.alpha = 0.6;

if (item.targetY == 0){
if (item.ID == curSelected){
item.alpha = 1;
}
}
Expand Down
6 changes: 5 additions & 1 deletion source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ import flixel.input.gamepad.FlxGamepad;
import flixel.math.FlxMath;
import flixel.math.FlxPoint;
import flixel.math.FlxRect;
import flixel.system.FlxSound;
#if (flixel >= "5.2.2")
import flixel.system.FlxSound;
#else
import flixel.sound.FlxSound;
#end
import flixel.system.ui.FlxSoundTray;
import flixel.text.FlxText;
import flixel.tweens.FlxEase;
Expand Down

0 comments on commit 7f3ec52

Please sign in to comment.