mirror of
https://github.com/ppy/osu.git
synced 2025-02-10 13:42:54 +08:00
Add shortcut for news overlay
This commit is contained in:
parent
68d2888a8c
commit
dac98c8914
@ -36,6 +36,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.ToggleDirect),
|
new KeyBinding(new[] { InputKey.Control, InputKey.D }, GlobalAction.ToggleDirect),
|
||||||
new KeyBinding(new[] { InputKey.Control, InputKey.N }, GlobalAction.ToggleNotifications),
|
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.Escape, GlobalAction.Back),
|
||||||
new KeyBinding(InputKey.ExtraMouseButton1, GlobalAction.Back),
|
new KeyBinding(InputKey.ExtraMouseButton1, GlobalAction.Back),
|
||||||
@ -165,5 +166,8 @@ namespace osu.Game.Input.Bindings
|
|||||||
|
|
||||||
[Description("Pause")]
|
[Description("Pause")]
|
||||||
PauseGameplay,
|
PauseGameplay,
|
||||||
|
|
||||||
|
[Description("Toggle news overlay")]
|
||||||
|
ToggleNews
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -872,6 +872,10 @@ namespace osu.Game
|
|||||||
dashboard.ToggleVisibility();
|
dashboard.ToggleVisibility();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case GlobalAction.ToggleNews:
|
||||||
|
news.ToggleVisibility();
|
||||||
|
return true;
|
||||||
|
|
||||||
case GlobalAction.ResetInputSettings:
|
case GlobalAction.ResetInputSettings:
|
||||||
var sensitivity = frameworkConfig.GetBindable<double>(FrameworkSetting.CursorSensitivity);
|
var sensitivity = frameworkConfig.GetBindable<double>(FrameworkSetting.CursorSensitivity);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user