1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 01:59:53 +08:00

Use preload for options (fix icons).

This commit is contained in:
Dean Herbert
2016-11-08 18:49:20 +09:00
Unverified
parent 53d1798dee
commit 30323876a8
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -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<string>(OsuConfig.Username),
-1
View File
@@ -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);