mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
Allow null rank
This commit is contained in:
parent
9e3b809cab
commit
7a6e02c558
@ -50,7 +50,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
||||
|
||||
protected override LeaderboardScore CreateDrawableScore(APIUserScoreAggregate model, int index) => new MatchLeaderboardScore(model, index);
|
||||
|
||||
protected override LeaderboardScore CreateDrawableTopScore(APIUserScoreAggregate model) => new MatchLeaderboardScore(model, model.Position ?? 0, false);
|
||||
protected override LeaderboardScore CreateDrawableTopScore(APIUserScoreAggregate model) => new MatchLeaderboardScore(model, model.Position, false);
|
||||
}
|
||||
|
||||
public enum MatchLeaderboardScope
|
||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
||||
{
|
||||
private readonly APIUserScoreAggregate score;
|
||||
|
||||
public MatchLeaderboardScore(APIUserScoreAggregate score, int rank, bool allowHighlight = true)
|
||||
public MatchLeaderboardScore(APIUserScoreAggregate score, int? rank, bool allowHighlight = true)
|
||||
: base(score.CreateScoreInfo(), rank, allowHighlight)
|
||||
{
|
||||
this.score = score;
|
||||
|
Loading…
Reference in New Issue
Block a user