From: terencehill Date: Sun, 4 Dec 2011 14:59:51 +0000 (+0100) Subject: Apply panel alpha to the text X-Git-Tag: xonotic-v0.8.2~1987^2~55^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aafa0916c3efdaec615d9fe4c9ab3dc21f350c2f;p=xonotic%2Fxonotic-data.pk3dir.git Apply panel alpha to the text --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index b894e19c5..9af5a7e3f 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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) {