Move definition of MusicController's position out of itself.

This commit is contained in:
Dean Herbert
2017-01-30 22:00:23 +09:00
parent 578b33dc64
commit cbd6fe3f36
3 changed files with 120 additions and 109 deletions

View File

@ -21,6 +21,7 @@ using osu.Game.Modes;
using osu.Game.Overlays.Toolbar;
using osu.Game.Screens;
using osu.Game.Screens.Menu;
using OpenTK;
namespace osu.Game
{
@ -101,7 +102,11 @@ namespace osu.Game
//overlay elements
(chat = new ChatOverlay { Depth = 0 }).Preload(this, overlayContent.Add);
(options = new OptionsOverlay { Depth = -1 }).Preload(this, overlayContent.Add);
(musicController = new MusicController() { Depth = -3 }).Preload(this, overlayContent.Add);
(musicController = new MusicController()
{
Depth = -3,
Position = new Vector2(0, Toolbar.HEIGHT),
}).Preload(this, overlayContent.Add);
Dependencies.Cache(options);
Dependencies.Cache(musicController);