1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 03:03:21 +08:00

Applied suggested changes

This commit is contained in:
MrTheMake 2017-06-25 20:56:22 +02:00
parent cc71c10488
commit 0e1b49dff9
2 changed files with 7 additions and 7 deletions

View File

@ -223,14 +223,14 @@ namespace osu.Game.Overlays
base.LoadComplete(); base.LoadComplete();
} }
private void beatmapDisabledChanged(bool newBeatmapBackingDisabled) private void beatmapDisabledChanged(bool disabled)
{ {
prevButton.Enabled.Value = !newBeatmapBackingDisabled; prevButton.Enabled.Value = !disabled;
nextButton.Enabled.Value = !newBeatmapBackingDisabled; nextButton.Enabled.Value = !disabled;
playlistButton.Enabled.Value = !newBeatmapBackingDisabled; playlistButton.Enabled.Value = !disabled;
// Toggle the playlist's visibility if required // Toggle the playlist's visibility if required
if (newBeatmapBackingDisabled) if (disabled)
{ {
showPlaylistOnceAvailable = playlist.State == Visibility.Visible; showPlaylistOnceAvailable = playlist.State == Visibility.Visible;

View File

@ -33,6 +33,8 @@ namespace osu.Game.Screens.Ranking
internal override bool AllowRulesetChange => false; internal override bool AllowRulesetChange => false;
internal override bool AllowBeatmapChange => false;
private Container currentPage; private Container currentPage;
private static readonly Vector2 background_blur = new Vector2(20); private static readonly Vector2 background_blur = new Vector2(20);
@ -280,7 +282,5 @@ namespace osu.Game.Screens.Ranking
modeChangeButtons.Current.TriggerChange(); modeChangeButtons.Current.TriggerChange();
} }
internal override bool AllowBeatmapChange => false;
} }
} }