Skip to content

Commit

Permalink
Add key for increase/decrease the preview font size.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Aug 18, 2024
1 parent 5d171cd commit f8b2f65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions osu.Game.Rulesets.Karaoke/KaraokeEditInputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,11 @@ public enum KaraokeEditAction

[Description("Clear time")]
ClearTime,

// Action for compose mode.
[Description("Increase font size.")]
IncreasePreviewFontSize,

[Description("Decrease font size.")]
DecreasePreviewFontSize,
}
4 changes: 4 additions & 0 deletions osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0) =
new KeyBinding(InputKey.S, KaraokeEditAction.RemoveEndTimeTag),
new KeyBinding(InputKey.Enter, KaraokeEditAction.SetTime),
new KeyBinding(InputKey.BackSpace, KaraokeEditAction.ClearTime),

// Action for compose mode.
new KeyBinding(new[] { InputKey.Control, InputKey.Plus }, KaraokeEditAction.IncreasePreviewFontSize),
new KeyBinding(new[] { InputKey.Control, InputKey.Minus }, KaraokeEditAction.DecreasePreviewFontSize),
},
_ => Array.Empty<KeyBinding>(),
};
Expand Down

0 comments on commit f8b2f65

Please sign in to comment.