mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove old header from PaginatedContainer
This commit is contained in:
@ -17,25 +17,18 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
||||
{
|
||||
private readonly ScoreType type;
|
||||
|
||||
public PaginatedScoreContainer(ScoreType type, Bindable<User> user, string header, string missing)
|
||||
: base(user, header, missing)
|
||||
public PaginatedScoreContainer(ScoreType type, Bindable<User> user, string missing)
|
||||
: base(user, missing)
|
||||
{
|
||||
this.type = type;
|
||||
|
||||
ItemsPerPage = 5;
|
||||
|
||||
ItemsContainer.Direction = FillDirection.Vertical;
|
||||
}
|
||||
|
||||
protected override APIRequest<List<APILegacyScoreInfo>> CreateRequest() =>
|
||||
new GetUserScoresRequest(User.Value.Id, type, VisiblePages++, ItemsPerPage);
|
||||
|
||||
protected override int GetCount(User user) => type switch
|
||||
{
|
||||
ScoreType.Firsts => user.ScoresFirstCount,
|
||||
_ => 0
|
||||
};
|
||||
|
||||
protected override Drawable CreateDrawableItem(APILegacyScoreInfo model)
|
||||
{
|
||||
switch (type)
|
||||
|
Reference in New Issue
Block a user