1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

different max width

This commit is contained in:
Laserlicht
2024-01-08 00:08:05 +01:00
committed by GitHub
parent 24d4816a36
commit 056dccda30
3 changed files with 10 additions and 1 deletions

View File

@@ -95,6 +95,11 @@ void CLabel::setText(const std::string & Txt)
}
}
void CLabel::setMaxWidth(int width)
{
maxWidth = width;
}
void CLabel::trimText()
{
if(maxWidth > 0)