mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Some refactoring of text display widgets:
- renamed some methods/classes with better names + some consistency (no more print, setTxt and setText that do exactly same thing) - TextBox now contains label widget instead of inheriting it - smooth scrolling support (up/down buttons still scroll one line)
This commit is contained in:
@ -812,7 +812,7 @@ void CTownItem::update()
|
||||
{
|
||||
std::string incomeVal = boost::lexical_cast<std::string>(town->dailyIncome());
|
||||
if (incomeVal != income->text)
|
||||
income->setTxt(incomeVal);
|
||||
income->setText(incomeVal);
|
||||
|
||||
heroes->update();
|
||||
|
||||
|
Reference in New Issue
Block a user