From: terencehill Date: Sat, 18 Dec 2010 22:37:33 +0000 (+0100) Subject: When showing a panel specific menu, set the normal cursor as editor cursor and do... X-Git-Tag: xonotic-v0.5.0~345 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0262b32ea2970f1a3913eee9957d5821b312e8ca;p=xonotic%2Fxonotic-data.pk3dir.git When showing a panel specific menu, set the normal cursor as editor cursor and do not highlight the panel under the cursor. Fixes cursor and highlight changing when the panel moves towards/from the menu --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 781414da6..db842f6ae 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1593,7 +1593,10 @@ void HUD_Panel_Mouse() } else { - mouse_over_panel = HUD_Panel_Check_Mouse_Pos(); + if(menu_enabled == 2) + mouse_over_panel = 0; + else + mouse_over_panel = HUD_Panel_Check_Mouse_Pos(); if (mouse_over_panel && tab_panel == -1) drawfill(panel_pos - '1 1 0' * panel_bg_border, panel_size + '2 2 0' * panel_bg_border, '1 1 1', .1, DRAWFLAG_NORMAL); }