Pass ruleset info to constructor instead

Follows the way working beatmap is passed, not sure why mods are passed as a bindable though, don't wanna bother too much with that.
This commit is contained in:
Salman Ahmed
2021-05-08 11:57:12 +03:00
parent 169a283402
commit b4801faf32
3 changed files with 6 additions and 7 deletions

View File

@ -32,7 +32,7 @@ namespace osu.Game.Tests.Visual.SongSelect
private void createDisplay(Func<WorkingBeatmap> getBeatmap)
{
AddStep("setup display", () => Child = display = new BeatmapMetadataDisplay(getBeatmap(), new Bindable<IReadOnlyList<Mod>>(randomMods), null)
AddStep("setup display", () => Child = display = new BeatmapMetadataDisplay(getBeatmap(), Ruleset.Value, new Bindable<IReadOnlyList<Mod>>(randomMods), null)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,