diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs index ae13b20f4a..d731115c91 100644 --- a/osu.Game/OsuGameBase.cs +++ b/osu.Game/OsuGameBase.cs @@ -44,8 +44,7 @@ namespace osu.Game Children = new Drawable[] { - Options = new OptionsOverlay(), - Cursor = new OsuCursorContainer() + Cursor = new OsuCursorContainer { Depth = float.MaxValue } }; Beatmap.ValueChanged += Beatmap_ValueChanged; @@ -81,6 +80,8 @@ namespace osu.Game Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-Black")); Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-BlackItalic")); + (Options = new OptionsOverlay { Depth = float.MaxValue / 2}).Preload(game, Add); + API = new APIAccess() { Username = Config.Get(OsuConfig.Username), diff --git a/osu.Game/Overlays/OptionsOverlay.cs b/osu.Game/Overlays/OptionsOverlay.cs index c8d0dbac31..40c586b7f8 100644 --- a/osu.Game/Overlays/OptionsOverlay.cs +++ b/osu.Game/Overlays/OptionsOverlay.cs @@ -34,7 +34,6 @@ namespace osu.Game.Overlays public OptionsOverlay() { - Depth = float.MaxValue; RelativeSizeAxes = Axes.Y; Size = new Vector2(width, 1); Position = new Vector2(-width, 0);