diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-21 00:12:13 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:24:39 +0200 |
commit | a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7 (patch) | |
tree | b928cf5ae7b8179f029fbd36f46487dedf582fc7 /test-client/visual.ts | |
parent | 10aaa4f56642e30b2886735363eb12dfa88e2b70 (diff) | |
download | hurrycurry-a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7.tar hurrycurry-a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7.tar.bz2 hurrycurry-a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7.tar.zst |
show bad passive recipes in red
Diffstat (limited to 'test-client/visual.ts')
-rw-r--r-- | test-client/visual.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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() |