2020-02-14 19:42:14 +08: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.
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Online.Multiplayer;
|
|
|
|
using osu.Game.Rulesets.Osu;
|
2020-02-19 16:33:09 +08:00
|
|
|
using osu.Game.Screens.Multi.Components;
|
2020-02-14 19:42:14 +08:00
|
|
|
using osu.Game.Tests.Beatmaps;
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
|
|
|
{
|
|
|
|
public class TestSceneOverlinedPlaylist : MultiplayerTestScene
|
|
|
|
{
|
|
|
|
protected override bool UseOnlineAPI => true;
|
|
|
|
|
|
|
|
public TestSceneOverlinedPlaylist()
|
|
|
|
{
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
{
|
|
|
|
Room.Playlist.Add(new PlaylistItem
|
|
|
|
{
|
|
|
|
ID = i,
|
|
|
|
Beatmap = { Value = new TestBeatmap(new OsuRuleset().RulesetInfo).BeatmapInfo },
|
|
|
|
Ruleset = { Value = new OsuRuleset().RulesetInfo }
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-02-20 13:33:13 +08:00
|
|
|
Add(new OverlinedPlaylist(false)
|
2020-02-14 19:42:14 +08:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
Size = new Vector2(500),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|