1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Fix wires blueprint pasting bug, do not show wire info on unconnected wires

This commit is contained in:
tobspr
2020-08-15 18:14:00 +02:00
parent 070bce7020
commit b1fb0fca7e
5 changed files with 107 additions and 19 deletions

View File

@@ -57,7 +57,7 @@ export class HUDChangesDebugger extends BaseHUDPart {
for (let i = 0; i < this.changes.length; ++i) {
const change = this.changes[i];
parameters.context.fillStyle = change.fillColor;
parameters.context.globalAlpha = 0.5;
parameters.context.globalAlpha = 0.2;
parameters.context.fillRect(
change.area.x * globalConfig.tileSize,
change.area.y * globalConfig.tileSize,

View File

@@ -53,8 +53,6 @@ export class HUDWireInfo extends BaseHUDPart {
if (networks.length === 0) {
// No network at all
parameters.context.fillStyle = "#333";
this.spriteEmpty.draw(parameters.context, mousePos.x + 10, mousePos.y - 10, 40, 40);
return;
}