mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:43:22 +08:00
use resolved attribute
This commit is contained in:
parent
3d6d3b4025
commit
c9cffc8248
@ -73,7 +73,8 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
public ITooltip<ScoreInfo> GetCustomTooltip() => new LeaderboardScoreTooltip();
|
public ITooltip<ScoreInfo> GetCustomTooltip() => new LeaderboardScoreTooltip();
|
||||||
public virtual ScoreInfo TooltipContent => Score;
|
public virtual ScoreInfo TooltipContent => Score;
|
||||||
|
|
||||||
private ScoreManager scoreManager = null!;
|
[Resolved]
|
||||||
|
private ScoreManager scoreManager { get; set; } = null!;
|
||||||
|
|
||||||
public LeaderboardScore(ScoreInfo score, int? rank, bool isOnlineScope = true)
|
public LeaderboardScore(ScoreInfo score, int? rank, bool isOnlineScope = true)
|
||||||
{
|
{
|
||||||
@ -87,14 +88,12 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(IAPIProvider api, OsuColour colour, ScoreManager scoreManager)
|
private void load(IAPIProvider api, OsuColour colour)
|
||||||
{
|
{
|
||||||
var user = Score.User;
|
var user = Score.User;
|
||||||
|
|
||||||
statisticsLabels = GetStatistics(Score).Select(s => new ScoreComponentLabel(s)).ToList();
|
statisticsLabels = GetStatistics(Score).Select(s => new ScoreComponentLabel(s)).ToList();
|
||||||
|
|
||||||
this.scoreManager = scoreManager;
|
|
||||||
|
|
||||||
ClickableAvatar innerAvatar;
|
ClickableAvatar innerAvatar;
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
Loading…
Reference in New Issue
Block a user