1
0
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:
smoogipoo 2019-11-15 08:23:56 +09:00
parent a1a0c0ef18
commit 956fb9912d

View File

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