mirror of
https://github.com/ppy/osu.git
synced 2025-03-10 20:57:19 +08:00
Move to file menu
This commit is contained in:
parent
64830e2c31
commit
d9b7d034ba
@ -392,10 +392,6 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
undoMenuItem = new EditorMenuItem(CommonStrings.Undo, MenuItemType.Standard, Undo) { Hotkey = new Hotkey(PlatformAction.Undo) },
|
undoMenuItem = new EditorMenuItem(CommonStrings.Undo, MenuItemType.Standard, Undo) { Hotkey = new Hotkey(PlatformAction.Undo) },
|
||||||
redoMenuItem = new EditorMenuItem(CommonStrings.Redo, MenuItemType.Standard, Redo) { Hotkey = new Hotkey(PlatformAction.Redo) },
|
redoMenuItem = new EditorMenuItem(CommonStrings.Redo, MenuItemType.Standard, Redo) { Hotkey = new Hotkey(PlatformAction.Redo) },
|
||||||
discardChangesMenuItem = new EditorMenuItem(GlobalActionKeyBindingStrings.EditorDiscardUnsavedChanges, MenuItemType.Destructive, DiscardUnsavedChanges)
|
|
||||||
{
|
|
||||||
Hotkey = new Hotkey(GlobalAction.EditorDiscardUnsavedChanges)
|
|
||||||
},
|
|
||||||
new OsuMenuItemSpacer(),
|
new OsuMenuItemSpacer(),
|
||||||
cutMenuItem = new EditorMenuItem(CommonStrings.Cut, MenuItemType.Standard, Cut) { Hotkey = new Hotkey(PlatformAction.Cut) },
|
cutMenuItem = new EditorMenuItem(CommonStrings.Cut, MenuItemType.Standard, Cut) { Hotkey = new Hotkey(PlatformAction.Cut) },
|
||||||
copyMenuItem = new EditorMenuItem(CommonStrings.Copy, MenuItemType.Standard, Copy) { Hotkey = new Hotkey(PlatformAction.Copy) },
|
copyMenuItem = new EditorMenuItem(CommonStrings.Copy, MenuItemType.Standard, Copy) { Hotkey = new Hotkey(PlatformAction.Copy) },
|
||||||
@ -1273,6 +1269,11 @@ namespace osu.Game.Screens.Edit
|
|||||||
saveRelatedMenuItems.Add(save);
|
saveRelatedMenuItems.Add(save);
|
||||||
yield return save;
|
yield return save;
|
||||||
|
|
||||||
|
yield return discardChangesMenuItem = new EditorMenuItem(GlobalActionKeyBindingStrings.EditorDiscardUnsavedChanges, MenuItemType.Destructive, DiscardUnsavedChanges)
|
||||||
|
{
|
||||||
|
Hotkey = new Hotkey(GlobalAction.EditorDiscardUnsavedChanges)
|
||||||
|
};
|
||||||
|
|
||||||
if (RuntimeInfo.OS != RuntimeInfo.Platform.Android)
|
if (RuntimeInfo.OS != RuntimeInfo.Platform.Android)
|
||||||
{
|
{
|
||||||
var export = createExportMenu();
|
var export = createExportMenu();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user