From 569293e577a8c19c11b27ce0d80759d8def34326 Mon Sep 17 00:00:00 2001 From: MEEP of Faith <54301439+MEEPofFaith@users.noreply.github.com> Date: Fri, 5 Mar 2021 08:21:23 -0800 Subject: [PATCH] Shadow with width/height (#4609) --- core/src/mindustry/graphics/Drawf.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/mindustry/graphics/Drawf.java b/core/src/mindustry/graphics/Drawf.java index e38fa74c82..32576bf55a 100644 --- a/core/src/mindustry/graphics/Drawf.java +++ b/core/src/mindustry/graphics/Drawf.java @@ -111,6 +111,12 @@ public class Drawf{ Draw.rect(region, x, y); Draw.color(); } + + public static void shadow(TextureRegion region, float x, float y, float width, float height, float rotation){ + Draw.color(Pal.shadow); + Draw.rect(region, x, y, width, height, rotation); + Draw.color(); + } public static void liquid(TextureRegion region, float x, float y, float alpha, Color color, float rotation){ Draw.color(color, alpha);