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:
parent
9cd88ec2b8
commit
4f7003928a
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user