isenchine
Empress
New Platy Helper Screen.
Only for "help text" in main map. Those hover text in pedia or city screen etc are widget texts.
Very helpful, thank you. Code already isolated and incorporated into my mod.

New Platy Helper Screen.
Only for "help text" in main map. Those hover text in pedia or city screen etc are widget texts.
MyFile=open("Assets/XML/Buildings/CIV4BuildingInfos.xml")
iType = -1
iCommerceType = -1
for sCurrent in MyFile.readlines():
if "<Type>" in sCurrent:
iType = gc.getInfoTypeForString(self.cutString(sCurrent))
iCommerceType = -1
if iType == -1: continue
if "<SpecialistExtraCommerces>" in sCurrent:
iCommerceType = 0
if iCommerceType == -1: continue
if "<iCommerce>" in sCurrent:
iCommerceChange = int(self.cutString(sCurrent))
if iCommerceChange != 0:
[COLOR="Blue"]szSpecialText += u"\n%s%+d%c (%s %s)" % (CyTranslator().getText("[ICON_BULLET]", ()), iCommerceChange, gc.getCommerceInfo([/COLOR][COLOR="Red"][B]iCommerceType[/B][/COLOR][COLOR="Blue"]).getChar(), CyTranslator().getText("TXT_KEY_WITH", ()), gc.getBuildingInfo(iType).getDescription())[/COLOR]
iCommerceType += 1
elif "</SpecialistExtraCommerces>" in sCurrent:
iCommerceType = -1
MyFile.close()
class SpecialistTracker:
# Screen construction function
def interfaceScreen(self):
screen = CyGInterfaceScreen( "SpecialistTracker", CvScreenEnums.SPECIALIST_TRACKER)
self.nTableWidth = min(gc.getNumSpecialistInfos() * 37 + 150, [COLOR="Blue"]screen.getXResolution()[/COLOR] - 40)
self.nScreenWidth = self.nTableWidth + 40
self.nScreenHeight = screen.getYResolution() - 250
self.nTableHeight = self.nScreenHeight - 125
def mouseOverPlot (self, argsList):
self.m_pCurrentPlot = CyInterface().getMouseOverPlot()
[COLOR="Blue"]szText = "Plot: (%d, %d)" %(self.m_pCurrentPlot.getX(), self.m_pCurrentPlot.getY())
screen = CyGInterfaceScreen( "WorldBuilderScreen", CvScreenEnums.WORLDBUILDER_SCREEN )
screen.setLabel( "WBCoords", "Background", szText, CvUtil.FONT_CENTER_JUSTIFY, screen.getXResolution()/2, 6, -0.3, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )[/COLOR]
if self.m_bReveal:
if CyInterface().isLeftMouseDown():
2) World Builder
Added Plot Mouseover Text, with adjustments
Great People Mod
Features:
Displays a picture of the respective Great People when he/she is born.
Original mod by Patricius
[...]
P.S.
I only bothered to define 6 Great Engineers for testing purposes.
Can't be bothered to do it for all 200+ GPs.
All the pics can be obtained from original mod provided by Roamty's BTS version though.... so whoever is bored can define all the Art Defines![]()