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