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

Start to work on logical pins

This commit is contained in:
tobspr
2020-08-10 15:02:49 +02:00
parent 6f28aff78f
commit e0ba1452b2
5 changed files with 19 additions and 21 deletions

View File

@@ -75,7 +75,7 @@ export class HUDWiresOverlay extends BaseHUDPart {
const scaleFactor = 1 / wiresBackgroundDpi;
parameters.context.globalAlpha = 0.9 * this.currentAlpha;
parameters.context.globalAlpha = this.currentAlpha;
parameters.context.globalCompositeOperation = "darken";
parameters.context.scale(scaleFactor, scaleFactor);
parameters.context.fillStyle = this.cachedPatternBackground;
@@ -88,10 +88,5 @@ export class HUDWiresOverlay extends BaseHUDPart {
parameters.context.scale(1 / scaleFactor, 1 / scaleFactor);
parameters.context.globalCompositeOperation = "source-over";
parameters.context.globalAlpha = 1;
// parameters.context.fillStyle = "#3a85bf";
// parameters.context.globalAlpha = 0.0 * this.currentAlpha;
// parameters.context.fillRect(bounds.x, bounds.y, bounds.w, bounds.h);
// parameters.context.globalAlpha = 1;
}
}