]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply panel alpha to the text
authorterencehill <piuntn@gmail.com>
Sun, 4 Dec 2011 14:59:51 +0000 (15:59 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 4 Dec 2011 14:59:51 +0000 (15:59 +0100)
qcsrc/client/hud.qc

index b894e19c559ecc9a4fb55806e1829086acc43a2b..9af5a7e3fb1590f3f0f915ddf9dea611ebcd7158 100644 (file)
@@ -5120,10 +5120,10 @@ void HUD_QuickMenu_DrawEntry(vector pos, string s, vector fontsize)
        if (autocvar_hud_panel_quickmenu_align > 0)
        {
                offset = (panel_size_x - stringwidth_colors(entry, fontsize)) * min(autocvar_hud_panel_quickmenu_align, 1);
-               drawcolorcodedstring(pos + eX * offset, entry, fontsize, 1, DRAWFLAG_ADDITIVE);
+               drawcolorcodedstring(pos + eX * offset, entry, fontsize, panel_fg_alpha, DRAWFLAG_ADDITIVE);
        }
        else
-               drawcolorcodedstring(pos + eY * (panel_size_y - fontsize_y), entry, fontsize, 1, DRAWFLAG_ADDITIVE);
+               drawcolorcodedstring(pos + eY * (panel_size_y - fontsize_y), entry, fontsize, panel_fg_alpha, DRAWFLAG_ADDITIVE);
 }
 void HUD_QuickMenu(void)
 {