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

general heroWindow improvements

This commit is contained in:
mateuszb
2008-01-31 12:10:59 +00:00
parent 974d27aacc
commit 31a5ea2ae5
6 changed files with 73 additions and 12 deletions

View File

@@ -84,7 +84,8 @@ void AdventureMapButton<T>::clickLeft (tribool down)
template <typename T>
void AdventureMapButton<T>::clickRight (tribool down)
{
LOCPLINT->adventureInt->handleRightClick(helpBox,down,this);
if(helpBox.size()) //there is no point to show window with nothing inside...
LOCPLINT->adventureInt->handleRightClick(helpBox,down,this);
}
template <typename T>
void AdventureMapButton<T>::hover (bool on)