add hazards
This commit is contained in:
parent
806ef91000
commit
111f077e20
23 changed files with 221 additions and 24 deletions
|
|
@ -26,6 +26,7 @@ class Progress extends WeatherDisplay {
|
|||
}
|
||||
|
||||
async drawCanvas(displays, loadedCount) {
|
||||
if (!this.elem) return;
|
||||
super.drawCanvas();
|
||||
|
||||
// get the progress bar cover (makes percentage)
|
||||
|
|
@ -34,6 +35,7 @@ class Progress extends WeatherDisplay {
|
|||
// if no displays provided just draw the backgrounds (above)
|
||||
if (!displays) return;
|
||||
const lines = displays.map((display, index) => {
|
||||
if (display.showOnProgress === false) return false;
|
||||
const fill = {};
|
||||
|
||||
fill.name = display.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue