From 9fc358dd8059aaf61497bda45b9a40cbc631e153 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 29 Jul 2010 16:56:17 +0200 Subject: [PATCH] yet another shortcut: ctrl-space to enable/disable highlighted panel or dock --- qcsrc/client/hud.qc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 8c68bf0bb..be7169dba 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1063,6 +1063,16 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) if (mouseClicked) return true; + if(nPrimary == K_SPACE) // enable/disable highlighted panel or dock + { + if (bInputType == 1) + return true; + + if (highlightedPanel_prev != -1) + cvar_set(strcat("hud_panel_", panel_name), ftos(!(panel_enabled))); + else + cvar_set(strcat("hud_dock"), (autocvar_hud_dock == "") ? "dock" : ""); + } if(nPrimary == 'c') // copy highlighted panel size { if (bInputType == 1) -- 2.39.2