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,13 +14,13 @@ using osuTK;
namespace osu.Game.Overlays.Profile.Sections.Beatmaps
{
public class PaginatedBeatmapContainer : PaginatedContainerWithHeader<APIBeatmapSet>
public class PaginatedBeatmapContainer : PaginatedContainer<APIBeatmapSet>
{
private const float panel_padding = 10f;
private readonly BeatmapSetType type;
public PaginatedBeatmapContainer(BeatmapSetType type, Bindable<User> user, string headerText)
: base(user, headerText, CounterVisibilityState.AlwaysVisible)
: base(user, "", headerText, CounterVisibilityState.AlwaysVisible)
{
this.type = type;
ItemsPerPage = 6;