]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Align progressbar depending on the icon position
authorterencehill <piuntn@gmail.com>
Sat, 24 Dec 2011 18:21:21 +0000 (19:21 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 24 Dec 2011 18:21:21 +0000 (19:21 +0100)
qcsrc/client/hud.qc

index 7b45966cd22e0834eb5acf74695f20b459e54ecc..c5cc01eb70eaecedfb98dee199aa5ffcc9496a3e 100644 (file)
@@ -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)