1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 22:23:22 +08:00

Merge pull request #13954 from bdach/user-profile-beatmap-api-adjustments

Adjust user beatmap section naming on profile overlay to match web
This commit is contained in:
Dean Herbert 2021-07-21 08:21:10 +09:00 committed by GitHub
commit 59dd3452fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;