1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

heroWindow is now show/hideable ;]

This commit is contained in:
mateuszb
2008-01-11 18:56:39 +00:00
parent e62cfed95f
commit 2ce033aba9
6 changed files with 46 additions and 9 deletions

View File

@ -1569,6 +1569,8 @@ void CPlayerInterface::tileHidden(int3 pos)
}
void CPlayerInterface::openHeroWindow(const CGHeroInstance *hero)
{
adventureInt->heroWindow.setHero(hero);
adventureInt->heroWindow.show();
adventureInt->heroWindow->setHero(hero);
this->objsToBlit.push_back(adventureInt->heroWindow);
adventureInt->heroWindow->activate();
adventureInt->hide();
}