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:
parent
738d321788
commit
1e634d9db0
@ -26,9 +26,9 @@ namespace osu.Game.Online.API.Requests
|
||||
public enum BeatmapSetType
|
||||
{
|
||||
Favourite,
|
||||
RankedAndApproved,
|
||||
Ranked,
|
||||
Loved,
|
||||
Unranked,
|
||||
Pending,
|
||||
Graveyard
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user