1
0
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:
StanR 2024-12-18 18:21:53 +05:00
parent 3d5b202f56
commit 25345a249f

View File

@ -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()
}
}
},