From a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 21 Jun 2024 00:12:13 +0200 Subject: show bad passive recipes in red --- test-client/visual.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/visual.ts') diff --git a/test-client/visual.ts b/test-client/visual.ts index 4d7468eb..2b98561a 100644 --- a/test-client/visual.ts +++ b/test-client/visual.ts @@ -91,7 +91,7 @@ function draw_item(item: ItemData) { c(ctx) } if (item.progress !== null && item.progress !== undefined) { - ctx.fillStyle = "rgba(115, 230, 58, 0.66)" + ctx.fillStyle = item.progress_warn ? "rgba(230, 58, 58, 0.66)" : "rgba(115, 230, 58, 0.66)" ctx.fillRect(-0.5, -0.5, 1, item.progress) } ctx.restore() -- cgit v1.2.3-70-g09d2