Skip to content

Commit

Permalink
Merge pull request #8311 from smoogipoo/results-screen
Browse files Browse the repository at this point in the history
Implement the new results screen
  • Loading branch information
peppy authored Mar 17, 2020
2 parents cce356b + dd3a6c5 commit 156a3db
Show file tree
Hide file tree
Showing 24 changed files with 168 additions and 1,399 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using osu.Game.Screens.Backgrounds;
using osu.Game.Screens.Play;
using osu.Game.Screens.Play.PlayerSettings;
using osu.Game.Screens.Ranking;
using osu.Game.Screens.Select;
using osu.Game.Tests.Resources;
using osu.Game.Users;
Expand Down Expand Up @@ -203,7 +204,7 @@ public void PauseTest()
}

/// <summary>
/// Check if the visual settings container removes user dim when suspending <see cref="Player"/> for <see cref="SoloResults"/>
/// Check if the visual settings container removes user dim when suspending <see cref="Player"/> for <see cref="ResultsScreen"/>
/// </summary>
[Test]
public void TransitionTest()
Expand Down Expand Up @@ -335,7 +336,7 @@ private void load(OsuConfigManager config)
public bool IsBackgroundCurrent() => ((FadeAccessibleBackground)Background).IsCurrentScreen();
}

private class FadeAccessibleResults : SoloResults
private class FadeAccessibleResults : ResultsScreen
{
public FadeAccessibleResults(ScoreInfo score)
: base(score)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Rulesets;
using osu.Game.Screens.Ranking.Pages;
using osu.Game.Screens.Ranking;

namespace osu.Game.Tests.Visual.Gameplay
{
Expand Down
106 changes: 0 additions & 106 deletions osu.Game.Tests/Visual/Multiplayer/TestSceneMatchResults.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,27 @@
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
using osu.Game.Screens;
using osu.Game.Screens.Play;
using osu.Game.Screens.Ranking;
using osu.Game.Screens.Ranking.Pages;
using osu.Game.Tests.Beatmaps;
using osu.Game.Users;

namespace osu.Game.Tests.Visual.Gameplay
namespace osu.Game.Tests.Visual.Ranking
{
[TestFixture]
public class TestSceneResults : ScreenTestScene
public class TestSceneResultsScreen : ScreenTestScene
{
private BeatmapManager beatmaps;

public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(Results),
typeof(ResultsPage),
typeof(ScoreResultsPage),
typeof(ResultsScreen),
typeof(RetryButton),
typeof(ReplayDownloadButton),
typeof(LocalLeaderboardPage),
typeof(TestPlayer)
};

Expand Down Expand Up @@ -65,6 +63,7 @@ protected override void LoadComplete()
{ HitResult.Meh, 50 },
{ HitResult.Miss, 1 }
},
Beatmap = new TestBeatmap(new OsuRuleset().RulesetInfo).BeatmapInfo,
User = new User
{
Username = "peppy",
Expand Down Expand Up @@ -119,7 +118,7 @@ public TestResultsContainer(IScreen screen)
}
}

private class TestSoloResults : SoloResults
private class TestSoloResults : ResultsScreen
{
public HotkeyRetryOverlay RetryOverlay;

Expand Down
4 changes: 0 additions & 4 deletions osu.Game/Screens/Multi/Play/TimeshiftPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets;
using osu.Game.Scoring;
using osu.Game.Screens.Multi.Ranking;
using osu.Game.Screens.Play;
using osu.Game.Screens.Ranking;

namespace osu.Game.Screens.Multi.Play
{
Expand Down Expand Up @@ -115,7 +113,5 @@ protected override void Dispose(bool isDisposing)

Exited = null;
}

protected override Results CreateResults(ScoreInfo score) => new MatchResults(score);
}
}
26 changes: 0 additions & 26 deletions osu.Game/Screens/Multi/Ranking/MatchResults.cs

This file was deleted.

135 changes: 0 additions & 135 deletions osu.Game/Screens/Multi/Ranking/Pages/RoomLeaderboardPage.cs

This file was deleted.

Loading

0 comments on commit 156a3db

Please sign in to comment.