mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Integration into overlay
This commit is contained in:
@ -32,6 +32,18 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
||||
protected override APIRequest<List<APILegacyScoreInfo>> CreateRequest() =>
|
||||
new GetUserScoresRequest(User.Value.Id, type, VisiblePages++, ItemsPerPage);
|
||||
|
||||
protected override int GetCount(User user)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
default:
|
||||
return 0;
|
||||
|
||||
case ScoreType.Firsts:
|
||||
return user.ScoresFirstCount;
|
||||
}
|
||||
}
|
||||
|
||||
protected override Drawable CreateDrawableItem(APILegacyScoreInfo model)
|
||||
{
|
||||
switch (type)
|
||||
|
Reference in New Issue
Block a user