mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Switch to toggle
This commit is contained in:
parent
6903ce1bcc
commit
aee18135a9
@ -52,7 +52,7 @@ namespace osu.Game.Input.Bindings
|
|||||||
new KeyBinding(new[] { InputKey.Control, InputKey.O }, GlobalAction.ToggleSettings),
|
new KeyBinding(new[] { InputKey.Control, InputKey.O }, GlobalAction.ToggleSettings),
|
||||||
new KeyBinding(new[] { InputKey.Control, InputKey.D }, GlobalAction.ToggleBeatmapListing),
|
new KeyBinding(new[] { InputKey.Control, InputKey.D }, GlobalAction.ToggleBeatmapListing),
|
||||||
new KeyBinding(new[] { InputKey.Control, InputKey.N }, GlobalAction.ToggleNotifications),
|
new KeyBinding(new[] { InputKey.Control, InputKey.N }, GlobalAction.ToggleNotifications),
|
||||||
new KeyBinding(new[] { InputKey.Control, InputKey.P }, GlobalAction.ShowProfile),
|
new KeyBinding(new[] { InputKey.Control, InputKey.P }, GlobalAction.ToggleProfile),
|
||||||
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.S }, GlobalAction.ToggleSkinEditor),
|
new KeyBinding(new[] { InputKey.Control, InputKey.Shift, InputKey.S }, GlobalAction.ToggleSkinEditor),
|
||||||
|
|
||||||
new KeyBinding(InputKey.Escape, GlobalAction.Back),
|
new KeyBinding(InputKey.Escape, GlobalAction.Back),
|
||||||
@ -334,7 +334,7 @@ namespace osu.Game.Input.Bindings
|
|||||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleFPSCounter))]
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleFPSCounter))]
|
||||||
ToggleFPSDisplay,
|
ToggleFPSDisplay,
|
||||||
|
|
||||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ShowProfile))]
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleProfile))]
|
||||||
ShowProfile,
|
ToggleProfile,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -150,9 +150,9 @@ namespace osu.Game.Localisation
|
|||||||
public static LocalisableString ToggleNotifications => new TranslatableString(getKey(@"toggle_notifications"), @"Toggle notifications");
|
public static LocalisableString ToggleNotifications => new TranslatableString(getKey(@"toggle_notifications"), @"Toggle notifications");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Show profile"
|
/// "Toggle profile"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString ShowProfile => new TranslatableString(getKey(@"show_profile"), @"Show profile");
|
public static LocalisableString ToggleProfile => new TranslatableString(getKey(@"toggle_profile"), @"Toggle profile");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Pause gameplay"
|
/// "Pause gameplay"
|
||||||
|
@ -1138,7 +1138,7 @@ namespace osu.Game
|
|||||||
mouseDisableButtons.Value = !mouseDisableButtons.Value;
|
mouseDisableButtons.Value = !mouseDisableButtons.Value;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GlobalAction.ShowProfile:
|
case GlobalAction.ToggleProfile:
|
||||||
ShowUser(new APIUser { Id = API.LocalUser.Value.Id });
|
ShowUser(new APIUser { Id = API.LocalUser.Value.Id });
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user