Skip to content

Commit 1605478

Browse files
committed
Merge branch 'Archipelago' of https://github.com/Z11Coding/Mixtape-Engine-Rework into Archipelago
2 parents f10ce9e + 5226034 commit 1605478

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

source/states/freeplay/OsuFreeplayState.hx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,27 +403,32 @@ class OsuFreeplayState extends MusicBeatState
403403
iconGrp.clear();
404404
textGrp.clear();
405405

406+
var trueInt:Int = 0;
407+
406408
for (i in 0...FreeplayManager.songList.length)
407409
{
410+
408411

409412
var week:WeekData = WeekData.weeksLoaded.get(WeekData.weeksList[FreeplayManager.songList[i].week]);
410413

411414
var difficulties:Array<String> = Difficulty.loadFromWeek(week);
412415

413416
for (j in 0...difficulties.length)
414417
{
418+
trueInt++;
419+
415420

416421

417422
var songBox:SongBox = new SongBox(320, 100);
418423
songBox.loadGraphic(Paths.image('OSUState/bars/background2'));
419424
songBox.setGraphicSize(650, 100);
420425
songBox.setColorTransform(-1, -1, -1, 1, FreeplayManager.songList[i].color[0][0], FreeplayManager.songList[i].color[0][1], FreeplayManager.songList[i].color[0][2], 1);
421-
songBox.ID = i + j;
426+
songBox.ID = trueInt;
422427
this.songBox.add(songBox);
423428

424429
var icon:HealthIcon = new HealthIcon(FreeplayManager.songList[i].songCharacter, false);
425430
icon.setPosition(320, 100);
426-
icon.ID = i + j;
431+
icon.ID = trueInt;
427432
icon.setGraphicSize(Std.int(icon.width / 1.7), Std.int(icon.height / 1.7));
428433
this.iconGrp.add(icon);
429434

@@ -433,7 +438,7 @@ class OsuFreeplayState extends MusicBeatState
433438
var text:FlxText = new FlxText(0, 0, 500, '', 20);
434439
text.text = FreeplayManager.songList[i].songName + '\n' + difficulties[j];
435440
text.alignment = 'left';
436-
text.ID = i + j;
441+
text.ID = trueInt;
437442
this.textGrp.add(text);
438443
}
439444
}

0 commit comments

Comments
 (0)