1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:43:21 +08:00

Add back ctrl-enter autoplay shortcut

This commit is contained in:
Dean Herbert 2017-12-15 12:08:11 +09:00
parent 192ceb5465
commit ed5b6cc16f

View File

@ -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;