2019-01-24 08:43:03 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2023-10-12 12:24:21 +00:00
|
|
|
using System;
|
2018-04-13 09:19:50 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using osu.Framework.Input;
|
|
|
|
using osu.Framework.Input.Bindings;
|
2023-08-06 15:40:55 +00:00
|
|
|
using osu.Framework.Input.Events;
|
2021-09-16 08:02:04 +00:00
|
|
|
using osu.Framework.Localisation;
|
|
|
|
using osu.Game.Localisation;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Input.Bindings
|
|
|
|
{
|
2023-08-06 15:40:55 +00:00
|
|
|
public partial class GlobalActionContainer : DatabasedKeyBindingContainer<GlobalAction>, IHandleGlobalKeyboardInput, IKeyBindingHandler<GlobalAction>
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
2023-10-13 04:47:51 +00:00
|
|
|
protected override bool Prioritised => true;
|
|
|
|
|
2023-08-06 15:40:55 +00:00
|
|
|
private readonly IKeyBindingHandler<GlobalAction>? handler;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2022-08-11 11:38:08 +00:00
|
|
|
public GlobalActionContainer(OsuGameBase? game)
|
2020-03-02 09:54:00 +00:00
|
|
|
: base(matchingMode: KeyCombinationMatchingMode.Modifiers)
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
2023-08-06 15:40:55 +00:00
|
|
|
if (game is IKeyBindingHandler<GlobalAction> h)
|
|
|
|
handler = h;
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
/// <summary>
|
|
|
|
/// All default key bindings across all categories, ordered with highest priority first.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// IMPORTANT: Take care when changing order of the items in the enumerable.
|
|
|
|
/// It is used to decide the order of precedence, with the earlier items having higher precedence.
|
|
|
|
/// </remarks>
|
|
|
|
public override IEnumerable<IKeyBinding> DefaultKeyBindings => globalKeyBindings
|
|
|
|
.Concat(editorKeyBindings)
|
|
|
|
.Concat(inGameKeyBindings)
|
|
|
|
.Concat(replayKeyBindings)
|
|
|
|
.Concat(songSelectKeyBindings)
|
|
|
|
.Concat(audioControlKeyBindings)
|
2022-10-24 04:58:00 +00:00
|
|
|
// Overlay bindings may conflict with more local cases like the editor so they are checked last.
|
|
|
|
// It has generally been agreed on that local screens like the editor should have priority,
|
|
|
|
// based on such usages potentially requiring a lot more key bindings that may be "shared" with global ones.
|
2023-10-13 04:47:51 +00:00
|
|
|
.Concat(overlayKeyBindings);
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
public static IEnumerable<KeyBinding> GetDefaultBindingsFor(GlobalActionCategory category)
|
|
|
|
{
|
|
|
|
switch (category)
|
|
|
|
{
|
|
|
|
case GlobalActionCategory.General:
|
|
|
|
return globalKeyBindings;
|
|
|
|
|
|
|
|
case GlobalActionCategory.Editor:
|
|
|
|
return editorKeyBindings;
|
|
|
|
|
|
|
|
case GlobalActionCategory.InGame:
|
|
|
|
return inGameKeyBindings;
|
|
|
|
|
|
|
|
case GlobalActionCategory.Replay:
|
|
|
|
return replayKeyBindings;
|
|
|
|
|
|
|
|
case GlobalActionCategory.SongSelect:
|
|
|
|
return songSelectKeyBindings;
|
|
|
|
|
|
|
|
case GlobalActionCategory.AudioControl:
|
|
|
|
return audioControlKeyBindings;
|
|
|
|
|
|
|
|
case GlobalActionCategory.Overlays:
|
|
|
|
return overlayKeyBindings;
|
|
|
|
|
|
|
|
default:
|
|
|
|
throw new ArgumentOutOfRangeException(nameof(category), category, $"Unexpected {nameof(GlobalActionCategory)}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static IEnumerable<GlobalAction> GetGlobalActionsFor(GlobalActionCategory category)
|
|
|
|
=> GetDefaultBindingsFor(category).Select(binding => binding.Action).Cast<GlobalAction>().Distinct();
|
|
|
|
|
|
|
|
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e) => handler?.OnPressed(e) == true;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
public void OnReleased(KeyBindingReleaseEvent<GlobalAction> e) => handler?.OnReleased(e);
|
|
|
|
|
|
|
|
private static IEnumerable<KeyBinding> globalKeyBindings => new[]
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
2020-03-02 09:55:28 +00:00
|
|
|
new KeyBinding(InputKey.Up, GlobalAction.SelectPrevious),
|
|
|
|
new KeyBinding(InputKey.Down, GlobalAction.SelectNext),
|
|
|
|
|
2022-05-04 13:46:23 +00:00
|
|
|
new KeyBinding(InputKey.Left, GlobalAction.SelectPreviousGroup),
|
|
|
|
new KeyBinding(InputKey.Right, GlobalAction.SelectNextGroup),
|
|
|
|
|
2018-07-03 09:37:21 +00:00
|
|
|
new KeyBinding(InputKey.Space, GlobalAction.Select),
|
|
|
|
new KeyBinding(InputKey.Enter, GlobalAction.Select),
|
2018-11-13 17:09:28 +00:00
|
|
|
new KeyBinding(InputKey.KeypadEnter, GlobalAction.Select),
|
2020-11-11 04:05:03 +00:00
|
|
|
|
2022-08-09 08:08:31 +00:00
|
|
|
new KeyBinding(InputKey.Escape, GlobalAction.Back),
|
|
|
|
new KeyBinding(InputKey.ExtraMouseButton1, GlobalAction.Back),
|
|
|
|
|
|
|
|
new KeyBinding(new[] { InputKey.Alt, InputKey.Home }, GlobalAction.Home),
|
|
|
|
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.F }, GlobalAction.ToggleFPSDisplay),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.T }, GlobalAction.ToggleToolbar),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.S }, GlobalAction.ToggleSkinEditor),
|
2022-08-10 17:34:53 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.P }, GlobalAction.ToggleProfile),
|
2022-08-09 08:08:31 +00:00
|
|
|
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Alt, InputKey.R }, GlobalAction.ResetInputSettings),
|
|
|
|
|
2020-11-11 04:05:03 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.R }, GlobalAction.RandomSkin),
|
2022-08-09 08:08:31 +00:00
|
|
|
|
|
|
|
new KeyBinding(InputKey.F10, GlobalAction.ToggleGameplayMouseButtons),
|
|
|
|
new KeyBinding(InputKey.F12, GlobalAction.TakeScreenshot),
|
2018-04-13 09:19:50 +00:00
|
|
|
};
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
private static IEnumerable<KeyBinding> overlayKeyBindings => new[]
|
2022-08-09 08:01:36 +00:00
|
|
|
{
|
|
|
|
new KeyBinding(InputKey.F8, GlobalAction.ToggleChat),
|
|
|
|
new KeyBinding(InputKey.F6, GlobalAction.ToggleNowPlaying),
|
|
|
|
new KeyBinding(InputKey.F9, GlobalAction.ToggleSocial),
|
2022-11-11 08:07:37 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.B }, GlobalAction.ToggleBeatmapListing),
|
2022-08-09 08:01:36 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.O }, GlobalAction.ToggleSettings),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.N }, GlobalAction.ToggleNotifications),
|
2018-04-13 09:19:50 +00:00
|
|
|
};
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
private static IEnumerable<KeyBinding> editorKeyBindings => new[]
|
2020-09-22 06:55:25 +00:00
|
|
|
{
|
|
|
|
new KeyBinding(new[] { InputKey.F1 }, GlobalAction.EditorComposeMode),
|
|
|
|
new KeyBinding(new[] { InputKey.F2 }, GlobalAction.EditorDesignMode),
|
|
|
|
new KeyBinding(new[] { InputKey.F3 }, GlobalAction.EditorTimingMode),
|
|
|
|
new KeyBinding(new[] { InputKey.F4 }, GlobalAction.EditorSetupMode),
|
2021-04-12 07:15:27 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.A }, GlobalAction.EditorVerifyMode),
|
2022-10-25 02:43:23 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.D }, GlobalAction.EditorCloneSelection),
|
2021-04-22 09:47:04 +00:00
|
|
|
new KeyBinding(new[] { InputKey.J }, GlobalAction.EditorNudgeLeft),
|
|
|
|
new KeyBinding(new[] { InputKey.K }, GlobalAction.EditorNudgeRight),
|
2021-09-20 07:43:15 +00:00
|
|
|
new KeyBinding(new[] { InputKey.G }, GlobalAction.EditorCycleGridDisplayMode),
|
2021-11-12 05:13:11 +00:00
|
|
|
new KeyBinding(new[] { InputKey.F5 }, GlobalAction.EditorTestGameplay),
|
2022-06-02 03:27:11 +00:00
|
|
|
new KeyBinding(new[] { InputKey.T }, GlobalAction.EditorTapForBPM),
|
2022-01-05 07:46:34 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.H }, GlobalAction.EditorFlipHorizontally),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.J }, GlobalAction.EditorFlipVertically),
|
2022-05-04 06:00:54 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Alt, InputKey.MouseWheelDown }, GlobalAction.EditorDecreaseDistanceSpacing),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Alt, InputKey.MouseWheelUp }, GlobalAction.EditorIncreaseDistanceSpacing),
|
2023-06-07 09:07:56 +00:00
|
|
|
// Framework automatically converts wheel up/down to left/right when shift is held.
|
|
|
|
// See https://github.com/ppy/osu-framework/blob/master/osu.Framework/Input/StateChanges/MouseScrollRelativeInput.cs#L37-L38.
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.MouseWheelRight }, GlobalAction.EditorCyclePreviousBeatSnapDivisor),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.MouseWheelLeft }, GlobalAction.EditorCycleNextBeatSnapDivisor),
|
2023-07-09 19:00:35 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.R }, GlobalAction.EditorToggleRotateControl),
|
2024-05-29 08:14:47 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.E }, GlobalAction.EditorToggleScaleControl),
|
2020-09-22 06:55:25 +00:00
|
|
|
};
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
private static IEnumerable<KeyBinding> inGameKeyBindings => new[]
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
new KeyBinding(InputKey.Space, GlobalAction.SkipCutscene),
|
2020-08-18 06:21:44 +00:00
|
|
|
new KeyBinding(InputKey.ExtraMouseButton2, GlobalAction.SkipCutscene),
|
2018-05-31 03:06:50 +00:00
|
|
|
new KeyBinding(InputKey.Tilde, GlobalAction.QuickRetry),
|
2023-10-26 12:26:26 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.R }, GlobalAction.QuickRetry),
|
2019-06-24 09:19:17 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Tilde }, GlobalAction.QuickExit),
|
2021-10-29 02:13:06 +00:00
|
|
|
new KeyBinding(new[] { InputKey.F3 }, GlobalAction.DecreaseScrollSpeed),
|
|
|
|
new KeyBinding(new[] { InputKey.F4 }, GlobalAction.IncreaseScrollSpeed),
|
2020-12-01 02:38:16 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Shift, InputKey.Tab }, GlobalAction.ToggleInGameInterface),
|
2023-07-28 18:39:30 +00:00
|
|
|
new KeyBinding(InputKey.Tab, GlobalAction.ToggleInGameLeaderboard),
|
2020-07-12 14:03:03 +00:00
|
|
|
new KeyBinding(InputKey.MouseMiddle, GlobalAction.PauseGameplay),
|
2023-02-02 06:25:45 +00:00
|
|
|
new KeyBinding(InputKey.Control, GlobalAction.HoldForHUD),
|
2023-07-28 18:39:30 +00:00
|
|
|
new KeyBinding(InputKey.Enter, GlobalAction.ToggleChatFocus),
|
2023-06-20 07:38:30 +00:00
|
|
|
new KeyBinding(InputKey.F1, GlobalAction.SaveReplay),
|
|
|
|
new KeyBinding(InputKey.F2, GlobalAction.ExportReplay),
|
2023-12-23 10:55:05 +00:00
|
|
|
new KeyBinding(InputKey.Plus, GlobalAction.IncreaseOffset),
|
|
|
|
new KeyBinding(InputKey.Minus, GlobalAction.DecreaseOffset),
|
2023-02-02 06:25:45 +00:00
|
|
|
};
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
private static IEnumerable<KeyBinding> replayKeyBindings => new[]
|
2023-02-02 06:25:45 +00:00
|
|
|
{
|
2020-11-26 11:04:44 +00:00
|
|
|
new KeyBinding(InputKey.Space, GlobalAction.TogglePauseReplay),
|
2023-01-05 21:05:20 +00:00
|
|
|
new KeyBinding(InputKey.MouseMiddle, GlobalAction.TogglePauseReplay),
|
2021-07-09 05:28:57 +00:00
|
|
|
new KeyBinding(InputKey.Left, GlobalAction.SeekReplayBackward),
|
|
|
|
new KeyBinding(InputKey.Right, GlobalAction.SeekReplayForward),
|
2024-01-18 11:38:25 +00:00
|
|
|
new KeyBinding(InputKey.Comma, GlobalAction.StepReplayBackward),
|
|
|
|
new KeyBinding(InputKey.Period, GlobalAction.StepReplayForward),
|
2023-07-05 20:45:10 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.H }, GlobalAction.ToggleReplaySettings),
|
2018-04-13 09:19:50 +00:00
|
|
|
};
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
private static IEnumerable<KeyBinding> songSelectKeyBindings => new[]
|
2020-06-03 05:55:15 +00:00
|
|
|
{
|
2020-06-03 06:13:02 +00:00
|
|
|
new KeyBinding(InputKey.F1, GlobalAction.ToggleModSelection),
|
|
|
|
new KeyBinding(InputKey.F2, GlobalAction.SelectNextRandom),
|
|
|
|
new KeyBinding(new[] { InputKey.Shift, InputKey.F2 }, GlobalAction.SelectPreviousRandom),
|
2022-05-04 00:52:10 +00:00
|
|
|
new KeyBinding(InputKey.F3, GlobalAction.ToggleBeatmapOptions),
|
2022-05-14 17:39:54 +00:00
|
|
|
new KeyBinding(InputKey.BackSpace, GlobalAction.DeselectAllMods),
|
2024-05-22 04:03:48 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Up }, GlobalAction.IncreaseModSpeed),
|
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.Down }, GlobalAction.DecreaseModSpeed),
|
2020-06-03 05:55:15 +00:00
|
|
|
};
|
|
|
|
|
2023-10-13 04:47:51 +00:00
|
|
|
private static IEnumerable<KeyBinding> audioControlKeyBindings => new[]
|
2019-08-13 03:40:20 +00:00
|
|
|
{
|
2020-03-02 09:59:05 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Alt, InputKey.Up }, GlobalAction.IncreaseVolume),
|
|
|
|
new KeyBinding(new[] { InputKey.Alt, InputKey.Down }, GlobalAction.DecreaseVolume),
|
|
|
|
|
2021-07-04 12:47:07 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Alt, InputKey.Left }, GlobalAction.PreviousVolumeMeter),
|
|
|
|
new KeyBinding(new[] { InputKey.Alt, InputKey.Right }, GlobalAction.NextVolumeMeter),
|
|
|
|
|
2020-09-23 03:31:50 +00:00
|
|
|
new KeyBinding(new[] { InputKey.Control, InputKey.F4 }, GlobalAction.ToggleMute),
|
2019-08-13 03:40:20 +00:00
|
|
|
|
|
|
|
new KeyBinding(InputKey.TrackPrevious, GlobalAction.MusicPrev),
|
|
|
|
new KeyBinding(InputKey.F1, GlobalAction.MusicPrev),
|
|
|
|
new KeyBinding(InputKey.TrackNext, GlobalAction.MusicNext),
|
|
|
|
new KeyBinding(InputKey.F5, GlobalAction.MusicNext),
|
|
|
|
new KeyBinding(InputKey.PlayPause, GlobalAction.MusicPlay),
|
|
|
|
new KeyBinding(InputKey.F3, GlobalAction.MusicPlay)
|
|
|
|
};
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public enum GlobalAction
|
|
|
|
{
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleChat))]
|
2018-04-13 09:19:50 +00:00
|
|
|
ToggleChat,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleSocial))]
|
2018-04-13 09:19:50 +00:00
|
|
|
ToggleSocial,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ResetInputSettings))]
|
2018-04-13 09:19:50 +00:00
|
|
|
ResetInputSettings,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleToolbar))]
|
2018-04-13 09:19:50 +00:00
|
|
|
ToggleToolbar,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleSettings))]
|
2018-04-13 09:19:50 +00:00
|
|
|
ToggleSettings,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleBeatmapListing))]
|
2021-01-06 14:12:56 +00:00
|
|
|
ToggleBeatmapListing,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.IncreaseVolume))]
|
2018-04-13 09:19:50 +00:00
|
|
|
IncreaseVolume,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.DecreaseVolume))]
|
2018-04-13 09:19:50 +00:00
|
|
|
DecreaseVolume,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleMute))]
|
2018-04-13 09:19:50 +00:00
|
|
|
ToggleMute,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SkipCutscene))]
|
2018-04-13 09:19:50 +00:00
|
|
|
SkipCutscene,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.QuickRetry))]
|
2018-04-13 09:19:50 +00:00
|
|
|
QuickRetry,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.TakeScreenshot))]
|
2018-05-14 17:27:05 +00:00
|
|
|
TakeScreenshot,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleGameplayMouseButtons))]
|
2018-05-02 10:42:03 +00:00
|
|
|
ToggleGameplayMouseButtons,
|
2018-05-14 17:27:05 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.Back))]
|
2018-05-31 03:06:50 +00:00
|
|
|
Back,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.IncreaseScrollSpeed))]
|
2018-05-31 03:06:50 +00:00
|
|
|
IncreaseScrollSpeed,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.DecreaseScrollSpeed))]
|
2018-05-31 03:06:50 +00:00
|
|
|
DecreaseScrollSpeed,
|
2018-07-03 09:37:21 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.Select))]
|
2018-07-03 09:37:21 +00:00
|
|
|
Select,
|
2019-06-25 08:16:19 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.QuickExit))]
|
2019-06-25 08:16:19 +00:00
|
|
|
QuickExit,
|
2019-08-11 17:14:49 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.MusicNext))]
|
2019-08-11 17:14:49 +00:00
|
|
|
MusicNext,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.MusicPrev))]
|
2019-08-11 17:14:49 +00:00
|
|
|
MusicPrev,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.MusicPlay))]
|
2019-08-11 17:14:49 +00:00
|
|
|
MusicPlay,
|
2020-01-11 19:43:51 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleNowPlaying))]
|
2020-01-11 19:43:51 +00:00
|
|
|
ToggleNowPlaying,
|
2020-03-02 09:55:28 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SelectPrevious))]
|
2020-03-02 09:55:28 +00:00
|
|
|
SelectPrevious,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SelectNext))]
|
2020-03-02 09:55:28 +00:00
|
|
|
SelectNext,
|
2020-06-14 18:22:38 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.Home))]
|
2020-06-14 18:22:38 +00:00
|
|
|
Home,
|
2020-07-12 14:03:03 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleNotifications))]
|
2020-07-13 22:39:02 +00:00
|
|
|
ToggleNotifications,
|
2020-07-14 11:37:21 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.PauseGameplay))]
|
2020-07-12 14:03:03 +00:00
|
|
|
PauseGameplay,
|
2020-09-22 06:55:25 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorSetupMode))]
|
2020-09-22 06:55:25 +00:00
|
|
|
EditorSetupMode,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorComposeMode))]
|
2020-09-22 06:55:25 +00:00
|
|
|
EditorComposeMode,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorDesignMode))]
|
2020-09-22 06:55:25 +00:00
|
|
|
EditorDesignMode,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorTimingMode))]
|
2020-09-22 06:55:25 +00:00
|
|
|
EditorTimingMode,
|
2020-10-30 05:19:40 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.HoldForHUD))]
|
2020-10-30 05:19:40 +00:00
|
|
|
HoldForHUD,
|
2020-11-11 04:05:03 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.RandomSkin))]
|
2020-11-11 04:05:03 +00:00
|
|
|
RandomSkin,
|
2020-11-24 06:41:56 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.TogglePauseReplay))]
|
2020-11-26 11:04:44 +00:00
|
|
|
TogglePauseReplay,
|
2020-12-01 02:38:16 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleInGameInterface))]
|
2020-12-01 02:38:16 +00:00
|
|
|
ToggleInGameInterface,
|
2021-04-07 08:13:25 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleModSelection))]
|
2020-06-07 03:37:19 +00:00
|
|
|
ToggleModSelection,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SelectNextRandom))]
|
2020-06-07 03:37:19 +00:00
|
|
|
SelectNextRandom,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SelectPreviousRandom))]
|
2020-06-07 03:37:19 +00:00
|
|
|
SelectPreviousRandom,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleBeatmapOptions))]
|
2020-06-07 03:37:19 +00:00
|
|
|
ToggleBeatmapOptions,
|
2021-04-12 07:15:27 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorVerifyMode))]
|
2021-04-12 07:15:27 +00:00
|
|
|
EditorVerifyMode,
|
2021-04-22 09:47:04 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorNudgeLeft))]
|
2021-04-22 09:47:04 +00:00
|
|
|
EditorNudgeLeft,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorNudgeRight))]
|
2021-04-29 08:20:22 +00:00
|
|
|
EditorNudgeRight,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleSkinEditor))]
|
2021-04-29 08:20:22 +00:00
|
|
|
ToggleSkinEditor,
|
2021-07-04 12:47:07 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.PreviousVolumeMeter))]
|
2021-07-04 12:47:07 +00:00
|
|
|
PreviousVolumeMeter,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.NextVolumeMeter))]
|
2021-07-04 12:47:07 +00:00
|
|
|
NextVolumeMeter,
|
2021-07-09 05:28:57 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SeekReplayForward))]
|
2021-07-09 05:28:57 +00:00
|
|
|
SeekReplayForward,
|
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SeekReplayBackward))]
|
2021-07-09 05:28:57 +00:00
|
|
|
SeekReplayBackward,
|
2021-08-17 06:05:36 +00:00
|
|
|
|
2021-09-16 08:02:04 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleChatFocus))]
|
2021-09-20 07:43:15 +00:00
|
|
|
ToggleChatFocus,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorCycleGridDisplayMode))]
|
2021-11-12 05:13:11 +00:00
|
|
|
EditorCycleGridDisplayMode,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorTestGameplay))]
|
2022-01-05 07:46:34 +00:00
|
|
|
EditorTestGameplay,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorFlipHorizontally))]
|
|
|
|
EditorFlipHorizontally,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorFlipVertically))]
|
|
|
|
EditorFlipVertically,
|
2022-05-04 00:52:10 +00:00
|
|
|
|
2022-05-04 06:00:54 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorIncreaseDistanceSpacing))]
|
|
|
|
EditorIncreaseDistanceSpacing,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorDecreaseDistanceSpacing))]
|
|
|
|
EditorDecreaseDistanceSpacing,
|
2022-05-04 13:48:49 +00:00
|
|
|
|
2022-05-04 13:46:23 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SelectPreviousGroup))]
|
|
|
|
SelectPreviousGroup,
|
2022-05-04 00:52:10 +00:00
|
|
|
|
2022-05-04 13:46:23 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SelectNextGroup))]
|
|
|
|
SelectNextGroup,
|
2022-05-14 17:39:54 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.DeselectAllMods))]
|
|
|
|
DeselectAllMods,
|
2022-06-02 03:27:11 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorTapForBPM))]
|
|
|
|
EditorTapForBPM,
|
2022-07-20 12:05:20 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleFPSCounter))]
|
|
|
|
ToggleFPSDisplay,
|
2022-08-09 07:17:55 +00:00
|
|
|
|
2022-08-09 08:09:22 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleProfile))]
|
|
|
|
ToggleProfile,
|
2022-10-24 04:58:11 +00:00
|
|
|
|
2022-10-25 02:43:23 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorCloneSelection))]
|
2023-06-07 08:15:13 +00:00
|
|
|
EditorCloneSelection,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorCyclePreviousBeatSnapDivisor))]
|
|
|
|
EditorCyclePreviousBeatSnapDivisor,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorCycleNextBeatSnapDivisor))]
|
|
|
|
EditorCycleNextBeatSnapDivisor,
|
2023-06-19 11:43:33 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.SaveReplay))]
|
|
|
|
SaveReplay,
|
2023-06-20 07:38:30 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ExportReplay))]
|
|
|
|
ExportReplay,
|
2023-07-05 16:00:41 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleReplaySettings))]
|
|
|
|
ToggleReplaySettings,
|
2023-07-29 17:18:47 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleInGameLeaderboard))]
|
|
|
|
ToggleInGameLeaderboard,
|
2023-07-09 19:00:35 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorToggleRotateControl))]
|
|
|
|
EditorToggleRotateControl,
|
2024-05-02 16:42:35 +00:00
|
|
|
|
2024-05-25 16:31:19 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.EditorToggleScaleControl))]
|
|
|
|
EditorToggleScaleControl,
|
|
|
|
|
2023-12-23 10:55:05 +00:00
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.IncreaseOffset))]
|
|
|
|
IncreaseOffset,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.DecreaseOffset))]
|
2024-01-18 11:38:25 +00:00
|
|
|
DecreaseOffset,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.StepReplayForward))]
|
|
|
|
StepReplayForward,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.StepReplayBackward))]
|
|
|
|
StepReplayBackward,
|
2024-05-22 04:03:48 +00:00
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.IncreaseModSpeed))]
|
|
|
|
IncreaseModSpeed,
|
|
|
|
|
|
|
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.DecreaseModSpeed))]
|
|
|
|
DecreaseModSpeed,
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
2023-10-12 12:24:21 +00:00
|
|
|
|
|
|
|
public enum GlobalActionCategory
|
|
|
|
{
|
|
|
|
General,
|
|
|
|
Editor,
|
|
|
|
InGame,
|
|
|
|
Replay,
|
|
|
|
SongSelect,
|
|
|
|
AudioControl,
|
|
|
|
Overlays
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
|
|
|
}
|