2019-01-24 08:43:03 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-12-27 04:30:36 +00:00
|
|
|
|
2020-12-18 06:18:06 +00:00
|
|
|
using System;
|
2018-12-27 04:30:36 +00:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-12-25 04:38:11 +00:00
|
|
|
using osu.Game.Online.Rooms;
|
|
|
|
using osu.Game.Online.Rooms.RoomStatuses;
|
2020-12-25 15:50:00 +00:00
|
|
|
using osu.Game.Screens.OnlinePlay.Lounge.Components;
|
2018-12-27 04:30:36 +00:00
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
2018-12-27 04:30:36 +00:00
|
|
|
{
|
2021-07-06 09:10:40 +00:00
|
|
|
public class TestSceneDrawableRoom : OsuTestScene
|
2018-12-27 04:30:36 +00:00
|
|
|
{
|
2021-07-06 09:10:40 +00:00
|
|
|
public TestSceneDrawableRoom()
|
2018-12-27 04:30:36 +00:00
|
|
|
{
|
|
|
|
Child = new FillFlowContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Width = 0.5f,
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
2020-12-21 07:18:39 +00:00
|
|
|
Name = { Value = "Open - ending in 1 day" },
|
2020-12-18 06:18:06 +00:00
|
|
|
Status = { Value = new RoomStatusOpen() },
|
|
|
|
EndDate = { Value = DateTimeOffset.Now.AddDays(1) }
|
|
|
|
}) { MatchingFilter = true },
|
2018-12-27 04:30:36 +00:00
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
2020-12-21 07:18:39 +00:00
|
|
|
Name = { Value = "Playing - ending in 1 day" },
|
2020-12-18 06:18:06 +00:00
|
|
|
Status = { Value = new RoomStatusPlaying() },
|
|
|
|
EndDate = { Value = DateTimeOffset.Now.AddDays(1) }
|
|
|
|
}) { MatchingFilter = true },
|
2018-12-27 04:30:36 +00:00
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
2020-12-21 07:18:39 +00:00
|
|
|
Name = { Value = "Ended" },
|
2020-12-18 06:18:06 +00:00
|
|
|
Status = { Value = new RoomStatusEnded() },
|
|
|
|
EndDate = { Value = DateTimeOffset.Now }
|
|
|
|
}) { MatchingFilter = true },
|
2020-12-21 07:18:39 +00:00
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
2020-12-25 04:38:11 +00:00
|
|
|
Name = { Value = "Open" },
|
2020-12-21 07:18:39 +00:00
|
|
|
Status = { Value = new RoomStatusOpen() },
|
2020-12-25 14:36:09 +00:00
|
|
|
Category = { Value = RoomCategory.Realtime }
|
2020-12-21 07:18:39 +00:00
|
|
|
}) { MatchingFilter = true },
|
2018-12-27 04:30:36 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|