mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Move DisplayStyleControl to all FilterControls
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user