mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Move DummyWorkingBeatmap to a more global level (OsuScreen)
This commit is contained in:
parent
6016310b09
commit
21984ba764
@ -20,6 +20,7 @@ namespace osu.Game.Beatmaps
|
||||
Title = "no beatmaps available!",
|
||||
Author = "no one",
|
||||
},
|
||||
BeatmapSet = new BeatmapSetInfo(),
|
||||
Difficulty = new BeatmapDifficulty(),
|
||||
})
|
||||
{
|
||||
@ -32,6 +33,6 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
protected override Texture GetBackground() => null;
|
||||
|
||||
protected override Track GetTrack() => null;
|
||||
protected override Track GetTrack() => new TrackVirtual();
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ namespace osu.Game.Screens
|
||||
}
|
||||
set
|
||||
{
|
||||
beatmap.Value = value;
|
||||
beatmap.Value = value ?? new DummyWorkingBeatmap();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,9 +71,6 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
public void UpdateBeatmap(WorkingBeatmap beatmap)
|
||||
{
|
||||
if (beatmap == null)
|
||||
beatmap = new DummyWorkingBeatmap();
|
||||
|
||||
var lastContainer = beatmapInfoContainer;
|
||||
float newDepth = lastContainer?.Depth + 1 ?? 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user