From ad13e75d55e48c9db63fa6343be2f8364ad2a5a1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 12 Apr 2025 21:20:02 -0400 Subject: [PATCH] Sector icon outline --- tools/src/mindustry/tools/Generators.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/src/mindustry/tools/Generators.java b/tools/src/mindustry/tools/Generators.java index 5fc22be5fa..8503c80b26 100644 --- a/tools/src/mindustry/tools/Generators.java +++ b/tools/src/mindustry/tools/Generators.java @@ -464,6 +464,20 @@ public class Generators{ } }); + generate("sector-icons", () -> { + for(SectorPreset item : content.sectors()){ + if(!has("sector-" + item.name)){ + continue; + } + + Pixmap base = get("sector-" + item.name); + Pixmap container = new Pixmap(base.width + 10, base.height + 10); + container.draw(base, 5, 5, true); + + replace("sector-" + item.name, container.outline(Pal.darkerGray, 5)); + } + }); + generate("team-icons", () -> { for(Team team : Team.all){ if(has("team-" + team.name)){