Implement settings keywords

This commit is contained in:
Andrei Zavatski
2019-11-20 19:27:34 +03:00
parent a81c26577d
commit e820ddd3e8
10 changed files with 35 additions and 9 deletions

View File

@ -21,7 +21,12 @@ namespace osu.Game.Overlays.Settings
protected abstract string Header { get; }
public IEnumerable<IFilterable> FilterableChildren => Children.OfType<IFilterable>();
public IEnumerable<string> FilterTerms => new[] { Header };
public virtual IEnumerable<string> FilterTerms => Keywords == null ? new[] { Header } : new List<string>(Keywords)
{
Header
}.ToArray();
public IEnumerable<string> Keywords { get; set; }
public bool MatchingFilter
{