mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Hook up play and edit (kinda)
This commit is contained in:
parent
3b4b4b669b
commit
5a58489adf
@ -26,6 +26,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
public Action<BeatmapPanel> GainedSelection;
|
||||
public Action<BeatmapPanel> StartRequested;
|
||||
public Action<BeatmapPanel> EditRequested;
|
||||
public Action<BeatmapInfo> DeleteRequested;
|
||||
|
||||
private readonly Triangles triangles;
|
||||
@ -155,8 +156,8 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
public MenuItem[] ContextMenuItems => new MenuItem[]
|
||||
{
|
||||
new OsuMenuItem("Play", MenuItemType.Highlighted),
|
||||
new OsuMenuItem("Edit"),
|
||||
new OsuMenuItem("Play", MenuItemType.Highlighted, () => StartRequested?.Invoke(this)),
|
||||
new OsuMenuItem("Edit", MenuItemType.Standard, () => EditRequested?.Invoke(this)),
|
||||
new OsuMenuItem("Delete", MenuItemType.Destructive, () => DeleteRequested?.Invoke(Beatmap)),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user