Hud fighter numbers alignment tweak.

This commit is contained in:
Steve 2018-12-14 08:41:43 +00:00
parent 80f840c4f0
commit 817e47b5e4
1 changed files with 4 additions and 4 deletions

View File

@ -452,13 +452,13 @@ static void drawNumFighters(void)
{
/* Allies */
setAtlasColor(150, 200, 255, 255);
blit(smallFighter, (app.winWidth / 2) - 200, 15, 0);
drawText((app.winWidth / 2) - 160, 11, 14, TA_RIGHT, colors.white, battle.numAllies < 1000 ? "(%d)" : "(999+)", battle.numAllies);
blit(smallFighter, (app.winWidth / 2) - 185, 15, 0);
drawText((app.winWidth / 2) - 160, 11, 14, TA_LEFT, colors.white, battle.numAllies < 1000 ? "(%d)" : "(999+)", battle.numAllies);
/* Enemies */
setAtlasColor(255, 100, 100, 255);
blit(smallFighter, (app.winWidth / 2) + 185, 15, 0);
drawText((app.winWidth / 2) + 160, 11, 14, TA_LEFT, colors.white, !battle.unlimitedEnemies ? "(%d)" : "(999+)", battle.numEnemies);
blit(smallFighter, (app.winWidth / 2) + 170, 15, 0);
drawText((app.winWidth / 2) + 160, 11, 14, TA_RIGHT, colors.white, !battle.unlimitedEnemies ? "(%d)" : "(999+)", battle.numEnemies);
}
static void drawObjectives(void)