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

@ -13,12 +13,10 @@ using osu.Game.Overlays.SearchableList;
namespace osu.Game.Overlays.Direct
{
public class FilterControl : SearchableListFilterControl<DirectSortCritera>
public class FilterControl : SearchableListFilterControl<DirectSortCritera,RankStatus>
{
private FillFlowContainer<RulesetToggleButton> modeButtons;
public readonly DisplayStyleControl<RankStatus> DisplayStyleControl;
protected override Color4 BackgroundColour => OsuColour.FromHex(@"384552");
protected override DirectSortCritera DefaultTab => DirectSortCritera.Title;
protected override Drawable CreateSupplementaryControls()
@ -32,16 +30,6 @@ namespace osu.Game.Overlays.Direct
return modeButtons;
}
public FilterControl()
{
Add(DisplayStyleControl = new DisplayStyleControl<RankStatus>
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Margin = new MarginPadding { Bottom = 5, Right = SearchableListOverlay.WIDTH_PADDING },
});
}
[BackgroundDependencyLoader(true)]
private void load(OsuGame game, RulesetDatabase rulesets, OsuColour colours)
{