mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Cleanup & refactoring
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user