From 0f424ad0392ddbfe77fbbd1463da4559e5ecf351 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sat, 22 Jun 2024 15:48:46 +0200 Subject: [PATCH] Show light index --- ts/Engine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/Engine.ts b/ts/Engine.ts index e7402cf..9a31eba 100644 --- a/ts/Engine.ts +++ b/ts/Engine.ts @@ -274,7 +274,7 @@ export class Engine { */ showImage(led: Led): void { if (led.on) { - this.selectedObject.innerText = led.name; + this.selectedObject.innerText = led.name + ' (' + ( this.leds.currentLedIndex + 1) + '/' + this.leds.children.length + ')'; this.ledView.src = '/data/small/' + led.name; this.ledView.style.display = 'block'; } else {