From: terencehill Date: Thu, 14 Jul 2011 12:54:06 +0000 (+0200) Subject: Weapons panel, showing only owned weapons in hud config mode: also draw the bg of... X-Git-Tag: xonotic-v0.6.0~40^2~118^2~18^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=182cb20e0dd677802105ac9bae097fece2e78729;p=xonotic%2Fxonotic-data.pk3dir.git Weapons panel, showing only owned weapons in hud config mode: also draw the bg of the entire panel --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 7788641b3..0a7130cc1 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -681,6 +681,9 @@ void HUD_Weapons(void) float weapon_count; if (autocvar_hud_panel_weapons_onlyowned) { + if(autocvar__hud_configure && menu_enabled != 2) + HUD_Panel_DrawBg(1); // also draw the bg of the entire panel + vector old_panel_size; for(i = 0; i <= WEP_LAST-WEP_FIRST; ++i) { @@ -801,7 +804,7 @@ void HUD_Weapons(void) vector color; vector wpnpos; vector wpnsize; - + vector ammo_color; float ammo_alpha; wpnsize = eX * panel_size_x*(1/columns) + eY * panel_size_y*(1/rows);