Fixed #3133 (probably) / Logic icon draw command

This commit is contained in:
Anuken
2020-10-26 13:31:32 -04:00
parent a2181fec48
commit 8770bb2422
19 changed files with 6314 additions and 4076 deletions

View File

@@ -31,6 +31,7 @@ public class Generators{
0x454545ff, 0x00000000,//0x32394bff,
0x00000099, 0x00000000//0x000000ff
);
static final Cicon logicIcon = Cicon.medium;
public static void generate(){
ObjectMap<Block, Image> gens = new ObjectMap<>();
@@ -302,6 +303,10 @@ public class Generators{
Image scaled = new Image(icon.size, icon.size);
scaled.drawScaled(image);
scaled.save("../ui/block-" + block.name + "-" + icon.name());
if(icon == logicIcon && block.synthetic() && !block.isHidden()){
image.save(block.name + "-icon-logic");
}
}
boolean hasEmpty = false;
@@ -373,6 +378,10 @@ public class Generators{
if(icon == Cicon.medium){
image.save("../ui/" + item.getContentType() + "-" + item.name + "-icon");
}
if(icon == logicIcon){
image.save(item.name + "-icon-logic");
}
}
}
});
@@ -489,6 +498,10 @@ public class Generators{
scaled.drawScaled(image);
scaled.save("../ui/unit-" + type.name + "-" + icon.name());
if(icon == logicIcon){
scaled.save(type.name + "-icon-logic");
}
}
}catch(IllegalArgumentException e){