mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Sector icon outline
This commit is contained in:
parent
da2821f220
commit
ad13e75d55
1 changed files with 14 additions and 0 deletions
|
|
@ -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)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue