1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

limit displayed units number to 4 digits on adventure map

- garrison view (hero, town)
- small hero window
This commit is contained in:
Andrey Filipenkov 2023-01-20 20:40:28 +03:00
parent 6f0cd37e8f
commit 6727a3673f
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ void CGarrisonSlot::update()
creatureImage->setFrame(creature->getIconIndex());
stackCount->enable();
stackCount->setText(boost::lexical_cast<std::string>(myStack->count));
stackCount->setText(CSDL_Ext::makeNumberShort(myStack->count, 4));
}
else
{

View File

@ -247,7 +247,7 @@ void CArmyTooltip::init(const InfoAboutArmy &army)
std::string subtitle;
if(army.army.isDetailed)
{
subtitle = boost::lexical_cast<std::string>(slot.second.count);
subtitle = CSDL_Ext::makeNumberShort(slot.second.count, 4);
}
else
{