mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:02:57 +08:00
Fix playtime display
This commit is contained in:
parent
3d5b202f56
commit
25345a249f
@ -30,6 +30,7 @@ namespace osu.Game.Users
|
||||
private ProfileValueDisplay globalRankDisplay = null!;
|
||||
private ProfileValueDisplay countryRankDisplay = null!;
|
||||
private ProfileValueDisplay ppDisplay = null!;
|
||||
private TotalPlayTime playtimeDisplay = null!;
|
||||
private LoadingLayer loadingLayer = null!;
|
||||
|
||||
public UserRankPanel(APIUser user)
|
||||
@ -75,6 +76,7 @@ namespace osu.Game.Users
|
||||
globalRankDisplay.Content = statistics?.GlobalRank?.ToLocalisableString("\\##,##0") ?? "-";
|
||||
countryRankDisplay.Content = statistics?.CountryRank?.ToLocalisableString("\\##,##0") ?? "-";
|
||||
ppDisplay.Content = statistics?.PP?.ToLocalisableString("#,##0") ?? "0";
|
||||
playtimeDisplay.UserStatistics.Value = statistics;
|
||||
}
|
||||
|
||||
protected override Drawable CreateLayout()
|
||||
@ -207,10 +209,7 @@ namespace osu.Game.Users
|
||||
{
|
||||
Title = "pp"
|
||||
},
|
||||
new TotalPlayTime
|
||||
{
|
||||
UserStatistics = { BindTarget = statistics }
|
||||
}
|
||||
playtimeDisplay = new TotalPlayTime()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user