mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-24 00:36:29 +02:00
a bit of hero window
help needed - make something to prevent changing surface stored in CHeroWindow::background. I do not overwrite it, but it changes dramatically with every call of CHeroWindow method! And besides - is there anything to make my window displayed easily, without calling show() every frame when it should be displayed? any machanism?
This commit is contained in:
@@ -1567,3 +1567,8 @@ void CPlayerInterface::tileHidden(int3 pos)
|
||||
{
|
||||
adventureInt->minimap.hideTile(pos);
|
||||
}
|
||||
void CPlayerInterface::openHeroWindow(const CGHeroInstance *hero)
|
||||
{
|
||||
adventureInt->heroWindow.setHero(hero);
|
||||
adventureInt->heroWindow.show();
|
||||
}
|
||||
Reference in New Issue
Block a user