Add music controller into game.

This commit is contained in:
Huo Yaoyuan
2016-10-28 21:21:47 +08:00
parent 6aba03e1ca
commit 7543d491ae
3 changed files with 16 additions and 5 deletions

View File

@ -35,6 +35,13 @@ namespace osu.Game.Overlays
public MusicController(BeatmapDatabase db = null)
{
database = db;
Width = 400;
Height = 130;
CornerRadius = 5;
Masking = true;
Anchor = Anchor.TopRight;//placeholder
Origin = Anchor.TopRight;
Position = new Vector2(10, 50);
}
public override void Load(BaseGame game)
@ -53,11 +60,6 @@ namespace osu.Game.Overlays
workingChanged();
playList = database.GetAllWithChildren<BeatmapSetInfo>();
Width = 400;
Height = 130;
CornerRadius = 5;
Masking = true;
Children = new Drawable[]
{
backgroundSprite = getScaledSprite(game.Textures.Get(@"Backgrounds/bg4")),//placeholder