Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Oct 7, 2024
1 parent dc9e1b3 commit 7967485
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions source/states/SongSelectState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SongSelectState extends ExtendableState {
var intendedScore:Int = 0;

var isResetting:Bool = false;
var lockedInputs:Bool = false;
var lockInputs:Bool = false;

override function create() {
super.create();
Expand Down Expand Up @@ -121,7 +121,7 @@ class SongSelectState extends ExtendableState {
var exit = Input.is('exit') || (gamepad != null ? Input.gamepadIs('gamepad_exit') : false);
var reset = Input.is('r') || (gamepad != null ? Input.gamepadIs('right_stick_click') : false);

if (!lockedInputs) {
if (!lockInputs) {
if (left || right)
changeSelection(left ? -1 : 1);

Expand All @@ -145,7 +145,7 @@ class SongSelectState extends ExtendableState {
} else {
FlxG.sound.play(Paths.sound('cancel'));
isResetting = false;
lockedInputs = false;
lockInputs = false;
titleTxt.color = FlxColor.WHITE;
titleTxt.text = songListData.songs[currentIndex].name;
panelTxt.text = Localization.get("scoreTxt", SaveData.settings.lang) + lerpScore + " // " + Localization.get("diffTxt", SaveData.settings.lang)
Expand All @@ -164,7 +164,7 @@ class SongSelectState extends ExtendableState {
} else {
if (!isResetting) {
isResetting = true;
lockedInputs = true;
lockInputs = true;
titleTxt.text = Localization.get("youDecide", SaveData.settings.lang);
titleTxt.color = FlxColor.RED;
panelTxt.text = Localization.get("confirmReset", SaveData.settings.lang);
Expand All @@ -176,7 +176,7 @@ class SongSelectState extends ExtendableState {
HighScore.resetSong(songListData.songs[currentIndex].name);
isResetting = false;
new FlxTimer().start(1, function(tmr:FlxTimer) {
lockedInputs = false;
lockInputs = false;
titleTxt.color = FlxColor.WHITE;
titleTxt.text = songListData.songs[currentIndex].name;
panelTxt.text = Localization.get("scoreTxt", SaveData.settings.lang) + lerpScore + " // " + Localization.get("diffTxt", SaveData.settings.lang)
Expand Down
2 changes: 1 addition & 1 deletion source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TitleState extends ExtendableState {
Paths.clearUnusedMemory();

#if FUTURE_POLYMOD
if (ModHandler.trackedMods != []) {
if (ModHandler.trackedMods.length > 0) {
var installedMods:Array<String> = ModHandler.getMods();
Main.toast.create('Mods Installed:', 0xFFFFFF00, installedMods.join('\n'));
}
Expand Down

0 comments on commit 7967485

Please sign in to comment.