mirror of https://github.com/ppy/osu
Add shortcut for news overlay
This commit is contained in:
parent
68d2888a8c
commit
dac98c8914
|
@ -36,6 +36,7 @@ public GlobalActionContainer(OsuGameBase game)
|
|||
new KeyBinding(new[] { InputKey.Control, InputKey.O }, GlobalAction.ToggleSettings),
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.D }, GlobalAction.ToggleDirect),
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.N }, GlobalAction.ToggleNotifications),
|
||||
new KeyBinding(new[] { InputKey.Control, InputKey.A }, GlobalAction.ToggleNews),
|
||||
|
||||
new KeyBinding(InputKey.Escape, GlobalAction.Back),
|
||||
new KeyBinding(InputKey.ExtraMouseButton1, GlobalAction.Back),
|
||||
|
@ -165,5 +166,8 @@ public enum GlobalAction
|
|||
|
||||
[Description("Pause")]
|
||||
PauseGameplay,
|
||||
|
||||
[Description("Toggle news overlay")]
|
||||
ToggleNews
|
||||
}
|
||||
}
|
||||
|
|
|
@ -872,6 +872,10 @@ public bool OnPressed(GlobalAction action)
|
|||
dashboard.ToggleVisibility();
|
||||
return true;
|
||||
|
||||
case GlobalAction.ToggleNews:
|
||||
news.ToggleVisibility();
|
||||
return true;
|
||||
|
||||
case GlobalAction.ResetInputSettings:
|
||||
var sensitivity = frameworkConfig.GetBindable<double>(FrameworkSetting.CursorSensitivity);
|
||||
|
||||
|
|
Loading…
Reference in New Issue