mirror of
https://github.com/osukey/osukey.git
synced 2025-07-31 07:05:35 +09:00
Move replay specific key bindings to their own section
This commit is contained in:
@ -35,6 +35,7 @@ namespace osu.Game.Input.Bindings
|
|||||||
// It is used to decide the order of precedence, with the earlier items having higher precedence.
|
// It is used to decide the order of precedence, with the earlier items having higher precedence.
|
||||||
public override IEnumerable<IKeyBinding> DefaultKeyBindings => GlobalKeyBindings
|
public override IEnumerable<IKeyBinding> DefaultKeyBindings => GlobalKeyBindings
|
||||||
.Concat(EditorKeyBindings)
|
.Concat(EditorKeyBindings)
|
||||||
|
.Concat(ReplayKeyBindings)
|
||||||
.Concat(InGameKeyBindings)
|
.Concat(InGameKeyBindings)
|
||||||
.Concat(SongSelectKeyBindings)
|
.Concat(SongSelectKeyBindings)
|
||||||
.Concat(AudioControlKeyBindings)
|
.Concat(AudioControlKeyBindings)
|
||||||
@ -112,12 +113,16 @@ namespace osu.Game.Input.Bindings
|
|||||||
new KeyBinding(new[] { InputKey.F4 }, GlobalAction.IncreaseScrollSpeed),
|
new KeyBinding(new[] { InputKey.F4 }, GlobalAction.IncreaseScrollSpeed),
|
||||||
new KeyBinding(new[] { InputKey.Shift, InputKey.Tab }, GlobalAction.ToggleInGameInterface),
|
new KeyBinding(new[] { InputKey.Shift, InputKey.Tab }, GlobalAction.ToggleInGameInterface),
|
||||||
new KeyBinding(InputKey.MouseMiddle, GlobalAction.PauseGameplay),
|
new KeyBinding(InputKey.MouseMiddle, GlobalAction.PauseGameplay),
|
||||||
|
new KeyBinding(InputKey.Control, GlobalAction.HoldForHUD),
|
||||||
|
new KeyBinding(InputKey.Tab, GlobalAction.ToggleChatFocus),
|
||||||
|
};
|
||||||
|
|
||||||
|
public IEnumerable<KeyBinding> ReplayKeyBindings => new[]
|
||||||
|
{
|
||||||
new KeyBinding(InputKey.Space, GlobalAction.TogglePauseReplay),
|
new KeyBinding(InputKey.Space, GlobalAction.TogglePauseReplay),
|
||||||
new KeyBinding(InputKey.MouseMiddle, GlobalAction.TogglePauseReplay),
|
new KeyBinding(InputKey.MouseMiddle, GlobalAction.TogglePauseReplay),
|
||||||
new KeyBinding(InputKey.Left, GlobalAction.SeekReplayBackward),
|
new KeyBinding(InputKey.Left, GlobalAction.SeekReplayBackward),
|
||||||
new KeyBinding(InputKey.Right, GlobalAction.SeekReplayForward),
|
new KeyBinding(InputKey.Right, GlobalAction.SeekReplayForward),
|
||||||
new KeyBinding(InputKey.Control, GlobalAction.HoldForHUD),
|
|
||||||
new KeyBinding(InputKey.Tab, GlobalAction.ToggleChatFocus),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public IEnumerable<KeyBinding> SongSelectKeyBindings => new[]
|
public IEnumerable<KeyBinding> SongSelectKeyBindings => new[]
|
||||||
|
@ -34,6 +34,11 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString InGameSection => new TranslatableString(getKey(@"in_game_section"), @"In Game");
|
public static LocalisableString InGameSection => new TranslatableString(getKey(@"in_game_section"), @"In Game");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Replay"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString ReplaySection => new TranslatableString(getKey(@"replay_section"), @"Replay");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Audio"
|
/// "Audio"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -25,6 +25,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
Add(new AudioControlKeyBindingsSubsection(manager));
|
Add(new AudioControlKeyBindingsSubsection(manager));
|
||||||
Add(new SongSelectKeyBindingSubsection(manager));
|
Add(new SongSelectKeyBindingSubsection(manager));
|
||||||
Add(new InGameKeyBindingsSubsection(manager));
|
Add(new InGameKeyBindingsSubsection(manager));
|
||||||
|
Add(new ReplayKeyBindingsSubsection(manager));
|
||||||
Add(new EditorKeyBindingsSubsection(manager));
|
Add(new EditorKeyBindingsSubsection(manager));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,6 +73,17 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private partial class ReplayKeyBindingsSubsection : KeyBindingsSubsection
|
||||||
|
{
|
||||||
|
protected override LocalisableString Header => InputSettingsStrings.ReplaySection;
|
||||||
|
|
||||||
|
public ReplayKeyBindingsSubsection(GlobalActionContainer manager)
|
||||||
|
: base(null)
|
||||||
|
{
|
||||||
|
Defaults = manager.ReplayKeyBindings;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private partial class AudioControlKeyBindingsSubsection : KeyBindingsSubsection
|
private partial class AudioControlKeyBindingsSubsection : KeyBindingsSubsection
|
||||||
{
|
{
|
||||||
protected override LocalisableString Header => InputSettingsStrings.AudioSection;
|
protected override LocalisableString Header => InputSettingsStrings.AudioSection;
|
||||||
|
Reference in New Issue
Block a user