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:
@@ -95,6 +95,11 @@ void CLabel::setText(const std::string & Txt)
|
||||
}
|
||||
}
|
||||
|
||||
void CLabel::setMaxWidth(int width)
|
||||
{
|
||||
maxWidth = width;
|
||||
}
|
||||
|
||||
void CLabel::trimText()
|
||||
{
|
||||
if(maxWidth > 0)
|
||||
|
||||
Reference in New Issue
Block a user