From: terencehill Date: Sun, 15 Jan 2012 17:41:56 +0000 (+0100) Subject: Block any input when a menu dialog is fading. Keyboard/mouse actions while a dialog... X-Git-Tag: xonotic-v0.6.0~78^2^2~2^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f5ed1f266abb8e826785b30463c31a459a9009b9;p=xonotic%2Fxonotic-data.pk3dir.git Block any input when a menu dialog is fading. Keyboard/mouse actions while a dialog of a specific panel is opening and the panel gets automatically moved and resized may cause weird/buggy stuff --- diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index 3ad600e41..f5fcf64ac 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -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;