mirror of https://github.com/espruino/BangleApps
settings for the constellations names
parent
3c76559fce
commit
d3024124db
|
@ -132,7 +132,7 @@ function drawStars(lat,lon,date){
|
|||
g.flip();
|
||||
}
|
||||
//Write the name
|
||||
if (constelationShowing)
|
||||
if (constelationShowing && settings.consnames)
|
||||
g.drawString(constelations[i][constelations[i].length-1],positionStar2[0]+10,positionStar2[1]);
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ var prevSats = 0;
|
|||
g.clear();
|
||||
|
||||
var settings = require('Storage').readJSON('planetarium.json',1)||
|
||||
{ starnames:false,constellations:true};
|
||||
{ starnames:false,constellations:true,consnames:false};
|
||||
|
||||
g.setFontAlign(0,0);
|
||||
|
||||
|
|
|
@ -19,7 +19,13 @@
|
|||
format: v =>v?'On':'Off',
|
||||
onchange: v => {
|
||||
save('constellations',v);
|
||||
}
|
||||
}};
|
||||
}},
|
||||
'Const. names': {
|
||||
value: !!settings.consnames,
|
||||
format: v =>v?'On':'Off',
|
||||
onchange: v => {
|
||||
save('consnames',v);
|
||||
}},
|
||||
};
|
||||
E.showMenu(appMenu)
|
||||
})
|
Loading…
Reference in New Issue