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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user