add a hotkey to hide the UI widgets

This commit is contained in:
Matthias Mailänder
2015-06-28 15:48:45 +02:00
parent 9d6a5d626f
commit 5c0c300c53
3 changed files with 10 additions and 0 deletions

View File

@@ -31,6 +31,14 @@ namespace OpenRA.Widgets
return true;
}
if (hk == Game.Settings.Keys.HideUserInterfaceKey)
{
foreach (var child in this.Children)
child.Visible ^= true;
return true;
}
if (hk == Game.Settings.Keys.TakeScreenshotKey)
{
if (e.Event == KeyInputEvent.Down)