Move PaginatedContainerWithHeader logic to a base class

This commit is contained in:
Andrei Zavatski
2020-09-10 20:48:06 +03:00
parent e5f70d8eae
commit 913e3faf60
5 changed files with 24 additions and 51 deletions

View File

@ -14,12 +14,12 @@ using osu.Framework.Allocation;
namespace osu.Game.Overlays.Profile.Sections.Ranks
{
public class PaginatedScoreContainer : PaginatedContainerWithHeader<APILegacyScoreInfo>
public class PaginatedScoreContainer : PaginatedContainer<APILegacyScoreInfo>
{
private readonly ScoreType type;
public PaginatedScoreContainer(ScoreType type, Bindable<User> user, string headerText, CounterVisibilityState counterVisibilityState, string missingText = "")
: base(user, headerText, counterVisibilityState, missingText)
: base(user, missingText, headerText, counterVisibilityState)
{
this.type = type;
@ -49,7 +49,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
base.OnItemsReceived(items);
if (type == ScoreType.Recent)
Header.Current.Value = items.Count;
SetCount(items.Count);
}
protected override APIRequest<List<APILegacyScoreInfo>> CreateRequest() =>