mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00: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;
|
||||
return true;
|
||||
|
||||
case GlobalAction.ToggleProfile:
|
||||
ShowUser(new APIUser { Id = API.LocalUser.Value.Id });
|
||||
return true;
|
||||
|
||||
case GlobalAction.RandomSkin:
|
||||
// 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.
|
||||
|
@ -15,6 +15,7 @@ using osu.Game.Localisation;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Users.Drawables;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@ -34,6 +35,8 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
public ToolbarUserButton()
|
||||
{
|
||||
Hotkey = GlobalAction.ToggleProfile;
|
||||
|
||||
AutoSizeAxes = Axes.X;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user