mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Add a section to global keybind settings for song select
This commit is contained in:
parent
5740fc2bd0
commit
030b55ae85
@ -56,6 +56,13 @@ namespace osu.Game.Input.Bindings
|
|||||||
new KeyBinding(new[] { InputKey.Control, InputKey.Minus }, GlobalAction.DecreaseScrollSpeed),
|
new KeyBinding(new[] { InputKey.Control, InputKey.Minus }, GlobalAction.DecreaseScrollSpeed),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public IEnumerable<KeyBinding> SongSelectKeyBindings => new[]
|
||||||
|
{
|
||||||
|
new KeyBinding(InputKey.F1, GlobalAction.ToggleMods),
|
||||||
|
new KeyBinding(InputKey.F2, GlobalAction.SelectRandom),
|
||||||
|
new KeyBinding(InputKey.F3, GlobalAction.ToggleOptions)
|
||||||
|
};
|
||||||
|
|
||||||
public IEnumerable<KeyBinding> AudioControlKeyBindings => new[]
|
public IEnumerable<KeyBinding> AudioControlKeyBindings => new[]
|
||||||
{
|
{
|
||||||
new KeyBinding(new[] { InputKey.Alt, InputKey.Up }, GlobalAction.IncreaseVolume),
|
new KeyBinding(new[] { InputKey.Alt, InputKey.Up }, GlobalAction.IncreaseVolume),
|
||||||
@ -106,6 +113,16 @@ namespace osu.Game.Input.Bindings
|
|||||||
[Description("Toggle mute")]
|
[Description("Toggle mute")]
|
||||||
ToggleMute,
|
ToggleMute,
|
||||||
|
|
||||||
|
// Song select keybindings
|
||||||
|
[Description("Toggle mod selection overlay")]
|
||||||
|
ToggleMods,
|
||||||
|
|
||||||
|
[Description("Select a random beatmap")]
|
||||||
|
SelectRandom,
|
||||||
|
|
||||||
|
[Description("Toggle beatmap options overlay")]
|
||||||
|
ToggleOptions,
|
||||||
|
|
||||||
// In-Game Keybindings
|
// In-Game Keybindings
|
||||||
[Description("Skip cutscene")]
|
[Description("Skip cutscene")]
|
||||||
SkipCutscene,
|
SkipCutscene,
|
||||||
|
@ -21,6 +21,7 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
{
|
{
|
||||||
Add(new DefaultBindingsSubsection(manager));
|
Add(new DefaultBindingsSubsection(manager));
|
||||||
Add(new AudioControlKeyBindingsSubsection(manager));
|
Add(new AudioControlKeyBindingsSubsection(manager));
|
||||||
|
Add(new SongSelectKeyBindingSubsection(manager));
|
||||||
Add(new InGameKeyBindingsSubsection(manager));
|
Add(new InGameKeyBindingsSubsection(manager));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,6 +36,17 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class SongSelectKeyBindingSubsection : KeyBindingsSubsection
|
||||||
|
{
|
||||||
|
protected override string Header => "Song Select";
|
||||||
|
|
||||||
|
public SongSelectKeyBindingSubsection(GlobalActionContainer manager)
|
||||||
|
: base(null)
|
||||||
|
{
|
||||||
|
Defaults = manager.SongSelectKeyBindings;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private class InGameKeyBindingsSubsection : KeyBindingsSubsection
|
private class InGameKeyBindingsSubsection : KeyBindingsSubsection
|
||||||
{
|
{
|
||||||
protected override string Header => "In Game";
|
protected override string Header => "In Game";
|
||||||
|
Loading…
Reference in New Issue
Block a user