Merge pull request #4132 from peppy/search-settings-dropdowns

Allow filtering settings matching based on dropdown content
This commit is contained in:
ekrctb 2019-01-23 17:48:13 +09:00 committed by GitHub
commit 7441121b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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 virtual OsuDropdown<T> CreateDropdown() => new DropdownControl { Items = Items };

View File

@ -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
{