1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 03:22:54 +08:00

Only expose save for now

This commit is contained in:
Dean Herbert 2020-02-25 18:59:16 +09:00
parent 575946d923
commit d6046abe70

View File

@ -20,6 +20,8 @@ using osu.Game.Screens.Edit.Components;
using osu.Game.Screens.Edit.Components.Menus; using osu.Game.Screens.Edit.Components.Menus;
using osu.Game.Screens.Edit.Design; using osu.Game.Screens.Edit.Design;
using osuTK.Input; using osuTK.Input;
using System.Collections.Generic;
using osu.Framework;
using osu.Framework.Input.Bindings; using osu.Framework.Input.Bindings;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
using osu.Game.Graphics.Cursor; using osu.Game.Graphics.Cursor;
@ -91,6 +93,16 @@ namespace osu.Game.Screens.Edit
EditorMenuBar menuBar; EditorMenuBar menuBar;
var fileMenuItems = new List<MenuItem>();
fileMenuItems.Add(new EditorMenuItem("Save", MenuItemType.Standard, saveBeatmap));
if (RuntimeInfo.IsDesktop)
fileMenuItems.Add(new EditorMenuItem("Export package", MenuItemType.Standard, exportBeatmap));
fileMenuItems.Add(new EditorMenuItemSpacer());
fileMenuItems.Add(new EditorMenuItem("Exit", MenuItemType.Standard, this.Exit));
AddInternal(new OsuContextMenuContainer AddInternal(new OsuContextMenuContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -121,13 +133,7 @@ namespace osu.Game.Screens.Edit
{ {
new MenuItem("File") new MenuItem("File")
{ {
Items = new[] Items = fileMenuItems
{
new EditorMenuItem("Save", MenuItemType.Standard, saveBeatmap),
new EditorMenuItem("Export package", MenuItemType.Standard, exportBeatmap),
new EditorMenuItemSpacer(),
new EditorMenuItem("Exit", MenuItemType.Standard, this.Exit),
}
} }
} }
} }