Skip to content

Commit

Permalink
Merge pull request ppy#7839 from smoogipoo/match-subscreen-redesign
Browse files Browse the repository at this point in the history
Redesign match subscreen to add playlist support
  • Loading branch information
peppy authored Feb 15, 2020
2 parents e85c76b + a8be437 commit a51fdfb
Show file tree
Hide file tree
Showing 31 changed files with 982 additions and 1,076 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
// See the LICENCE file in the repository root for full licence text.

using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Multi.Components;
Expand All @@ -14,6 +17,12 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestSceneMatchBeatmapDetailArea : MultiplayerTestScene
{
[Resolved]
private BeatmapManager beatmapManager { get; set; }

[Resolved]
private RulesetStore rulesetStore { get; set; }

[SetUp]
public void Setup() => Schedule(() =>
{
Expand Down
41 changes: 0 additions & 41 deletions osu.Game.Tests/Visual/Multiplayer/TestSceneMatchBeatmapPanel.cs

This file was deleted.

5 changes: 3 additions & 2 deletions osu.Game.Tests/Visual/Multiplayer/TestSceneMatchHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System.Collections.Generic;
using osu.Game.Beatmaps;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Multiplayer.GameTypes;
using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Multi.Match.Components;
using osu.Game.Users;

namespace osu.Game.Tests.Visual.Multiplayer
{
Expand Down Expand Up @@ -45,7 +45,8 @@ public TestSceneMatchHeader()
}
});

Room.Type.Value = new GameTypeTimeshift();
Room.Name.Value = "A very awesome room";
Room.Host.Value = new User { Id = 2, Username = "peppy" };

Child = new Header();
}
Expand Down
35 changes: 0 additions & 35 deletions osu.Game.Tests/Visual/Multiplayer/TestSceneMatchHostInfo.cs

This file was deleted.

84 changes: 0 additions & 84 deletions osu.Game.Tests/Visual/Multiplayer/TestSceneMatchInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Screens.Multi.Match.Components;
using osuTK;

namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestSceneMatchLeaderboardChatDisplay : MultiplayerTestScene
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(LeaderboardChatDisplay)
};

protected override bool UseOnlineAPI => true;

public TestSceneMatchLeaderboardChatDisplay()
{
Room.RoomID.Value = 7;

Add(new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(500),
Child = new LeaderboardChatDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}
});
}
}
}
52 changes: 0 additions & 52 deletions osu.Game.Tests/Visual/Multiplayer/TestSceneMatchParticipants.cs

This file was deleted.

Loading

0 comments on commit a51fdfb

Please sign in to comment.