mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 14:42:56 +08:00
Implement handoff to Player
This commit is contained in:
parent
cfc920c9c1
commit
e5168f8da8
@ -14,6 +14,7 @@ namespace osu.Game.GameModes.Play.Osu
|
||||
|
||||
protected override Playfield CreatePlayfield() => new OsuPlayfield();
|
||||
|
||||
protected override DrawableHitObject GetVisualRepresentation(OsuBaseHit h) => new DrawableCircle(h as Circle);
|
||||
protected override DrawableHitObject GetVisualRepresentation(OsuBaseHit h)
|
||||
=> h is Circle ? new DrawableCircle(h as Circle) : null;
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ namespace osu.Game.GameModes.Play
|
||||
Size = new Vector2(100, 1),
|
||||
Text = "Play",
|
||||
Colour = new Color4(238, 51, 153, 255),
|
||||
Action = () => Push(new Player { /*Beatmap = selectedBeatmap*/ }),
|
||||
Action = () => Push(new Player { Beatmap = beatmaps.GetBeatmap(selectedBeatmap) }),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user