From 26b81a14cf6e2946ccda61797289112917f9ca50 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Fri, 3 Mar 2017 12:42:03 +0900 Subject: [PATCH] Ctrl+Shift+D at main menu to open up drawings, until we get a permanent place for it. --- osu.Game/Screens/Menu/MainMenu.cs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/osu.Game/Screens/Menu/MainMenu.cs b/osu.Game/Screens/Menu/MainMenu.cs index 975cb0c153..ec9f3bc7cf 100644 --- a/osu.Game/Screens/Menu/MainMenu.cs +++ b/osu.Game/Screens/Menu/MainMenu.cs @@ -14,6 +14,8 @@ using osu.Game.Screens.Multiplayer; using OpenTK; using osu.Game.Screens.Select; using osu.Game.Screens.Tournament; +using osu.Framework.Input; +using OpenTK.Input; namespace osu.Game.Screens.Menu { @@ -62,13 +64,6 @@ namespace osu.Game.Screens.Menu buttons.OnSettings = game.ToggleOptions; } - protected override void LoadComplete() - { - base.LoadComplete(); - - Push(new Drawings()); - } - protected override void OnEntering(Screen last) { base.OnEntering(last); @@ -105,5 +100,16 @@ namespace osu.Game.Screens.Menu Content.FadeOut(3000); return base.OnExiting(next); } + + protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) + { + if (!args.Repeat && state.Keyboard.ControlPressed && state.Keyboard.ShiftPressed && args.Key == Key.D) + { + Push(new Drawings()); + return true; + } + + return base.OnKeyDown(state, args); + } } }