dacubz145
Deity
Project Help, Finally!
def getWidgetHelp(self, argsList):
eWidgetType, iData1, iData2, bOption = argsList
## Art of War Start ##
if iData1 == gc.getInfoTypeForString("PROJECT_ART_OF_WAR"):
return "\n" + CyTranslator().getText("TXT_KEY_PROJECT_ART_OF_WAR_HELP", ())
## Art of War End ##
return u""
Hmm after studying the_J's TechTree - New icons and effects codes
The answer lies in CvGameUtils
I managed to get the help tag to be displayed, but it is after everything else... which looks freaking ugly...
What I done is this
Code:def getWidgetHelp(self, argsList): eWidgetType, iData1, iData2, bOption = argsList ## Art of War Start ## if iData1 == gc.getInfoTypeForString("PROJECT_ART_OF_WAR"): return "\n" + CyTranslator().getText("TXT_KEY_PROJECT_ART_OF_WAR_HELP", ()) ## Art of War End ## return u""
Now it is time to explore how to get it displayed before the XML effects...
@The_J
I am king of plagarismso long as there is a working code, I can "steal" and adjust
![]()
I guess so, but I was basically trying to get the player that discovered it without any looping (otherwise I can just cycle through all the players and see which has revealed that plot), I was counting on there only being one team
I might just swap to a cycle.