From a154ee3a8984b2c3a3106c0a88d45283feea4246 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Sat, 7 Oct 2017 00:51:30 +0900 Subject: [PATCH] Add File -> Exit to editor menu --- osu.Game/Screens/Edit/Editor.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Edit/Editor.cs b/osu.Game/Screens/Edit/Editor.cs index 4fca38a6c6..2756a163e7 100644 --- a/osu.Game/Screens/Edit/Editor.cs +++ b/osu.Game/Screens/Edit/Editor.cs @@ -12,6 +12,8 @@ using osu.Game.Screens.Edit.Components.Timelines.Summary; using OpenTK; using osu.Framework.Allocation; +using osu.Framework.Graphics.UserInterface; +using osu.Game.Graphics.UserInterface; using osu.Game.Screens.Edit.Screens; using osu.Game.Screens.Edit.Screens.Compose; using osu.Game.Screens.Edit.Screens.Design; @@ -45,7 +47,17 @@ public Editor() { Anchor = Anchor.CentreLeft, Origin = Anchor.CentreLeft, - RelativeSizeAxes = Axes.Both + RelativeSizeAxes = Axes.Both, + Items = new[] + { + new MenuItem("File") + { + Items = new[] + { + new EditorMenuItem("Exit", MenuItemType.Standard, Exit) + } + } + } } }, new Container