From ed5b6cc16f884db3cf6d809fb922118b2ef6d512 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 15 Dec 2017 12:08:11 +0900 Subject: [PATCH] Add back ctrl-enter autoplay shortcut --- osu.Game/Screens/Select/PlaySongSelect.cs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/osu.Game/Screens/Select/PlaySongSelect.cs b/osu.Game/Screens/Select/PlaySongSelect.cs index 565a7a0a01..4a0ee31fbb 100644 --- a/osu.Game/Screens/Select/PlaySongSelect.cs +++ b/osu.Game/Screens/Select/PlaySongSelect.cs @@ -117,18 +117,19 @@ namespace osu.Game.Screens.Select { if (player != null) return; - //if (state?.Keyboard.ControlPressed == true) - //{ - // var auto = Ruleset.Value.CreateInstance().GetAutoplayMod(); - // var autoType = auto.GetType(); + // Ctrl+Enter should start map with autoplay enabled. + if (GetContainingInputManager().CurrentState?.Keyboard.ControlPressed == true) + { + var auto = Ruleset.Value.CreateInstance().GetAutoplayMod(); + var autoType = auto.GetType(); - // var mods = modSelect.SelectedMods.Value; - // if (mods.All(m => m.GetType() != autoType)) - // { - // modSelect.SelectedMods.Value = mods.Concat(new[] { auto }); - // removeAutoModOnResume = true; - // } - //} + var mods = modSelect.SelectedMods.Value; + if (mods.All(m => m.GetType() != autoType)) + { + modSelect.SelectedMods.Value = mods.Concat(new[] { auto }); + removeAutoModOnResume = true; + } + } Beatmap.Value.Track.Looping = false; Beatmap.Disabled = true;