mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Don't highlight top score
This commit is contained in:
@ -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 CreateDrawableScore(APIUserScoreAggregate model, int index) => new MatchLeaderboardScore(model, index);
|
||||||
|
|
||||||
protected override LeaderboardScore CreateDrawableTopScore(APIUserScoreAggregate model) => new MatchLeaderboardScore(model, model.Position ?? 0);
|
protected override LeaderboardScore CreateDrawableTopScore(APIUserScoreAggregate model) => new MatchLeaderboardScore(model, model.Position ?? 0, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MatchLeaderboardScope
|
public enum MatchLeaderboardScope
|
||||||
|
@ -14,8 +14,8 @@ namespace osu.Game.Screens.Multi.Match.Components
|
|||||||
{
|
{
|
||||||
private readonly APIUserScoreAggregate score;
|
private readonly APIUserScoreAggregate score;
|
||||||
|
|
||||||
public MatchLeaderboardScore(APIUserScoreAggregate score, int rank)
|
public MatchLeaderboardScore(APIUserScoreAggregate score, int rank, bool allowHighlight = true)
|
||||||
: base(score.CreateScoreInfo(), rank)
|
: base(score.CreateScoreInfo(), rank, allowHighlight)
|
||||||
{
|
{
|
||||||
this.score = score;
|
this.score = score;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user