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

Separated battle control panel into new class, refactoring of

CGStatusBar to allow shared API with battle console
This commit is contained in:
Ivan Savenko
2022-11-18 17:54:10 +02:00
parent 3c5858f01e
commit 7a6ad671ab
20 changed files with 522 additions and 503 deletions

View File

@@ -339,12 +339,18 @@ void CTextBox::setText(const std::string & text)
}
}
void CGStatusBar::setText(const std::string & Text)
void CGStatusBar::write(const std::string & Text)
{
if(!textLock)
CLabel::setText(Text);
}
void CGStatusBar::clearMatching(const std::string & Text)
{
if (getText() == Text)
clear();
}
void CGStatusBar::clear()
{
setText("");