mirror of https://github.com/espruino/BangleApps
ctrlpad: generate js
parent
57d378aa4e
commit
84e6a508fc
|
@ -17,7 +17,7 @@
|
||||||
function Overlay() {
|
function Overlay() {
|
||||||
this.width = g.getWidth() - 10 * 2;
|
this.width = g.getWidth() - 10 * 2;
|
||||||
this.height = g.getHeight() - 24 - 10;
|
this.height = g.getHeight() - 24 - 10;
|
||||||
this.g2 = Graphics.createArrayBuffer(this.width, this.height, 1, { msb: true });
|
this.g2 = Graphics.createArrayBuffer(this.width, this.height, 4, { msb: true });
|
||||||
this.renderG2();
|
this.renderG2();
|
||||||
}
|
}
|
||||||
Overlay.prototype.setBottom = function (bottom) {
|
Overlay.prototype.setBottom = function (bottom) {
|
||||||
|
@ -39,12 +39,12 @@
|
||||||
}());
|
}());
|
||||||
var colour = {
|
var colour = {
|
||||||
on: {
|
on: {
|
||||||
fg: "#000",
|
fg: "#fff",
|
||||||
bg: "#fff",
|
bg: "#00a",
|
||||||
},
|
},
|
||||||
off: {
|
off: {
|
||||||
fg: "#fff",
|
fg: "#000",
|
||||||
bg: "#000",
|
bg: "#bbb",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
var Controls = (function () {
|
var Controls = (function () {
|
||||||
|
@ -254,6 +254,4 @@
|
||||||
draw: function () { },
|
draw: function () { },
|
||||||
width: 0,
|
width: 0,
|
||||||
};
|
};
|
||||||
WIDGETS["hid"].getUI = function () { return ui; };
|
|
||||||
WIDGETS["hid"].col = colour;
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue