Make RoomsContainer/DrawableRoom not resolve via DI

This commit is contained in:
smoogipoo
2021-08-19 16:49:08 +09:00
parent 3a1154c00e
commit 00be7f4cca
5 changed files with 30 additions and 31 deletions

View File

@ -24,12 +24,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestSceneDrawableRoom : OsuTestScene
{
[Cached]
private readonly Bindable<Room> selectedRoom = new Bindable<Room>();
[Cached]
protected readonly OverlayColourProvider ColourProvider = new OverlayColourProvider(OverlayColourScheme.Plum);
private readonly Bindable<Room> selectedRoom = new Bindable<Room>();
[Test]
public void TestMultipleStatuses()
{
@ -153,7 +152,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
}));
}
return new DrawableLoungeRoom(room) { MatchingFilter = true };
return new DrawableLoungeRoom(room)
{
MatchingFilter = true,
SelectedRoom = { BindTarget = selectedRoom }
};
}
}
}