1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 15:02:55 +08:00
osu-lazer/osu.Game.Tests/Visual/Multiplayer/TestSceneRoomStatus.cs

52 lines
2.0 KiB
C#
Raw Normal View History

// 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 12:30:36 +08:00
2020-12-18 14:18:06 +08:00
using System;
2018-12-27 12:30:36 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Multiplayer.RoomStatuses;
using osu.Game.Screens.Multi.Lounge.Components;
2019-03-25 00:02:36 +08:00
namespace osu.Game.Tests.Visual.Multiplayer
2018-12-27 12:30:36 +08:00
{
public class TestSceneRoomStatus : OsuTestScene
2018-12-27 12:30:36 +08:00
{
public TestSceneRoomStatus()
2018-12-27 12:30:36 +08:00
{
Child = new FillFlowContainer
{
RelativeSizeAxes = Axes.Both,
Width = 0.5f,
Children = new Drawable[]
{
new DrawableRoom(new Room
{
2020-12-21 15:18:39 +08:00
Name = { Value = "Open - ending in 1 day" },
2020-12-18 14:18:06 +08:00
Status = { Value = new RoomStatusOpen() },
EndDate = { Value = DateTimeOffset.Now.AddDays(1) }
}) { MatchingFilter = true },
2018-12-27 12:30:36 +08:00
new DrawableRoom(new Room
{
2020-12-21 15:18:39 +08:00
Name = { Value = "Playing - ending in 1 day" },
2020-12-18 14:18:06 +08:00
Status = { Value = new RoomStatusPlaying() },
EndDate = { Value = DateTimeOffset.Now.AddDays(1) }
}) { MatchingFilter = true },
2018-12-27 12:30:36 +08:00
new DrawableRoom(new Room
{
2020-12-21 15:18:39 +08:00
Name = { Value = "Ended" },
2020-12-18 14:18:06 +08:00
Status = { Value = new RoomStatusEnded() },
EndDate = { Value = DateTimeOffset.Now }
}) { MatchingFilter = true },
2020-12-21 15:18:39 +08:00
new DrawableRoom(new Room
{
Name = { Value = "Open (realtime)" },
Status = { Value = new RoomStatusOpen() },
Category = { Value = RoomCategory.Realtime }
}) { MatchingFilter = true },
2018-12-27 12:30:36 +08:00
}
};
}
}
}