From 1fc983bd4e00072d413571285b0b943a6228cf1c Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 18 Apr 2022 22:43:44 -0400 Subject: [PATCH] Duct transparent color tweak --- core/src/mindustry/world/blocks/distribution/Duct.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/distribution/Duct.java b/core/src/mindustry/world/blocks/distribution/Duct.java index e04482bc5d..a48eef40b6 100644 --- a/core/src/mindustry/world/blocks/distribution/Duct.java +++ b/core/src/mindustry/world/blocks/distribution/Duct.java @@ -1,6 +1,7 @@ package mindustry.world.blocks.distribution; import arc.*; +import arc.graphics.*; import arc.graphics.g2d.*; import arc.math.*; import arc.math.geom.*; @@ -24,6 +25,7 @@ import static mindustry.Vars.*; public class Duct extends Block implements Autotiler{ public float speed = 5f; public boolean armored = false; + public Color transparentColor = new Color(0.4f, 0.4f, 0.4f, 0.1f); public @Load(value = "@-top-#", length = 5) TextureRegion[] topRegions; public @Load(value = "@-bottom-#", length = 5, fallback = "duct-bottom-#") TextureRegion[] botRegions; @@ -143,7 +145,7 @@ public class Duct extends Block implements Autotiler{ Draw.rect(sliced(botRegions[bits], slice), x, y, rotation); Draw.z(Layer.blockUnder + 0.2f); - Draw.color(0.4f, 0.4f, 0.4f, 0.4f); + Draw.color(transparentColor); Draw.rect(sliced(botRegions[bits], slice), x, y, rotation); Draw.color(); Draw.rect(sliced(topRegions[bits], slice), x, y, rotation);