added option to buzz on prime, with settings
parent
453895c134
commit
c54dde90ea
|
|
@ -1,6 +1,6 @@
|
||||||
const h = g.getHeight();
|
const h = g.getHeight();
|
||||||
const w = g.getWidth();
|
const w = g.getWidth();
|
||||||
const SETTINGS_FILE = "pastel.json";
|
const SETTINGS_FILE = "primetimelato.json";
|
||||||
let settings;
|
let settings;
|
||||||
|
|
||||||
Graphics.prototype.setFontLato = function(scale) {
|
Graphics.prototype.setFontLato = function(scale) {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// initialize with default settings...
|
// initialize with default settings...
|
||||||
let s = {
|
let s = {
|
||||||
'buzz_on_prime': true,
|
'buzz_on_prime': true
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...and overwrite them with any saved values
|
// ...and overwrite them with any saved values
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
settings = s
|
settings = s;
|
||||||
storage.write(SETTINGS_FILE, settings)
|
storage.write(SETTINGS_FILE, settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
E.showMenu({
|
E.showMenu({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue