1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Reduced usage of topWindow() method

This commit is contained in:
Ivan Savenko
2023-05-16 18:34:23 +03:00
parent e2ef136003
commit ad3e54e6c0
30 changed files with 171 additions and 115 deletions

View File

@@ -36,9 +36,9 @@
void CHoverableArea::hover (bool on)
{
if (on)
GH.statusbar->write(hoverText);
GH.statusbar()->write(hoverText);
else
GH.statusbar->clearIfMatching(hoverText);
GH.statusbar()->clearIfMatching(hoverText);
}
CHoverableArea::CHoverableArea()
@@ -152,9 +152,9 @@ void CHeroArea::clickRight(tribool down, bool previousState)
void CHeroArea::hover(bool on)
{
if (on && hero)
GH.statusbar->write(hero->getObjectName());
GH.statusbar()->write(hero->getObjectName());
else
GH.statusbar->clear();
GH.statusbar()->clear();
}
void LRClickableAreaOpenTown::clickLeft(tribool down, bool previousState)