fastload - Add fastload app
parent
e8163a6f14
commit
13bbf669b4
|
|
@ -0,0 +1 @@
|
||||||
|
0.01: New App!
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
# Fastload
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
let loadingScreen = function(){
|
||||||
|
g.reset();
|
||||||
|
|
||||||
|
let x = g.getWidth()/2;
|
||||||
|
let y = g.getHeight()/2;
|
||||||
|
g.setColor(g.theme.bg);
|
||||||
|
g.fillRect(x-49, y-19, x+49, y+19);
|
||||||
|
g.setColor(g.theme.fg);
|
||||||
|
g.drawRect(x-50, y-20, x+50, y+20);
|
||||||
|
g.setFont("6x8");
|
||||||
|
g.setFontAlign(0,0);
|
||||||
|
g.drawString("Fastloading...", x, y);
|
||||||
|
g.flip(true);
|
||||||
|
};
|
||||||
|
|
||||||
|
// only needed to show "Fastloading..." on starting the launcher
|
||||||
|
Bangle.load = (o => (name) => {
|
||||||
|
if (Bangle.uiRemove) loadingScreen();
|
||||||
|
setTimeout(o,0,name);
|
||||||
|
})(Bangle.load);
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ "id": "fastload",
|
||||||
|
"name": "Fastload Utils",
|
||||||
|
"shortName" : "Fastload Utils",
|
||||||
|
"version": "0.01",
|
||||||
|
"icon": "icon.png",
|
||||||
|
"description": "Utilities for fastloading and switching between apps",
|
||||||
|
"type":"bootloader",
|
||||||
|
"tags": "system",
|
||||||
|
"supports": ["BANGLEJS2"],
|
||||||
|
"readme": "README.md",
|
||||||
|
"storage": [
|
||||||
|
{"name":"fastload.5.boot.js","url":"boot.js"}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue