bool CvDLLButtonPopup::launchDisbandCityPopup(CvPopup* pPopup, CvPopupInfo &info)
{
CvPlayer& player = GET_PLAYER(GC.getGameINLINE().getActivePlayer());
CvCity* pNewCity = player.getCity(info.getData1());
if (NULL == pNewCity)
{
FAssert(false);
return (false);
}
CvWString szBuffer;
szBuffer = gDLL->getText("TXT_KEY_POPUP_FLIPPED_CITY_KEEP", pNewCity->getNameKey());
gDLL->getInterfaceIFace()->popupSetBodyString(pPopup, szBuffer);
gDLL->getInterfaceIFace()->popupAddGenericButton(pPopup, gDLL->getText("TXT_KEY_POPUP_KEEP_FLIPPED_CITY").c_str(), NULL, 0, WIDGET_GENERAL);
gDLL->getInterfaceIFace()->popupAddGenericButton(pPopup, gDLL->getText("TXT_KEY_POPUP_DISBAND_FLIPPED_CITY").c_str(), NULL, 1, WIDGET_GENERAL);
gDLL->getInterfaceIFace()->popupLaunch(pPopup, false, POPUPSTATE_IMMEDIATE);
gDLL->getInterfaceIFace()->playGeneralSound("AS2D_CULTUREFLIP");
return (true);
}