Afforess
The White Wizard
How do popups work in the SDK? For example, this code here, what is happening?
If I wanted to create a new popup with 4 choices or selections for the player, how would I go about doing that?
Code:
void CvPlayer::acquireCity(...)
CvPopupInfo* pInfo = new CvPopupInfo(BUTTONPOPUP_RAZECITY);
pInfo->setData1(pNewCity->getID());
pInfo->setData2(eHighestCulturePlayer);
pInfo->setData3(iCaptureGold);
gDLL->getInterfaceIFace()->addPopup(pInfo, getID());
....
If I wanted to create a new popup with 4 choices or selections for the player, how would I go about doing that?