mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:13:21 +08:00
Hide content if beatmap has no leaderboard
This commit is contained in:
parent
d1853ea55b
commit
633c497602
@ -37,6 +37,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
private readonly FillFlowContainer modFilter;
|
private readonly FillFlowContainer modFilter;
|
||||||
private readonly LeaderboardModSelector modSelector;
|
private readonly LeaderboardModSelector modSelector;
|
||||||
private readonly NoScoresPlaceholder noScoresPlaceholder;
|
private readonly NoScoresPlaceholder noScoresPlaceholder;
|
||||||
|
private readonly FillFlowContainer content;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; }
|
private IAPIProvider api { get; set; }
|
||||||
@ -82,7 +83,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
content = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
@ -223,9 +224,11 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
if (hasNoLeaderboard)
|
if (hasNoLeaderboard)
|
||||||
{
|
{
|
||||||
Scores = null;
|
Scores = null;
|
||||||
|
content.Hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
content.Show();
|
||||||
loading.Show();
|
loading.Show();
|
||||||
getScoresRequest = new GetScoresRequest(Beatmap.Value, Beatmap.Value.Ruleset, scope.Value, modSelector.SelectedMods);
|
getScoresRequest = new GetScoresRequest(Beatmap.Value, Beatmap.Value.Ruleset, scope.Value, modSelector.SelectedMods);
|
||||||
getScoresRequest.Success += scores =>
|
getScoresRequest.Success += scores =>
|
||||||
|
Loading…
Reference in New Issue
Block a user