mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Fixed #577. New BlockingDialog functionality - only accept.
This commit is contained in:
@@ -914,6 +914,14 @@ void CPlayerInterface::showBlockingDialog( const std::string &text, const std::v
|
||||
GH.pushInt(temp);
|
||||
intComps[0]->clickLeft(true, false);
|
||||
}
|
||||
else //only accept
|
||||
{
|
||||
std::vector<SComponent*> intComps;
|
||||
for(int i=0;i<components.size();i++)
|
||||
intComps.push_back(new SComponent(components[i])); //will be deleted by close in window
|
||||
|
||||
showYesNoDialog(text,intComps,boost::bind(&CCallback::selectionMade,cb,1,askID),NULL,true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user