Search Archive

clock color day/night

By NickyD32 · Oct 14, 2008in Hacks/Mods💬 9 posts👁️ 2,211 views
Posted Oct 14, 2008 · 22:44 UTC#1

any way to change the clock color so you can have one for day and one for night?

Posted Oct 14, 2008 · 23:36 UTC#2

As of now it's one set of colors for both, not for each.

Posted Oct 14, 2008 · 23:49 UTC#3

There is a bNightMode variable with a boolean model of screen.nightmode

 

So this should work:

 

Copy the line that draws the clock (something like this:

 

Change visiblemodel to visiblemodel="gps.current_time.valid&!screen.nightmode"

 

This will be the clock that is displayed when you have GPS signal AND NOT in night colors.

 

Copy the line, paste it right after the original and chnage visiblemodel to be

visiblemodel="gps.current_time.valid&screen.nightmode"

 

This will be shown if the map is using night colors.

Posted Oct 15, 2008 · 00:25 UTC#4

ill give it a try... thanks a lot

Posted Oct 15, 2008 · 01:10 UTC#5

didn't work. the "staring up" box didn't go away, and it wouldn't let me into the map screen. i reverted back to my previous data.zip

Posted Oct 15, 2008 · 01:49 UTC#6

I'll have to experiment with it... You may want to make sure that you give them different names (i.e. txtTimeDay and txtTimeNight).

 

Since screen.nightmode comes straight from one of AVIC's variable definition files, we should have this function, so it's probably a syntax error somewhere.

Posted Oct 15, 2008 · 02:08 UTC#7

that could be it. actually that is most likely the problem. it's too late to get into it tonight though... ill keep you guys updated if i figure it out...

Posted Oct 15, 2008 · 15:14 UTC#8

Thanks. Let us know if it works.

 

I just tried it in IPAQ emulator on a PC, and this seems to work OK.

Posted Oct 27, 2008 · 16:18 UTC#9

I saw in an earlier post that somebody was able to change the size of the clock display. Is this possible? if so, can someone tell me hot to do it.

thanks