From 2c5aa9090f197faf9a9f1a099a72c4371b9d03fd Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 21 Dec 2022 23:16:14 -0600 Subject: [PATCH] Add alpha to hovered sprite --- src/data/layers/factory.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index 86911df..2af935b 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -771,6 +771,7 @@ const factory = createLayer(id, () => { hoverSprite.y = roundDownTo(mouseCoords.y - ty, blockSize) + ty - blockSize / 2; hoverSprite.width = blockSize; hoverSprite.height = blockSize; + hoverSprite.alpha = 0.5; graphicContainer.addChild(hoverSprite); } }