Merge pull request #21557 from Joehuu/nominated-ranked-beatmaps

Display nominated ranked beatmaps in user profile
This commit is contained in:
Dan Balasescu 2022-12-08 11:40:24 +09:00 committed by GitHub
commit 2406b8dfc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -32,6 +32,7 @@ namespace osu.Game.Online.API.Requests
Loved, Loved,
Pending, Pending,
Guest, Guest,
Graveyard Graveyard,
Nominated,
} }
} }

View File

@ -164,6 +164,9 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"guest_beatmapset_count")] [JsonProperty(@"guest_beatmapset_count")]
public int GuestBeatmapsetCount; public int GuestBeatmapsetCount;
[JsonProperty(@"nominated_beatmapset_count")]
public int NominatedBeatmapsetCount;
[JsonProperty(@"scores_best_count")] [JsonProperty(@"scores_best_count")]
public int ScoresBestCount; public int ScoresBestCount;

View File

@ -58,6 +58,9 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
case BeatmapSetType.Guest: case BeatmapSetType.Guest:
return user.GuestBeatmapsetCount; return user.GuestBeatmapsetCount;
case BeatmapSetType.Nominated:
return user.NominatedBeatmapsetCount;
default: default:
return 0; return 0;
} }

View File

@ -25,7 +25,8 @@ namespace osu.Game.Overlays.Profile.Sections
new PaginatedBeatmapContainer(BeatmapSetType.Loved, User, UsersStrings.ShowExtraBeatmapsLovedTitle), new PaginatedBeatmapContainer(BeatmapSetType.Loved, User, UsersStrings.ShowExtraBeatmapsLovedTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Guest, User, UsersStrings.ShowExtraBeatmapsGuestTitle), new PaginatedBeatmapContainer(BeatmapSetType.Guest, User, UsersStrings.ShowExtraBeatmapsGuestTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Pending, User, UsersStrings.ShowExtraBeatmapsPendingTitle), new PaginatedBeatmapContainer(BeatmapSetType.Pending, User, UsersStrings.ShowExtraBeatmapsPendingTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Graveyard, User, UsersStrings.ShowExtraBeatmapsGraveyardTitle) new PaginatedBeatmapContainer(BeatmapSetType.Graveyard, User, UsersStrings.ShowExtraBeatmapsGraveyardTitle),
new PaginatedBeatmapContainer(BeatmapSetType.Nominated, User, UsersStrings.ShowExtraBeatmapsNominatedTitle),
}; };
} }
} }