mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09:00
content Menu
This commit is contained in:
parent
5a1316f0e5
commit
3d746e8dfb
@ -90,11 +90,24 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
#region IHasContextMenu
|
#region IHasContextMenu
|
||||||
|
|
||||||
public MenuItem[] ContextMenuItems => new MenuItem[]
|
public MenuItem[] ContextMenuItems
|
||||||
{
|
{
|
||||||
new OsuMenuItem(CommonStrings.ButtonsEdit, MenuItemType.Highlighted, this.ShowPopover),
|
get
|
||||||
new OsuMenuItem(CommonStrings.ButtonsDelete, MenuItemType.Destructive, () => dialogOverlay?.Push(new DeleteModPresetDialog(Preset))),
|
{
|
||||||
};
|
var menu = new List<MenuItem>
|
||||||
|
{
|
||||||
|
new OsuMenuItem(CommonStrings.ButtonsEdit, MenuItemType.Highlighted, this.ShowPopover),
|
||||||
|
new OsuMenuItem(CommonStrings.ButtonsDelete, MenuItemType.Destructive, () => dialogOverlay?.Push(new DeleteModPresetDialog(Preset))),
|
||||||
|
};
|
||||||
|
|
||||||
|
if (checkCurrentModCanBeSave())
|
||||||
|
{
|
||||||
|
menu.Insert(1, new OsuMenuItem("Use Current Mods", MenuItemType.Destructive, () => SaveCurrentMod()));
|
||||||
|
}
|
||||||
|
|
||||||
|
return menu.ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user