Remove old header from PaginatedContainer

This commit is contained in:
Andrei Zavatski
2020-09-07 22:24:10 +03:00
parent 5a7e2e96e0
commit 1c55039994
11 changed files with 20 additions and 65 deletions

View File

@ -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)