diff --git a/res_raw/sprites/wires/display_logical_acceptor.png b/res_raw/sprites/wires/display_logical_acceptor.png new file mode 100644 index 00000000..e4e7aff1 Binary files /dev/null and b/res_raw/sprites/wires/display_logical_acceptor.png differ diff --git a/src/js/game/systems/display.js b/src/js/game/systems/display.js index f11091b9..4540b199 100644 --- a/src/js/game/systems/display.js +++ b/src/js/game/systems/display.js @@ -84,6 +84,14 @@ export class DisplaySystem extends GameSystemWithFilter { globalConfig.tileSize ); } else if (value.getItemType() === "shape") { + if (this.root.currentLayer == "wires") { + value.drawItemCenteredClipped( + (origin.x + 0.5) * globalConfig.tileSize, + (origin.y + 0.5) * globalConfig.tileSize, + parameters, + 30 + ); + } value.drawItemCenteredClipped( (origin.x + 0.5) * globalConfig.tileSize, (origin.y + 0.5) * globalConfig.tileSize, diff --git a/src/js/game/systems/wired_pins.js b/src/js/game/systems/wired_pins.js index e8bc1882..cc1365b1 100644 --- a/src/js/game/systems/wired_pins.js +++ b/src/js/game/systems/wired_pins.js @@ -189,16 +189,20 @@ export class WiredPinsSystem extends GameSystemWithFilter { ); if (staticComp.getMetaBuilding().getRenderPins()) { + this.sprite = this.pinSprites[slot.type]; + if (staticComp.getMetaBuilding().id == "display") { + this.sprite = Loader.getSprite("sprites/wires/display_logical_acceptor.png") + } drawRotatedSprite({ parameters, - sprite: this.pinSprites[slot.type], + sprite: this.sprite, x: worldPos.x, y: worldPos.y, angle: effectiveRotation, size: globalConfig.tileSize + 2, offsetX: 0, offsetY: 0, - }); + }); } // Draw contained item to visualize whats emitted