newPos_y = myPos_y;
}
- if(icon_right_align) // right aligned icon
+ if(icon_right_align)
{
numpos = newPos;
picpos = newPos + eY * newSize_x;
}
- else // left aligned icon
+ else
{
picpos = newPos;
numpos = newPos + eY * newSize_x;
picpos = newPos;
}
- drawstring_aspect(numpos, ftos(x), eX * (2/3) * newSize_x + eY * newSize_y, color, panel_fg_alpha * alpha, DRAWFLAG_NORMAL);
+ drawstring_aspect(numpos, ftos(x), '2 1 0' * newSize_y, color, panel_fg_alpha * alpha, DRAWFLAG_NORMAL);
drawpic_aspect_skin(picpos, icon, '1 1 0' * newSize_y, '1 1 1', panel_fg_alpha * alpha, DRAWFLAG_NORMAL);
}
return;
vector barpos, barsize;
- vector picpos;
- vector numpos;
+ vector picpos, numpos;
drawfont = hud_bigfont;
float baralign = cvar("hud_panel_healtharmor_baralign");
float vertical;
HUD_Panel_GetProgressBarColor(nexball);
if(mySize_x > mySize_y)
- {
HUD_Panel_DrawProgressBar(pos, mySize, p, 0, 0, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
- }
else
- {
HUD_Panel_DrawProgressBar(pos, mySize, p, 1, 0, progressbar_color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
- }
}
if (stat_items & IT_KEY1)