BeefontheBone said:@Gr3yHound: That's French.
ahh, bottom right corner, and the whole production, didn´t look at that =)
nevertheless, the 2nd way will work.
BeefontheBone said:@Gr3yHound: That's French.
I miss that, too... but it looks great so farGoldenAge said:This looks spectacular. I think I'll wait until the city names are clickable before I give it a shot though. Great work!
terrasol said:Hello homegrown
I don't want do steal your work, but I haved change your Advisor a little bit, I hope this is ok so.
kalder said:Thank you BeefontheBone...I had missed that issue... I installed the fixed patch, cleaned the cache BUT now it only remains one column with that awfuol symbol...
Ironically, it is the one that reports the total commerce produced by the city...Anyone can help me fixing this last one?
thanks in advance!
# Food Turns to Growth
szText = u"%c" %(gc.getYieldInfo(YieldTypes.YIELD_FOOD).getChar())
screen.setTableColumnHeader( "CityListBackground", [B]6[/B], szText, 30 )
# Net Health Column
screen.setTableColumnHeader( "CityListBackground", [B]7[/B], unicode(CvUtil.getIcon('healthy')), 30 )
# Production Column
szText = u"%c" %(gc.getYieldInfo(YieldTypes.YIELD_PRODUCTION).getChar())
screen.setTableColumnHeader( "CityListBackground", [B]10[/B], szText, 40 )
# Gold Column
screen.setTableColumnHeader( "CityListBackground", [B]9[/B], unicode(CvUtil.getIcon('gold')), 40 )
terrasol said:oh this was a gimmick for me![]()
i have said, if my town has less then three combat-units in it, then i want to see this in red
jack-itb said:Perhaps the order of the columns got wrong:
The bold numbers must be numbered ascending.
def handleInput (self, inputClass):
' Calls function mapped in DomesticAdvisorInputMap'
# only get from the map if it has the key
if ( inputClass.getNotifyCode() == NotifyCode.NOTIFY_LISTBOX_ITEM_SELECTED ):
screen = CyGInterfaceScreen( "DomesticAdvisor", CvScreenEnums.DOMESTIC_ADVISOR )
# Index in the table
iIndex = inputClass.getData()
self.chosenCity = iIndex
# Old behaviour
# screen.updateAppropriateCitySelection( "CityListBackground", len( PyPlayer(CyGame().getActivePlayer()).getCityList() ) )
# Automatically close the screen when select
# screen.hideScreen()
# Go to the city
# CyInterface().lookAtCityOffset(iIndex)
city = CyGlobalContext().getActivePlayer().getCity(iIndex)
# Select the city
CyInterface().selectCity(city, True)
# Make the city screen appear
CyEngine().setCityBillboardVisibility(True)
else:
if (inputClass.getFunctionName() != "DomesticView"):
return 0
# Handle the view 'button'
screen = CyGInterfaceScreen( "DomesticAdvisor", CvScreenEnums.DOMESTIC_ADVISOR )
screen.hideScreen()
# CvUtil.pyPrint('funName = %s' %(inputClass.getFunctionName()))
city = CyGlobalContext().getActivePlayer().getCity(self.chosenCity)
CyInterface().selectCity(city, True)
CyEngine().setCityBillboardVisibility(True)
return 0