From f5ed1f266abb8e826785b30463c31a459a9009b9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 15 Jan 2012 18:41:56 +0100 Subject: [PATCH] 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 --- qcsrc/client/hud_config.qc | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2