mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:23:21 +08:00
Add back ctrl-enter autoplay shortcut
This commit is contained in:
parent
192ceb5465
commit
ed5b6cc16f
@ -117,18 +117,19 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
if (player != null) return;
|
if (player != null) return;
|
||||||
|
|
||||||
//if (state?.Keyboard.ControlPressed == true)
|
// 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 auto = Ruleset.Value.CreateInstance().GetAutoplayMod();
|
||||||
|
var autoType = auto.GetType();
|
||||||
|
|
||||||
// var mods = modSelect.SelectedMods.Value;
|
var mods = modSelect.SelectedMods.Value;
|
||||||
// if (mods.All(m => m.GetType() != autoType))
|
if (mods.All(m => m.GetType() != autoType))
|
||||||
// {
|
{
|
||||||
// modSelect.SelectedMods.Value = mods.Concat(new[] { auto });
|
modSelect.SelectedMods.Value = mods.Concat(new[] { auto });
|
||||||
// removeAutoModOnResume = true;
|
removeAutoModOnResume = true;
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
Beatmap.Value.Track.Looping = false;
|
Beatmap.Value.Track.Looping = false;
|
||||||
Beatmap.Disabled = true;
|
Beatmap.Disabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user