mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 05:37:19 +08:00
Alter sequential hotkey style to always use visible index
Previous behaviour was once mentioned off-hand as unintuitive.
This commit is contained in:
parent
a9f6eb0293
commit
f564ed589f
@ -48,8 +48,8 @@ namespace osu.Game.Overlays.Mods.Input
|
||||
if (index < 0)
|
||||
return false;
|
||||
|
||||
var modState = availableMods.ElementAtOrDefault(index);
|
||||
if (modState == null || modState.Filtered.Value)
|
||||
var modState = availableMods.Where(modState => !modState.Filtered.Value).ElementAtOrDefault(index);
|
||||
if (modState == null)
|
||||
return false;
|
||||
|
||||
modState.Active.Toggle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user