mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Hook up multiplayer search filter
This commit is contained in:
parent
a1a0c0ef18
commit
956fb9912d
@ -24,6 +24,9 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
private readonly FillFlowContainer<DrawableRoom> roomFlow;
|
||||
public IReadOnlyList<DrawableRoom> Rooms => roomFlow;
|
||||
|
||||
[Resolved]
|
||||
private Bindable<FilterCriteria> filter { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private Bindable<Room> currentRoom { get; set; }
|
||||
|
||||
@ -57,6 +60,11 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
addRooms(rooms);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
filter.BindValueChanged(f => Filter(f.NewValue), true);
|
||||
}
|
||||
|
||||
private FilterCriteria currentFilter;
|
||||
|
||||
public void Filter(FilterCriteria criteria)
|
||||
|
Loading…
Reference in New Issue
Block a user