Move DisplayStyleControl to all FilterControls

This commit is contained in:
DrabWeb
2017-05-26 06:05:05 -03:00
parent 5785715ad5
commit 12f6276e05
6 changed files with 28 additions and 48 deletions

View File

@ -15,20 +15,19 @@ namespace osu.Game.Overlays.SearchableList
public static readonly float WIDTH_PADDING = 80;
}
//todo: naming
public abstract class SearchableListOverlay<T,U> : SearchableListOverlay
public abstract class SearchableListOverlay<T,U,S> : SearchableListOverlay
{
private readonly Container scrollContainer;
protected readonly SearchableListHeader<T> Header;
protected readonly SearchableListFilterControl<U> Filter;
protected readonly SearchableListFilterControl<U,S> Filter;
protected readonly FillFlowContainer ScrollFlow;
protected abstract Color4 BackgroundColour { get; }
protected abstract Color4 TrianglesColourLight { get; }
protected abstract Color4 TrianglesColourDark { get; }
protected abstract SearchableListHeader<T> CreateHeader();
protected abstract SearchableListFilterControl<U> CreateFilterControl();
protected abstract SearchableListFilterControl<U,S> CreateFilterControl();
protected SearchableListOverlay()
{