mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 07:22:54 +08:00
Add hotkey to Toolbar
This commit is contained in:
parent
b4fc2a0fc8
commit
7ed489b56d
@ -1138,10 +1138,6 @@ namespace osu.Game
|
|||||||
mouseDisableButtons.Value = !mouseDisableButtons.Value;
|
mouseDisableButtons.Value = !mouseDisableButtons.Value;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GlobalAction.ToggleProfile:
|
|
||||||
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.Localisation;
|
|||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
using osu.Game.Users.Drawables;
|
using osu.Game.Users.Drawables;
|
||||||
|
using osu.Game.Input.Bindings;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
@ -34,6 +35,8 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
|
|
||||||
public ToolbarUserButton()
|
public ToolbarUserButton()
|
||||||
{
|
{
|
||||||
|
Hotkey = GlobalAction.ToggleProfile;
|
||||||
|
|
||||||
AutoSizeAxes = Axes.X;
|
AutoSizeAxes = Axes.X;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user