1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* small bugfix in dismissing hero (still needs better actualization of advmap lists)

* most buttons in battleInterface
This commit is contained in:
mateuszb
2008-03-01 11:49:25 +00:00
parent 17d5d298ca
commit 68d37e1507
3 changed files with 35 additions and 7 deletions

View File

@@ -96,11 +96,14 @@ void AdventureMapButton<T>::clickRight (tribool down)
template <typename T>
void AdventureMapButton<T>::hover (bool on)
{
Hoverable::hover(on);
if (on)
LOCPLINT->statusbar->print(name);
else if (LOCPLINT->statusbar->getCurrent()==name)
LOCPLINT->statusbar->clear();
if(name.size()) //if there is no name, there is nohing to display also
{
Hoverable::hover(on);
if (on)
LOCPLINT->statusbar->print(name);
else if (LOCPLINT->statusbar->getCurrent()==name)
LOCPLINT->statusbar->clear();
}
}
template <typename T>
void AdventureMapButton<T>::activate()