diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs index ea2fecf7c2..2d20faeeb1 100644 --- a/osu.Game/OsuGameBase.cs +++ b/osu.Game/OsuGameBase.cs @@ -25,12 +25,23 @@ namespace osu.Game public Options Options; public APIAccess API; - protected override Container Content => ratioContainer?.IsLoaded == true ? ratioContainer : base.Content; + protected override Container Content => ratioContainer; private RatioAdjust ratioContainer; public CursorContainer Cursor; + public OsuGameBase() + { + AddInternal(ratioContainer = new RatioAdjust()); + + Children = new Drawable[] + { + Options = new Options(), + Cursor = new OsuCursorContainer() + }; + } + public override void Load(BaseGame game) { base.Load(game); @@ -50,18 +61,6 @@ namespace osu.Game Password = Config.Get(OsuConfig.Password), Token = Config.Get(OsuConfig.Token) }; - - Add(new Drawable[] - { - ratioContainer = new RatioAdjust - { - Children = new Drawable[] - { - Options = new Options(), - Cursor = new OsuCursorContainer() - } - } - }); } protected override void Update()