Add lock overlay for rooms which are password protected

This commit is contained in:
Dean Herbert
2021-07-10 14:14:58 +09:00
parent f35d55c32f
commit 3c49b46c5f
2 changed files with 48 additions and 1 deletions

View File

@ -123,6 +123,12 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddUntilStep("3 rooms visible", () => container.Rooms.Count(r => r.IsPresent) == 3);
}
[Test]
public void TestPasswordProtectedRooms()
{
AddStep("add rooms", () => RoomManager.AddRooms(3, withPassword: true));
}
private bool checkRoomSelected(Room room) => SelectedRoom.Value == room;
private void joinRequested(Room room) => room.Status.Value = new JoinedRoomStatus();