Skip to content

Commit 2c06867

Browse files
committed
Update OsuFreeplayState.hx
1 parent f953e23 commit 2c06867

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

source/states/freeplay/OsuFreeplayState.hx

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class OsuFreeplayState extends MusicBeatState
524524
}
525525
}
526526
else {
527-
loadDiffs(FreeplayManager.songList[songBoxGrp.members[curSelected].songID]);
527+
reloadSongArray();
528528
}
529529
}
530530

@@ -704,34 +704,6 @@ class OsuFreeplayState extends MusicBeatState
704704
MusicManager.playMenuMusic(1);
705705
}
706706

707-
function loadDiffs(song:Dynamic) {
708-
var week:WeekData = WeekData.weeksLoaded.get(WeekData.weeksList[FreeplayManager.songList[songBoxGrp.members[curSelected].songID].week]);
709-
Difficulty.loadFromWeek(week);
710-
711-
var diffInt:Int = 0;
712-
for (j in 0...Difficulty.list.length)
713-
{
714-
var songBox:DiffBox = new DiffBox(320, 100);
715-
716-
songBox.difID = j;
717-
songBox.difName = Difficulty.list[j];
718-
songBox.loadGraphic(Paths.image('OSUState/bars/background2'));
719-
songBox.setGraphicSize(650, 50);
720-
songBox.setColorTransform(-1, -1, -1, 1, FreeplayManager.songList[songBoxGrp.members[curSelected].songID].color[0][0], FreeplayManager.songList[songBoxGrp.members[curSelected].songID].color[0][1], FreeplayManager.songList[songBoxGrp.members[curSelected].songID].color[0][2], 1);
721-
songBox.ID = song.ID + diffInt;
722-
this.songBoxGrp.add(songBox);
723-
724-
//try {metadata = FreeplayManager.metadata.get(FreeplayManager.songList[i].songName.toLowerCase());}
725-
//catch(e) {metadata = null;}
726-
727-
var text:FlxText = new FlxText(0, 0, 500, '', 20);
728-
text.text = Difficulty.list[j];
729-
text.alignment = 'left';
730-
text.ID = song.ID + diffInt;
731-
this.textGrp.add(text);
732-
}
733-
}
734-
735707
public function loadSongArray(reset:Bool, searching:Bool = false, searchQuery:String = '')
736708
{
737709
if(reset)

0 commit comments

Comments
 (0)