settings for the constellations names

pull/653/head
Pablo Gonzalez 2021-01-29 20:28:56 +01:00
parent 3c76559fce
commit d3024124db
2 changed files with 10 additions and 4 deletions

View File

@ -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);

View File

@ -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)
})