mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Extra fix: fix amount position in battle creature labels
This commit is contained in:
parent
3c95f92c59
commit
d309a00025
@ -327,7 +327,7 @@ void BattleStacksController::showStackAmountBox(Canvas & canvas, const CStack *
|
||||
boxPosition = owner.fieldController->hexPositionLocal(frontPos).center() + Point(-8, -14);
|
||||
}
|
||||
|
||||
Point textPosition = amountBG->dimensions()/2 + boxPosition;
|
||||
Point textPosition = amountBG->dimensions()/2 + boxPosition + Point(0, 1);
|
||||
|
||||
canvas.draw(amountBG, boxPosition);
|
||||
canvas.drawText(textPosition, EFonts::FONT_TINY, Colors::WHITE, ETextAlignment::CENTER, TextOperations::formatMetric(stack->getCount(), 4));
|
||||
|
Loading…
Reference in New Issue
Block a user