mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 06:07:11 +09:00
Disable watching replays from realtime results screen
This commit is contained in:
@ -57,11 +57,13 @@ namespace osu.Game.Screens.Ranking
|
||||
private APIRequest nextPageRequest;
|
||||
|
||||
private readonly bool allowRetry;
|
||||
private readonly bool allowWatchingReplay;
|
||||
|
||||
protected ResultsScreen(ScoreInfo score, bool allowRetry)
|
||||
protected ResultsScreen(ScoreInfo score, bool allowRetry, bool allowWatchingReplay = true)
|
||||
{
|
||||
Score = score;
|
||||
this.allowRetry = allowRetry;
|
||||
this.allowWatchingReplay = allowWatchingReplay;
|
||||
|
||||
SelectedScore.Value = score;
|
||||
}
|
||||
@ -128,15 +130,7 @@ namespace osu.Game.Screens.Ranking
|
||||
Origin = Anchor.Centre,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Spacing = new Vector2(5),
|
||||
Direction = FillDirection.Horizontal,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new ReplayDownloadButton(null)
|
||||
{
|
||||
Score = { BindTarget = SelectedScore },
|
||||
Width = 300
|
||||
},
|
||||
}
|
||||
Direction = FillDirection.Horizontal
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -157,6 +151,15 @@ namespace osu.Game.Screens.Ranking
|
||||
ScorePanelList.AddScore(Score, shouldFlair);
|
||||
}
|
||||
|
||||
if (allowWatchingReplay)
|
||||
{
|
||||
buttons.Add(new ReplayDownloadButton(null)
|
||||
{
|
||||
Score = { BindTarget = SelectedScore },
|
||||
Width = 300
|
||||
});
|
||||
}
|
||||
|
||||
if (player != null && allowRetry)
|
||||
{
|
||||
buttons.Add(new RetryButton { Width = 300 });
|
||||
|
Reference in New Issue
Block a user