mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add music controller into game.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user