1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Improve comments

This commit is contained in:
Joseph Madamba 2024-02-14 20:13:27 -08:00
parent 7b0b39dbaa
commit a03835bf1c
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
Content = s.NewValue?.GlobalRank?.ToLocalisableString("\\##,##0") ?? (LocalisableString)"-";
}, true);
// needed as statistics doesn't populate User
// needed as `UserStatistics` doesn't populate `User`
User.BindValueChanged(u =>
{
var rankHighest = u.NewValue?.RankHighest;

View File

@ -167,8 +167,8 @@ namespace osu.Game.Users
new GlobalRankDisplay
{
UserStatistics = { BindTarget = statistics },
// TODO: make highest rank update, as api.LocalUser doesn't update
// maybe move to statistics in api, so `SoloStatisticsWatcher` can update the value
// TODO: make highest rank update, as `api.LocalUser` doesn't update
// maybe move to `UserStatistics` in api, so `SoloStatisticsWatcher` can update the value
User = { BindTarget = user },
},
countryRankDisplay = new ProfileValueDisplay(true)