Monaldinio
Prince
Maybe some of you knowe, the plantefall mod use in some Info.xml (Building, Promotion ect) a tag called <Help></Help>...wich allow add. text...via a text key...
I would like tu use this tag also in my BonusInfo.xml...
I have tried to edit, in my opinon, the necessary sdk files..., but it do not work...
First of all, i do not realy know if this is the right way...
Second, i get a Error...
Can someone help?!?
CvGameTextMgr.cpp
CvGameTextMgr.h
CyGameTextMgr.cpp
CyGameTextMgr.h
I would like tu use this tag also in my BonusInfo.xml...
I have tried to edit, in my opinon, the necessary sdk files..., but it do not work...
First of all, i do not realy know if this is the right way...
Second, i get a Error...
Can someone help?!?
CvGameTextMgr.cpp
Code:
void CvGameTextMgr::setBonusHelp(CvWStringBuffer &szBuffer, BonusTypes eBonus, bool bCivilopediaText, bool bStrategyText, bool bTechChooserText, CvCity* pCity)
{
setBonusTradeHelp(szBuffer, eBonus, bCivilopediaText, NO_PLAYER);
}
CvGameTextMgr.h
Code:
DllExport void setBonusHelp(CvWStringBuffer &szBuffer, BonusTypes eBonus, bool bCivilopediaText = false, bool bStrategyText = false, bool bTechChooserText = false, CvCity* pCity = NULL);
CyGameTextMgr.cpp
Code:
std::wstring CyGameTextMgr::getBonusHelp(int iBonus, bool bCivilopediaText, bool bStrategyText, bool bTechChooserText, CyCity* pCity)
{
CvWStringBuffer szBuffer;
GAMETEXT.setBonusHelp(szBuffer, (BonusTypes)iBonus, bCivilopediaText, bStrategyText, bTechChooserText, ((pCity != NULL) ? pCity->getCity() : NULL));
return szBuffer.getCString();
CyGameTextMgr.h
Code:
std::wstring getBonusHelp(int iBonus, bool bCivilopediaText, bool bStrategyText, bool bTechChooserText, CyCity* pCity);
Spoiler :