Howdy, basically trying out another experiement.
Trying to implement Project Help Tag using python.
So far has already succeeded in displaying it in Civilopedia and Movie Screen.
But the problem is the hover texts for City Screen and Tech Bar.
Is there a way I can edit the existing texts so that I can stuff the effects in between the project name and cost just like the movie screen?
This is what I have done in CvGameUtils:
Trying to implement Project Help Tag using python.
So far has already succeeded in displaying it in Civilopedia and Movie Screen.
But the problem is the hover texts for City Screen and Tech Bar.
Is there a way I can edit the existing texts so that I can stuff the effects in between the project name and cost just like the movie screen?
This is what I have done in CvGameUtils:
Code:
def getWidgetHelp(self, argsList):
eWidgetType, iData1, iData2, bOption = argsList
## Project Help Start ##
if eWidgetType == WidgetTypes.WIDGET_CREATE or eWidgetType == WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROJECT:
sProjectHelp = CyTranslator().getText("TXT_KEY_" + gc.getProjectInfo(iData1).getType() + "_HELP",())
if sProjectHelp.find("TXT_KEY") == -1:
return "\n" + sProjectHelp
## Project Help End ##
return u""