mirror of https://github.com/ppy/osu
Allow filtering settings matching based on dropdown content
This commit is contained in:
parent
cbbcaf6821
commit
1025c51e0d
|
@ -26,6 +26,8 @@ public IEnumerable<T> Items
|
|||
}
|
||||
}
|
||||
|
||||
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 };
|
||||
|
|
|
@ -72,7 +72,7 @@ public virtual Bindable<T> Bindable
|
|||
}
|
||||
}
|
||||
|
||||
public IEnumerable<string> FilterTerms => new[] { LabelText };
|
||||
public virtual IEnumerable<string> FilterTerms => new[] { LabelText };
|
||||
|
||||
public bool MatchingFilter
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue