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

Adjust user beatmap sections on profile overlay to match web

This commit is contained in:
Bartłomiej Dach 2021-07-20 21:48:38 +02:00
parent 738d321788
commit 1e634d9db0
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
4 changed files with 12 additions and 12 deletions

View File

@ -26,9 +26,9 @@ namespace osu.Game.Online.API.Requests
public enum BeatmapSetType public enum BeatmapSetType
{ {
Favourite, Favourite,
RankedAndApproved, Ranked,
Loved, Loved,
Unranked, Pending,
Graveyard Graveyard
} }
} }

View File

@ -46,11 +46,11 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
case BeatmapSetType.Loved: case BeatmapSetType.Loved:
return user.LovedBeatmapsetCount; return user.LovedBeatmapsetCount;
case BeatmapSetType.RankedAndApproved: case BeatmapSetType.Ranked:
return user.RankedAndApprovedBeatmapsetCount; return user.RankedBeatmapsetCount;
case BeatmapSetType.Unranked: case BeatmapSetType.Pending:
return user.UnrankedBeatmapsetCount; return user.PendingBeatmapsetCount;
default: default:
return 0; return 0;

View File

@ -19,9 +19,9 @@ namespace osu.Game.Overlays.Profile.Sections
Children = new[] Children = new[]
{ {
new PaginatedBeatmapContainer(BeatmapSetType.Favourite, User, UsersStrings.ShowExtraBeatmapsFavouriteTitle), new PaginatedBeatmapContainer(BeatmapSetType.Favourite, User, UsersStrings.ShowExtraBeatmapsFavouriteTitle),
new PaginatedBeatmapContainer(BeatmapSetType.RankedAndApproved, User, UsersStrings.ShowExtraBeatmapsRankedTitle), new PaginatedBeatmapContainer(BeatmapSetType.Ranked, User, UsersStrings.ShowExtraBeatmapsRankedTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Loved, User, UsersStrings.ShowExtraBeatmapsLovedTitle), new PaginatedBeatmapContainer(BeatmapSetType.Loved, User, UsersStrings.ShowExtraBeatmapsLovedTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Unranked, User, UsersStrings.ShowExtraBeatmapsPendingTitle), new PaginatedBeatmapContainer(BeatmapSetType.Pending, User, UsersStrings.ShowExtraBeatmapsPendingTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Graveyard, User, UsersStrings.ShowExtraBeatmapsGraveyardTitle) new PaginatedBeatmapContainer(BeatmapSetType.Graveyard, User, UsersStrings.ShowExtraBeatmapsGraveyardTitle)
}; };
} }

View File

@ -138,11 +138,11 @@ namespace osu.Game.Users
[JsonProperty(@"loved_beatmapset_count")] [JsonProperty(@"loved_beatmapset_count")]
public int LovedBeatmapsetCount; public int LovedBeatmapsetCount;
[JsonProperty(@"ranked_and_approved_beatmapset_count")] [JsonProperty(@"ranked_beatmapset_count")]
public int RankedAndApprovedBeatmapsetCount; public int RankedBeatmapsetCount;
[JsonProperty(@"unranked_beatmapset_count")] [JsonProperty(@"pending_beatmapset_count")]
public int UnrankedBeatmapsetCount; public int PendingBeatmapsetCount;
[JsonProperty(@"scores_best_count")] [JsonProperty(@"scores_best_count")]
public int ScoresBestCount; public int ScoresBestCount;