1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Add score container for pinned scores in ranks section

This commit is contained in:
Salman Ahmed 2022-02-10 21:32:07 +03:00
parent 9cd88ec2b8
commit 4f7003928a
2 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,9 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
case ScoreType.Recent:
return user.ScoresRecentCount;
case ScoreType.Pinned:
return user.ScoresPinnedCount;
default:
return 0;
}

View File

@ -18,6 +18,8 @@ namespace osu.Game.Overlays.Profile.Sections
{
Children = new[]
{
// todo: update to use UsersStrings.ShowExtraTopRanksPinnedTitle once that exists.
new PaginatedScoreContainer(ScoreType.Pinned, User, "Pinned Scores"),
new PaginatedScoreContainer(ScoreType.Best, User, UsersStrings.ShowExtraTopRanksBestTitle),
new PaginatedScoreContainer(ScoreType.Firsts, User, UsersStrings.ShowExtraTopRanksFirstTitle)
};