Skip to content

Commit

Permalink
Bind the mod select overlay's Beatmap to OsuScreen.Beatmap in constru…
Browse files Browse the repository at this point in the history
…ctor

Suggested by @bdach!
  • Loading branch information
cbrwn committed Jul 26, 2024
1 parent a885195 commit 17f00ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osu.Game/Screens/OnlinePlay/DailyChallenge/DailyChallenge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ [new MatchChatDisplay(room) { RelativeSizeAxes = Axes.Both }]

LoadComponent(userModsSelectOverlay = new RoomModSelectOverlay
{
Beatmap = { BindTarget = Beatmap },
SelectedMods = { BindTarget = userMods },
IsValidMod = _ => false
});
Expand Down Expand Up @@ -380,8 +381,6 @@ private void trySetDailyChallengeBeatmap()
Beatmap.Value = beatmapManager.GetWorkingBeatmap(beatmap); // this will gracefully fall back to dummy beatmap if missing locally.
Ruleset.Value = rulesets.GetRuleset(playlistItem.RulesetID);

userModsSelectOverlay.Beatmap.Value = Beatmap.Value;

applyLoopingToTrack();
}

Expand Down

0 comments on commit 17f00ec

Please sign in to comment.