Customizing the date display?

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
Spurred by riadsala's suggestion in this thread and some ideas of my own, I decided to see what can be done to change the display in the upper-right corner of the screen. The date doesn't provide much useful information, and is always off from the historical timeline anyways. Here's some things I've tried out so far:

time12gb.jpg

Era

time29pw.jpg

Current turn

time36bv.jpg

Era with % of game elapsed

Is there any format you might be interested in? Anything in the game can be displayed here, arranged in any manner (including the original date).
 
i wouldnt mind seeing where the date correlates with the religion. I saw one idea to keep the date hidden intil the discovery of calendar.

From there have it basic counting (or just ancient era etc)..if crisitianity is state religion (or founded, however you want)...then the game uses the traditional counting.

I think some of the other religions use a different calendar etc...

i dont know--just something to get the ideas rolling
 
Out of curiosity, what's the python code you used to change the display? I saw it in another thread, but with the search disabled, I can't seem to locate it.
 
It's under the function updateTimeText(), in file: python\screens\CvMainInterface.py :thumbsup:

Here's the current code I'm using:
Code:
ePlayer = gc.getGame().getActivePlayer()
sPlayerEra = gc.getEraInfo(gc.getActivePlayer().getCurrentEra()).getDescription()
iCurrentTurn = gc.getGame().getGameTurn()
iMaxTurn = gc.getGame().getMaxTurns()
iTurnPercent = (iCurrentTurn * 100) / iMaxTurn

if (CyUserProfile().isClockOn() and bUseClockText):
	g_szTimeText = getClockText() + "     " + unicode(sPlayerEra) + " - " + unicode(iTurnPercent) + "%"
else:
	g_szTimeText = unicode(sPlayerEra) + " - " + unicode(iTurnPercent) + "%"
 
Bonus, thanks! :)
 
Back
Top Bottom