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:
parent
6f0cd37e8f
commit
6727a3673f
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user