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