homegrown
Missionary of Sorenism
I like having the clock on, but I dislike how when I look up and want to know the game date, it's showing me the real time, and when I want to know the real time, it's showing me the game date. So I went looking...
This was wayyyy easier than I thought it would be. There are two sections of the CvMainInterface.py that needed to be looked at.
I changed the first self.updateTimeText to (true)... telling it to display TimeText all the time.
The second section is where it determines what text to print...
If the clock is on, and we're supposed to be seeing the clock (which I changed above to always)...
g_szTimeText = getClockText() + " " + unicode(CyGameTextMgr().getInterfaceTimeStr(ePlayer))
Here is a screenshot.
And a nifty zip. This just contains the CvMainInterface.py file. Place it in your My Documents/My Games/SM Civ 4/CustomAssets/python/screens folder.
The other thing that might be interesting to put there, would be the Elasped Game time, OR the time remaining until the alarm goes off... still pondering... maybe I'll take a poll.
Happy Civving!
This was wayyyy easier than I thought it would be. There are two sections of the CvMainInterface.py that needed to be looked at.
Code:
if (g_iTimeTextCounter >= 30.0): # 15 seconds
g_iTimeTextCounter = 0.0
self.updateTimeText(false)
screen.setLabel( "TimeText", "Background", g_szTimeText, CvUtil.FONT_RIGHT_JUSTIFY, xResolution - 56, 6, -0.3, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "TimeText" )
elif (g_iTimeTextCounter >= 15.0): # Another 15 Seconds
self.updateTimeText(true)
screen.setLabel( "TimeText", "Background", g_szTimeText, CvUtil.FONT_RIGHT_JUSTIFY, xResolution - 56, 6, -0.3, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "TimeText" )
I changed the first self.updateTimeText to (true)... telling it to display TimeText all the time.
The second section is where it determines what text to print...
Code:
def updateTimeText( self, bUseClockText ):
global g_szTimeText
ePlayer = gc.getGame().getActivePlayer()
if (CyUserProfile().isClockOn() and bUseClockText):
g_szTimeText = getClockText()
else:
g_szTimeText = unicode(CyGameTextMgr().getInterfaceTimeStr(ePlayer))
If the clock is on, and we're supposed to be seeing the clock (which I changed above to always)...
g_szTimeText = getClockText() + " " + unicode(CyGameTextMgr().getInterfaceTimeStr(ePlayer))
Here is a screenshot.

And a nifty zip. This just contains the CvMainInterface.py file. Place it in your My Documents/My Games/SM Civ 4/CustomAssets/python/screens folder.
The other thing that might be interesting to put there, would be the Elasped Game time, OR the time remaining until the alarm goes off... still pondering... maybe I'll take a poll.

Happy Civving!