1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fixed bad line breaks in starting faction description popup

This commit is contained in:
Ivan Savenko 2024-02-26 22:04:02 +02:00
parent 4b4dedeab9
commit ec159f2fdd

View File

@ -80,13 +80,14 @@ void CComponent::init(ComponentType Type, ComponentSubType Subtype, std::optiona
pos.h += 4; //distance between text and image
auto max = 80;
// WARNING: too low values will lead to bad line-breaks in CPlayerOptionTooltipBox - check right-click on starting town in pregame
int max = 80;
if (size < large)
max = 72;
if (size < medium)
max = 40;
max = 60;
if (size < small)
max = 30;
max = 55;
if(Type == ComponentType::RESOURCE && !ValText.empty())
max = 80;