Cancel beatmap random selection

This commit is contained in:
EVAST9919
2017-06-01 20:54:42 +03:00
parent 900e3ce3e2
commit a42c67ee97
5 changed files with 65 additions and 8 deletions

View File

@ -158,7 +158,7 @@ namespace osu.Game.Screens.Select
{
if (Footer != null)
{
Footer.AddButton(@"random", colours.Green, SelectRandom, Key.F2);
Footer.AddButton(@"random", colours.Green, SelectRandom, Key.F2, true);
Footer.AddButton(@"options", colours.Blue, BeatmapOptions.ToggleVisibility, Key.F3);
BeatmapOptions.AddButton(@"Delete", @"Beatmap", FontAwesome.fa_trash, colours.Pink, promptDelete, Key.Number4, float.MaxValue);
@ -381,6 +381,13 @@ namespace osu.Game.Screens.Select
return true;
}
break;
case Key.F2:
if (state.Keyboard.ShiftPressed)
{
carousel.CancelRandom();
return true;
}
break;
}
return base.OnKeyDown(state, args);