The game loads all civilopedia text from XML by game start, but this time I need to change the civilopedia text during game.
I defined functions in CvUnitInfo, to set its civilopedia text, it's like this:
Now when I want to call this function, I don't know what argument to pass to it! Tried hard coding with "TXT_KEY_XXX", no avail. Tried call gDLL->getText("TXT_KEY_XXX"), no t working. Tried call GC.getDefineSTRING("xxxx"), not working too.
Any idea how to get this work?
I defined functions in CvUnitInfo, to set its civilopedia text, it's like this:
Code:
void CvUnitInfo::setCivilopedia(const wchar* szText)
{
[INDENT]m_szCivilopediaKey = szText;[/INDENT]
}
Now when I want to call this function, I don't know what argument to pass to it! Tried hard coding with "TXT_KEY_XXX", no avail. Tried call gDLL->getText("TXT_KEY_XXX"), no t working. Tried call GC.getDefineSTRING("xxxx"), not working too.
Any idea how to get this work?