1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +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
{
Favourite,
RankedAndApproved,
Ranked,
Loved,
Unranked,
Pending,
Graveyard
}
}

View File

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

View File

@ -19,9 +19,9 @@ namespace osu.Game.Overlays.Profile.Sections
Children = new[]
{
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.Unranked, User, UsersStrings.ShowExtraBeatmapsPendingTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Pending, User, UsersStrings.ShowExtraBeatmapsPendingTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Graveyard, User, UsersStrings.ShowExtraBeatmapsGraveyardTitle)
};
}

View File

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