mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-10 00:31:51 +00:00
SeeableDisplay
This commit is contained in:
parent
0146aa91bb
commit
e6c3e5452e
BIN
res_raw/sprites/wires/display_logical_acceptor.png
Normal file
BIN
res_raw/sprites/wires/display_logical_acceptor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
@ -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());
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user