From: terencehill Date: Sat, 24 Dec 2011 18:21:21 +0000 (+0100) Subject: Align progressbar depending on the icon position X-Git-Tag: xonotic-v0.8.1~12^2~56 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c35cf24fe20019fdfea27cb647e3d97a9cbfbc48;p=xonotic%2Fxonotic-data.pk3dir.git Align progressbar depending on the icon position --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 7b45966cd..c5cc01eb7 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4849,7 +4849,7 @@ void DrawItemsTimeItem(vector myPos, vector mySize, float ar, float itemcode) p_pos = myPos; p_size = mySize; } - HUD_Panel_DrawProgressBar(p_pos, p_size, autocvar_hud_panel_itemstime_progressbar_name, t/autocvar_hud_panel_itemstime_progressbar_maxtime, 0, 0, color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL); + HUD_Panel_DrawProgressBar(p_pos, p_size, autocvar_hud_panel_itemstime_progressbar_name, t/autocvar_hud_panel_itemstime_progressbar_maxtime, 0, autocvar_hud_panel_itemstime_iconalign, color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL); } if(t > 0 && autocvar_hud_panel_itemstime_text)