1
0
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:
Drew DeVault 2016-10-21 11:10:15 -04:00
parent cfc920c9c1
commit e5168f8da8
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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) }),
},
}
}