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

Cleanup & refactoring

This commit is contained in:
SoundSSGood
2024-02-27 13:39:50 +02:00
parent f3fa6714dc
commit 4839891de4
21 changed files with 224 additions and 1007 deletions

View File

@@ -95,6 +95,19 @@ void CLabel::setText(const std::string & Txt)
}
}
void CLabel::clear()
{
text.clear();
if(autoRedraw)
{
if(background || !parent)
redraw();
else
parent->redraw();
}
}
void CLabel::setMaxWidth(int width)
{
maxWidth = width;