mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
showInfoDialog should be compatible with interfaces other than advmapint.
This commit is contained in:
@@ -52,7 +52,7 @@ void CInfoWindow::close()
|
||||
SDL_FreeSurface(bitmap);
|
||||
bitmap = NULL;
|
||||
LOCPLINT->removeObjToBlit(this);
|
||||
LOCPLINT->adventureInt->show();
|
||||
LOCPLINT->curint->activate();
|
||||
delete this;
|
||||
}
|
||||
CInfoWindow::~CInfoWindow()
|
||||
@@ -250,7 +250,7 @@ void CSelWindow::close()
|
||||
SDL_FreeSurface(bitmap);
|
||||
bitmap = NULL;
|
||||
LOCPLINT->removeObjToBlit(this);
|
||||
LOCPLINT->adventureInt->show();
|
||||
LOCPLINT->curint->activate();
|
||||
LOCPLINT->cb->selectionMade(ret,ID);
|
||||
delete this;
|
||||
//call owner with selection result
|
||||
@@ -1539,7 +1539,7 @@ void CPlayerInterface::showComp(SComponent comp)
|
||||
|
||||
void CPlayerInterface::showInfoDialog(std::string text, std::vector<SComponent*> & components)
|
||||
{
|
||||
adventureInt->hide(); //dezaktywacja starego interfejsu
|
||||
curint->deactivate(); //dezaktywacja starego interfejsu
|
||||
CInfoWindow * temp = CMessage::genIWindow(text,LOCPLINT->playerID,32,components);
|
||||
LOCPLINT->objsToBlit.push_back(temp);
|
||||
temp->pos.x=300-(temp->pos.w/2);
|
||||
|
||||
Reference in New Issue
Block a user