mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-07 10:03:59 +00:00
Removed display check because it doesn't work anyways
This commit is contained in:
parent
86d5143264
commit
9ef712c99d
@ -95,13 +95,6 @@ export class HUDWiresOverlay extends BaseHUDPart {
|
|||||||
let value = null;
|
let value = null;
|
||||||
if (contents.components.Wire) {
|
if (contents.components.Wire) {
|
||||||
const network = contents.components.Wire.linkedNetwork;
|
const network = contents.components.Wire.linkedNetwork;
|
||||||
if (network && network.hasValue()) {
|
|
||||||
value = network.currentValue;
|
|
||||||
}
|
|
||||||
} else if (contents.components.Display) {
|
|
||||||
const pinsComp = contents.components.WiredPins;
|
|
||||||
const network = pinsComp.slots[0].linkedNetwork;
|
|
||||||
|
|
||||||
if (network && network.hasValue()) {
|
if (network && network.hasValue()) {
|
||||||
value = network.currentValue;
|
value = network.currentValue;
|
||||||
}
|
}
|
||||||
@ -131,6 +124,7 @@ export class HUDWiresOverlay extends BaseHUDPart {
|
|||||||
const effectiveRotation = Math.radians(
|
const effectiveRotation = Math.radians(
|
||||||
staticComp.rotation + enumDirectionToAngle[slot.direction]
|
staticComp.rotation + enumDirectionToAngle[slot.direction]
|
||||||
);
|
);
|
||||||
|
// -9.1 comes from systems > wired_pins.js > line 207
|
||||||
const valueSpritePos = slotPos.add(new Vector(0, -9.1).rotated(effectiveRotation));
|
const valueSpritePos = slotPos.add(new Vector(0, -9.1).rotated(effectiveRotation));
|
||||||
const length = mouseTilePos.sub(valueSpritePos).length();
|
const length = mouseTilePos.sub(valueSpritePos).length();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user