mirror of
https://github.com/ppy/osu
synced 2025-01-21 05:20:50 +00:00
Merge pull request #4132 from peppy/search-settings-dropdowns
Allow filtering settings matching based on dropdown content
This commit is contained in:
commit
7441121b5d
@ -26,6 +26,8 @@ namespace osu.Game.Overlays.Settings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override IEnumerable<string> FilterTerms => base.FilterTerms.Concat(Control.Items.Select(i => i.ToString()));
|
||||||
|
|
||||||
protected sealed override Drawable CreateControl() => CreateDropdown();
|
protected sealed override Drawable CreateControl() => CreateDropdown();
|
||||||
|
|
||||||
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl { Items = Items };
|
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl { Items = Items };
|
||||||
|
@ -72,7 +72,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<string> FilterTerms => new[] { LabelText };
|
public virtual IEnumerable<string> FilterTerms => new[] { LabelText };
|
||||||
|
|
||||||
public bool MatchingFilter
|
public bool MatchingFilter
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user