mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Merge pull request #21557 from Joehuu/nominated-ranked-beatmaps
Display nominated ranked beatmaps in user profile
This commit is contained in:
commit
2406b8dfc8
@ -32,6 +32,7 @@ namespace osu.Game.Online.API.Requests
|
|||||||
Loved,
|
Loved,
|
||||||
Pending,
|
Pending,
|
||||||
Guest,
|
Guest,
|
||||||
Graveyard
|
Graveyard,
|
||||||
|
Nominated,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user