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:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user