Skip to content

Commit

Permalink
[STORY MENU] default difficulty fix, opacity fix for level labels (#427)
Browse files Browse the repository at this point in the history
to be more consistent with base game, the default difficulty now starts at the middle of the array, and the level labels lose its opaqueness when it is not being selected
  • Loading branch information
crowplexus authored Nov 3, 2024
1 parent da3fd5e commit 04e1763
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/funkin/menus/StoryMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ class StoryMenuState extends MusicBeatState {
}
}

// default difficulty should be the middle difficulty in the array
// to be consistent with base game and whatnot, you know the drill
curDifficulty = Math.floor(weeks[0].difficulties.length * 0.5);
// debug stuff lol
Logs.trace('Middle Difficulty for Week 1 is ${weeks[0].difficulties[curDifficulty]} (ID: $curDifficulty)');

changeWeek(0, true);

DiscordUtil.call("onMenuLoaded", ["Story Menu"]);
Expand Down Expand Up @@ -163,6 +169,7 @@ class StoryMenuState extends MusicBeatState {
if (!force) CoolUtil.playMenuSFX();
for(k=>e in weekSprites.members) {
e.targetY = k - curWeek;
e.alpha = k == curWeek ? 1.0 : 0.6;
}
tracklist.text = 'TRACKS\n\n${[for(e in weeks[curWeek].songs) if (!e.hide) e.name.toUpperCase()].join('\n')}';
weekTitle.text = weeks[curWeek].name.getDefault("");
Expand Down

0 comments on commit 04e1763

Please sign in to comment.