mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 00:23:21 +08:00
Add keybind for showing profile
This commit is contained in:
parent
fbd645f06e
commit
f65b7ef058
@ -52,6 +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.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),
|
||||||
@ -232,6 +233,9 @@ namespace osu.Game.Input.Bindings
|
|||||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleNotifications))]
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleNotifications))]
|
||||||
ToggleNotifications,
|
ToggleNotifications,
|
||||||
|
|
||||||
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ShowProfile))]
|
||||||
|
ShowProfile,
|
||||||
|
|
||||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.PauseGameplay))]
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.PauseGameplay))]
|
||||||
PauseGameplay,
|
PauseGameplay,
|
||||||
|
|
||||||
|
@ -149,6 +149,11 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString ToggleNotifications => new TranslatableString(getKey(@"toggle_notifications"), @"Toggle notifications");
|
public static LocalisableString ToggleNotifications => new TranslatableString(getKey(@"toggle_notifications"), @"Toggle notifications");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Show Profile"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString ShowProfile => new TranslatableString(getKey(@"toggle_notifications"), @"Show Profile");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Pause gameplay"
|
/// "Pause gameplay"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1138,6 +1138,10 @@ namespace osu.Game
|
|||||||
mouseDisableButtons.Value = !mouseDisableButtons.Value;
|
mouseDisableButtons.Value = !mouseDisableButtons.Value;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case GlobalAction.ShowProfile:
|
||||||
|
ShowUser(new APIUser { Id = API.LocalUser.Value.Id });
|
||||||
|
return true;
|
||||||
|
|
||||||
case GlobalAction.RandomSkin:
|
case GlobalAction.RandomSkin:
|
||||||
// Don't allow random skin selection while in the skin editor.
|
// Don't allow random skin selection while in the skin editor.
|
||||||
// This is mainly to stop many "osu! default (modified)" skins being created via the SkinManager.EnsureMutableSkin() path.
|
// This is mainly to stop many "osu! default (modified)" skins being created via the SkinManager.EnsureMutableSkin() path.
|
||||||
|
@ -15,6 +15,7 @@ using osu.Game.Resources.Localisation.Web;
|
|||||||
using osu.Game.Users.Drawables;
|
using osu.Game.Users.Drawables;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
using osu.Game.Input.Bindings;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Toolbar
|
namespace osu.Game.Overlays.Toolbar
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user