Auto-linking in CvGameTxtMgr?

TC01

Deity
Joined
Jun 28, 2009
Messages
2,216
Location
Irregularly Online
I edited CvGameTxtMgr so that a bullet will be added for all units and buildings requiring a particular religion to that religion's help text. So "Required to train %s1_unit" or "Required to build %s1_Building".

What I'd like to do, however, is to make the effect auto-link to the entries for the unit and building. I tried passing in the type of the unit/building to the LINK= field like so:

Code:
szBuffer.append(NEWLINE);
szBuffer.append(gDLL->getText("TXT_KEY_RELIGION_BUILDING", eBuilding.getType(), eBuilding.getTextKeyWide()));

Code:
[ICON_BULLET]Required to build [LINK=%s1]%s2[\LINK]

But it doesn't seem to work. (That is, the links, not the text itself)>

So how can I auto-link in the SDK?
 
Look how it's done for other things.

Code:
szUnit.Format(L"<link=literal>%s</link>", GC.getUnitInfo(eLoopUnit).getDescription());
 
Top Bottom