]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Draw panel slightly brighter on mouse over
authorterencehill <piuntn@gmail.com>
Thu, 16 Dec 2010 23:07:53 +0000 (00:07 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 16 Dec 2010 23:07:53 +0000 (00:07 +0100)
qcsrc/client/hud.qc

index ed7c4858e205bb20242443885f6f6786758b97f3..a40dda94b799b2120d2a2d110e2020c2e002774b 100644 (file)
@@ -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;