diff --git a/osu.Game/Screens/Play/Options/CollectionOptions.cs b/osu.Game/Screens/Play/Options/CollectionOptions.cs index 4269faa9fb..e0bd54e91c 100644 --- a/osu.Game/Screens/Play/Options/CollectionOptions.cs +++ b/osu.Game/Screens/Play/Options/CollectionOptions.cs @@ -15,7 +15,7 @@ namespace osu.Game.Screens.Play.Options public override string Title => @"COLLECTIONS"; [BackgroundDependencyLoader] - private void load(OsuConfigManager config) + private void load() { Add(new OsuSpriteText { diff --git a/osu.Game/Screens/Play/Options/OptionsDisplay.cs b/osu.Game/Screens/Play/Options/OptionsDisplay.cs index 3ae3bb9caf..7558cc244d 100644 --- a/osu.Game/Screens/Play/Options/OptionsDisplay.cs +++ b/osu.Game/Screens/Play/Options/OptionsDisplay.cs @@ -8,6 +8,21 @@ namespace osu.Game.Screens.Play.Options { public class OptionsDisplay : FillFlowContainer { + private bool isVisible; + public bool IsVisible + { + set + { + isVisible = value; + + if (isVisible) + Show(); + else + Hide(); + } + get { return isVisible; } + } + public OptionsDisplay() { Direction = FillDirection.Vertical; diff --git a/osu.Game/Screens/Play/Options/PlaybackOptions.cs b/osu.Game/Screens/Play/Options/PlaybackOptions.cs index a38c6916e2..2a5551982d 100644 --- a/osu.Game/Screens/Play/Options/PlaybackOptions.cs +++ b/osu.Game/Screens/Play/Options/PlaybackOptions.cs @@ -2,9 +2,7 @@ // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; -using osu.Framework.Graphics; using osu.Game.Configuration; -using osu.Game.Graphics.UserInterface; using osu.Game.Overlays.Settings; namespace osu.Game.Screens.Play.Options diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index 8ee0de12b9..1f5e0ae0cd 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -167,6 +167,7 @@ namespace osu.Game.Screens.Play hudOverlay.Progress.Objects = HitRenderer.Objects; hudOverlay.Progress.AudioClock = decoupledClock; hudOverlay.Progress.AllowSeeking = HitRenderer.HasReplayLoaded; + hudOverlay.OptionsDisplay.IsVisible = HitRenderer.HasReplayLoaded; hudOverlay.Progress.OnSeek = pos => decoupledClock.Seek(pos); hudOverlay.ModDisplay.Current.BindTo(Beatmap.Mods);