mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Fix oversight when making interface implementation explicit
This commit is contained in:
parent
e15a25ea49
commit
94693a4667
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -26,15 +24,17 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
public class PlaySongSelect : SongSelect, ILeaderboardScoreSource
|
public class PlaySongSelect : SongSelect, ILeaderboardScoreSource
|
||||||
{
|
{
|
||||||
private OsuScreen playerLoader;
|
private OsuScreen? playerLoader;
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private INotificationOverlay notifications { get; set; }
|
private INotificationOverlay? notifications { get; set; }
|
||||||
|
|
||||||
public override bool AllowExternalScreenChange => true;
|
public override bool AllowExternalScreenChange => true;
|
||||||
|
|
||||||
protected override UserActivity InitialActivity => new UserActivity.ChoosingBeatmap();
|
protected override UserActivity InitialActivity => new UserActivity.ChoosingBeatmap();
|
||||||
|
|
||||||
|
private PlayBeatmapDetailArea playBeatmapDetailArea = null!;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
protected override BeatmapDetailArea CreateBeatmapDetailArea()
|
protected override BeatmapDetailArea CreateBeatmapDetailArea()
|
||||||
{
|
{
|
||||||
var playBeatmapDetailArea = new PlayBeatmapDetailArea
|
playBeatmapDetailArea = new PlayBeatmapDetailArea
|
||||||
{
|
{
|
||||||
Leaderboard =
|
Leaderboard =
|
||||||
{
|
{
|
||||||
@ -54,8 +54,6 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Scores.BindTo(playBeatmapDetailArea.Leaderboard.Scores);
|
|
||||||
|
|
||||||
return playBeatmapDetailArea;
|
return playBeatmapDetailArea;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,9 +72,9 @@ namespace osu.Game.Screens.Select
|
|||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
private IReadOnlyList<Mod> modsAtGameplayStart;
|
private IReadOnlyList<Mod>? modsAtGameplayStart;
|
||||||
|
|
||||||
private ModAutoplay getAutoplayMod() => Ruleset.Value.CreateInstance().GetAutoplayMod();
|
private ModAutoplay? getAutoplayMod() => Ruleset.Value.CreateInstance().GetAutoplayMod();
|
||||||
|
|
||||||
protected override bool OnStart()
|
protected override bool OnStart()
|
||||||
{
|
{
|
||||||
@ -135,6 +133,6 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IBindableList<ScoreInfo> ILeaderboardScoreSource.Scores { get; } = new BindableList<ScoreInfo>();
|
IBindableList<ScoreInfo> ILeaderboardScoreSource.Scores => playBeatmapDetailArea.Leaderboard.Scores;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user