mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +08:00
Speedchange now also works in Modselect
This commit is contained in:
parent
a12a20e8b5
commit
80064c4b98
@ -27,6 +27,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Localisation;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Screens.Select;
|
||||
using osu.Game.Utils;
|
||||
using osuTK;
|
||||
using osuTK.Input;
|
||||
@ -63,6 +64,9 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
private Func<Mod, bool> isValidMod = _ => true;
|
||||
|
||||
[Resolved]
|
||||
private SongSelect? songSelect { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A function determining whether each mod in the column should be displayed.
|
||||
/// A return value of <see langword="true"/> means that the mod is not filtered and therefore its corresponding panel should be displayed.
|
||||
@ -752,6 +756,14 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case GlobalAction.IncreaseSpeed:
|
||||
songSelect!.ChangeSpeed(0.05);
|
||||
return true;
|
||||
|
||||
case GlobalAction.DecreaseSpeed:
|
||||
songSelect!.ChangeSpeed(-0.05);
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.OnPressed(e);
|
||||
|
Loading…
Reference in New Issue
Block a user