From: terencehill Date: Thu, 16 Dec 2010 23:07:53 +0000 (+0100) Subject: Draw panel slightly brighter on mouse over X-Git-Tag: xonotic-v0.5.0~350 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a4f9f13e440855d8514ca4642bdd21bf0f25df3;p=xonotic%2Fxonotic-data.pk3dir.git Draw panel slightly brighter on mouse over --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index ed7c4858e..a40dda94b 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1536,6 +1536,7 @@ void HUD_Panel_Mouse() if (highlightedPanel != -1) { + drawfill(panel_pos - '1 1 0' * panel_bg_border, panel_size + '2 2 0' * panel_bg_border, '1 1 1', .1, DRAWFLAG_NORMAL); if (highlightedPanel_initial_pos != panel_pos || highlightedPanel_initial_size != panel_size) { hud_configure_checkcollisions = (!(hudShiftState & S_CTRL) && autocvar_hud_configure_checkcollisions); @@ -1588,6 +1589,8 @@ void HUD_Panel_Mouse() else { highlightcheck = HUD_Panel_HighlightCheck(); + if (highlightcheck && 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); } // draw cursor after performing move/resize to have the panel pos/size updated before highlightcheck vector cursorsize;