mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 12:37:38 +09:00
Get mods from score info
This commit is contained in:
parent
5853a877c2
commit
6a86f62d17
@ -285,7 +285,7 @@ namespace osu.Game
|
|||||||
Ruleset.Value = databasedScoreInfo.Ruleset;
|
Ruleset.Value = databasedScoreInfo.Ruleset;
|
||||||
Beatmap.Value = BeatmapManager.GetWorkingBeatmap(databasedBeatmap);
|
Beatmap.Value = BeatmapManager.GetWorkingBeatmap(databasedBeatmap);
|
||||||
|
|
||||||
menuScreen.Push(new ReplayPlayerLoader(databasedScore, databasedScoreInfo.Mods));
|
menuScreen.Push(new ReplayPlayerLoader(databasedScore));
|
||||||
}, $"watch {databasedScoreInfo}", bypassScreenAllowChecks: true);
|
}, $"watch {databasedScoreInfo}", bypassScreenAllowChecks: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,10 +13,10 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
private readonly Bindable<IReadOnlyList<Mod>> mods;
|
private readonly Bindable<IReadOnlyList<Mod>> mods;
|
||||||
|
|
||||||
public ReplayPlayerLoader(Score score, IReadOnlyList<Mod> mods)
|
public ReplayPlayerLoader(Score score)
|
||||||
: base(() => new ReplayPlayer(score))
|
: base(() => new ReplayPlayer(score))
|
||||||
{
|
{
|
||||||
this.mods = new Bindable<IReadOnlyList<Mod>>(mods);
|
mods = new Bindable<IReadOnlyList<Mod>>(score.ScoreInfo.Mods);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user