1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-10 00:31:51 +00:00

SeeableDisplay

This commit is contained in:
TcePrepK 2020-10-29 22:10:57 +03:00
parent 0146aa91bb
commit e6c3e5452e
3 changed files with 6 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -99,7 +99,6 @@ export class ConstantSignalSystem extends GameSystemWithFilter {
} }
if (itemInput.chosenItem) { if (itemInput.chosenItem) {
console.log(itemInput.chosenItem);
constantComp.signal = itemInput.chosenItem; constantComp.signal = itemInput.chosenItem;
} else { } else {
constantComp.signal = this.parseSignalCode(signalValueInput.getValue()); constantComp.signal = this.parseSignalCode(signalValueInput.getValue());

View File

@ -189,16 +189,20 @@ export class WiredPinsSystem extends GameSystemWithFilter {
); );
if (staticComp.getMetaBuilding().getRenderPins()) { 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({ drawRotatedSprite({
parameters, parameters,
sprite: this.pinSprites[slot.type], sprite: this.sprite,
x: worldPos.x, x: worldPos.x,
y: worldPos.y, y: worldPos.y,
angle: effectiveRotation, angle: effectiveRotation,
size: globalConfig.tileSize + 2, size: globalConfig.tileSize + 2,
offsetX: 0, offsetX: 0,
offsetY: 0, offsetY: 0,
}); });
} }
// Draw contained item to visualize whats emitted // Draw contained item to visualize whats emitted