diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index ab6836fd0a..7ce13f736d 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -42,27 +42,8 @@ namespace osu.Game.Overlays Anchor = Anchor.TopRight;//placeholder Origin = Anchor.TopRight; Position = new Vector2(10, 50); - } - - protected override void Load(BaseGame game) - { - base.Load(game); - var osuGame = game as OsuGameBase; - - if (osuGame != null) - { - if (database == null) database = osuGame.Beatmaps; - trackManager = osuGame.Audio.Track; - } - - beatmapSource = osuGame?.Beatmap ?? new Bindable(); - beatmapSource.ValueChanged += workingChanged; - workingChanged(); - playList = database.GetAllWithChildren(); - Children = new Drawable[] { - backgroundSprite = getScaledSprite(game.Textures.Get(@"Backgrounds/bg4")),//placeholder new Box { RelativeSizeAxes = Axes.Both, @@ -183,6 +164,26 @@ namespace osu.Game.Overlays }; } + protected override void Load(BaseGame game) + { + base.Load(game); + var osuGame = game as OsuGameBase; + + if (osuGame != null) + { + if (database == null) database = osuGame.Beatmaps; + trackManager = osuGame.Audio.Track; + } + + beatmapSource = osuGame?.Beatmap ?? new Bindable(); + beatmapSource.ValueChanged += workingChanged; + workingChanged(); + playList = database.GetAllWithChildren(); + + backgroundSprite = getScaledSprite(game.Textures.Get(@"Backgrounds/bg4")); + AddInternal(backgroundSprite); + } + protected override void Update() { base.Update();