]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
CTRL-BACKSPACE to instantly exit from hud config
authorterencehill <piuntn@gmail.com>
Sun, 19 Dec 2010 20:57:37 +0000 (21:57 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 19 Dec 2010 22:16:50 +0000 (23:16 +0100)
qcsrc/client/hud_config.qc

index 5fca9d28fa7444ff22544445a895fee4a2c8c194..657f5bd143fbed91706972ef2925dc360f69aa24 100644 (file)
@@ -625,6 +625,13 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
                menu_enabled_time = time;
                localcmd("menu_showhudexit\n");
        }
+       else if(nPrimary == K_BACKSPACE && hudShiftState & S_CTRL)
+       {
+               if (bInputType == 1)
+                       return true;
+               if (!menu_enabled)
+                       cvar_set("_hud_configure", "0");
+       }
        else if(nPrimary == K_TAB && hudShiftState & S_CTRL) // select and highlight another panel
        {
                if (bInputType == 1 || mouseClicked)