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

Move OptionsOverlay to OsuGame.

This commit is contained in:
Dean Herbert 2016-11-08 19:26:12 +09:00
parent 89b11ed099
commit 4426a683ed
2 changed files with 4 additions and 3 deletions

View File

@ -35,6 +35,8 @@ namespace osu.Game
string[] args;
public OptionsOverlay Options;
public OsuGame(string[] args = null)
{
this.args = args;
@ -89,6 +91,8 @@ namespace osu.Game
}
});
(Options = new OptionsOverlay { Depth = float.MaxValue / 2 }).Preload(game, Add);
(intro = new Intro
{
Beatmap = Beatmap

View File

@ -27,7 +27,6 @@ namespace osu.Game
protected override string MainResourceFile => @"osu.Game.Resources.dll";
public OptionsOverlay Options;
public APIAccess API;
protected override Container Content => ratioContainer;
@ -80,8 +79,6 @@ 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),