Skip to content

Commit 50dc76d

Browse files
authored
Merge pull request #21618 from smoogipoo/multi-spec-only-local-results
Only show local results in multi-spectator results screen
2 parents 9d14292 + 7b48c91 commit 50dc76d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

osu.Game/Screens/OnlinePlay/Multiplayer/Spectate/MultiSpectatorPlayer.cs

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using osu.Game.Beatmaps;
88
using osu.Game.Scoring;
99
using osu.Game.Screens.Play;
10+
using osu.Game.Screens.Ranking;
1011

1112
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
1213
{
@@ -70,5 +71,7 @@ protected override GameplayClockContainer CreateGameplayClockContainer(WorkingBe
7071
clockAdjustmentsFromMods.BindAdjustments(gameplayClockContainer.AdjustmentsFromMods);
7172
return gameplayClockContainer;
7273
}
74+
75+
protected override ResultsScreen CreateResults(ScoreInfo score) => new MultiSpectatorResultsScreen(score);
7376
}
7477
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2+
// See the LICENCE file in the repository root for full licence text.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Collections.Generic;
8+
using osu.Game.Online.API;
9+
using osu.Game.Scoring;
10+
using osu.Game.Screens.Play;
11+
12+
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
13+
{
14+
public partial class MultiSpectatorResultsScreen : SpectatorResultsScreen
15+
{
16+
public MultiSpectatorResultsScreen(ScoreInfo score)
17+
: base(score)
18+
{
19+
}
20+
21+
protected override APIRequest FetchScores(Action<IEnumerable<ScoreInfo>> scoresCallback) => null;
22+
23+
protected override APIRequest FetchNextPage(int direction, Action<IEnumerable<ScoreInfo>> scoresCallback) => null;
24+
}
25+
}

0 commit comments

Comments
 (0)