mirror of https://github.com/ppy/osu
Add bindings for stepping backward/forward
This commit is contained in:
parent
c50534c819
commit
0383bdf6a1
|
@ -170,6 +170,8 @@ public static IEnumerable<GlobalAction> GetGlobalActionsFor(GlobalActionCategory
|
|||
new KeyBinding(InputKey.MouseMiddle, GlobalAction.TogglePauseReplay),
|
||||
new KeyBinding(InputKey.Left, GlobalAction.SeekReplayBackward),
|
||||
new KeyBinding(InputKey.Right, GlobalAction.SeekReplayForward),
|
||||
new KeyBinding(InputKey.Comma, GlobalAction.StepReplayBackward),
|
||||
new KeyBinding(InputKey.Period, GlobalAction.StepReplayForward),
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.H }, GlobalAction.ToggleReplaySettings),
|
||||
};
|
||||
|
||||
|
@ -411,7 +413,13 @@ public enum GlobalAction
|
|||
IncreaseOffset,
|
||||
|
||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.DecreaseOffset))]
|
||||
DecreaseOffset
|
||||
DecreaseOffset,
|
||||
|
||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.StepReplayForward))]
|
||||
StepReplayForward,
|
||||
|
||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.StepReplayBackward))]
|
||||
StepReplayBackward,
|
||||
}
|
||||
|
||||
public enum GlobalActionCategory
|
||||
|
|
|
@ -324,6 +324,16 @@ public static class GlobalActionKeyBindingStrings
|
|||
/// </summary>
|
||||
public static LocalisableString SeekReplayBackward => new TranslatableString(getKey(@"seek_replay_backward"), @"Seek replay backward");
|
||||
|
||||
/// <summary>
|
||||
/// "Seek replay forward one frame"
|
||||
/// </summary>
|
||||
public static LocalisableString StepReplayForward => new TranslatableString(getKey(@"step_replay_forward"), @"Seek replay forward one frame");
|
||||
|
||||
/// <summary>
|
||||
/// "Step replay backward one frame"
|
||||
/// </summary>
|
||||
public static LocalisableString StepReplayBackward => new TranslatableString(getKey(@"step_replay_backward"), @"Step replay backward one frame");
|
||||
|
||||
/// <summary>
|
||||
/// "Toggle chat focus"
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue