mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-17 18:02:45 +00:00
Add alpha to hovered sprite
This commit is contained in:
parent
c90521afbc
commit
2c5aa9090f
1 changed files with 1 additions and 0 deletions
|
@ -771,6 +771,7 @@ const factory = createLayer(id, () => {
|
||||||
hoverSprite.y = roundDownTo(mouseCoords.y - ty, blockSize) + ty - blockSize / 2;
|
hoverSprite.y = roundDownTo(mouseCoords.y - ty, blockSize) + ty - blockSize / 2;
|
||||||
hoverSprite.width = blockSize;
|
hoverSprite.width = blockSize;
|
||||||
hoverSprite.height = blockSize;
|
hoverSprite.height = blockSize;
|
||||||
|
hoverSprite.alpha = 0.5;
|
||||||
graphicContainer.addChild(hoverSprite);
|
graphicContainer.addChild(hoverSprite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue