This code applies to them that has added the clockpanel to your dash!
main_menu/default.xap
find
CODE
geometry Text { font "body" justify "middle" translate false text <clock> }
replace with
CODE
geometry Text { font "body" justify "middle" translate false text "Error" }
default/default.xap
place this function at the end of the xap!
CODE
function UpdateListClock()
{
var d = new Date;
var c = theMainMenu.children[0].children[0];
var vDay;
var vMonth;
var vMinutes;
vMinutes = "14";
if((d.getMonth() + 1) < 10) {
vMonth = "0" + (d.getMonth() + 1);
}
else {
vMonth = d.getMonth() + 1;
}
if(d.getDate() < 10) {
vDay = "0" + d.getDate();
}
else {
vDay = d.getDate();
}
if(d.getMinutes() < 10) {
vMinutes = "0" + d.getMinutes();
}
else {
vMinutes = d.getMinutes();
}
c.theClock_text.children[0].children[0].geometry.text = d.getFullYear() + "/" + vMonth + "/" + vDay + " " + d.getHours() + ":" + vMinutes;
c.Clock_panel_header_text.text = "Date";
c.Clock_panel_support_03_text.text = "Time";
}
find
CODE
function OnActivate()
{
EnableAudio();
CurrentViewpoint = theMainMenuViewpoint;
CurrentAltViewpoint = theMainMenuAlternateViewpoint;
}
make it look like this
CODE
function OnActivate()
{
EnableAudio();
CurrentViewpoint = theMainMenuViewpoint;
CurrentAltViewpoint = theMainMenuAlternateViewpoint;
}
behavior
{
sleep 5;
if(CurrentViewpoint == theMainMenuViewpoint)
{
if(bInScreenSaverView==false)
{
UpdateListClock();
}
}
}
find
CODE
MusicOnBootCheck();
UpdateMainMenu();
UpDateMainMenuButtonsText();
MainMenuAttract();
EnableAudio();
add after the last function call
CODE
UpdateListClock();
I think this will do the trick.. I might have forgotten something, if so tell me and I'll fix it. If you want to be able to change between 12h and 24h in the config, let me know and I add that.