mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:42:56 +08:00
Bind the mod select overlay's Beatmap to OsuScreen.Beatmap in constructor
Suggested by @bdach!
This commit is contained in:
parent
a8851950bc
commit
17f00ec0a6
@ -301,6 +301,7 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
||||
|
||||
LoadComponent(userModsSelectOverlay = new RoomModSelectOverlay
|
||||
{
|
||||
Beatmap = { BindTarget = Beatmap },
|
||||
SelectedMods = { BindTarget = userMods },
|
||||
IsValidMod = _ => false
|
||||
});
|
||||
@ -380,8 +381,6 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user