]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Block any input when a menu dialog is fading. Keyboard/mouse actions while a dialog...
authorterencehill <piuntn@gmail.com>
Sun, 15 Jan 2012 17:41:56 +0000 (18:41 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 15 Jan 2012 17:41:56 +0000 (18:41 +0100)
qcsrc/client/hud_config.qc

index 3ad600e41c74de9e6d42918fbae7634dcedb091d..f5fcf64acea7208495668374f3b81e7d988bb82f 100644 (file)
@@ -628,6 +628,10 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
        if(!autocvar__hud_configure)
                return false;
 
+       // block any input while a menu dialog is fading
+       if(autocvar__menu_alpha)
+               return true;
+
        // allow console bind to work
        string con_keys;
        float keys;