mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Added toggling mods with keys
This commit is contained in:
@ -27,6 +27,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
return icons[icons.Length - 1];
|
||||
}
|
||||
}
|
||||
private SpriteText text;
|
||||
private Container iconsContainer;
|
||||
private AudioSample sampleOn, sampleOff;
|
||||
@ -216,6 +217,17 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
Origin = Anchor.Centre,
|
||||
Anchor = Anchor.Centre,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(Framework.Input.InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (args.Key == ToggleKey)
|
||||
{
|
||||
SelectNext();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user