New non-clipped 8x8 turret sprites
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 136 KiB |
@ -9,7 +9,6 @@ import io.anuke.mindustry.type.Liquid;
|
||||
import io.anuke.mindustry.type.Mech;
|
||||
import io.anuke.mindustry.type.Recipe;
|
||||
import io.anuke.mindustry.world.Block;
|
||||
import io.anuke.mindustry.world.blocks.defense.turrets.Turret;
|
||||
import io.anuke.mindustry.world.meta.BlockStat;
|
||||
import io.anuke.mindustry.world.meta.BlockStats;
|
||||
import io.anuke.mindustry.world.meta.StatCategory;
|
||||
@ -27,10 +26,6 @@ public class ContentDisplay{
|
||||
table.table(title -> {
|
||||
int size = 8 * 6;
|
||||
|
||||
if(block instanceof Turret){
|
||||
size = (8 * block.size + 2) * (7 - block.size * 2);
|
||||
}
|
||||
|
||||
title.addImage(Draw.region("block-icon-" + block.name)).size(size);
|
||||
title.add("[accent]" + block.formalName).padLeft(5);
|
||||
});
|
||||
|
@ -29,11 +29,6 @@ public class Generators {
|
||||
Color color = Color.ROYAL;
|
||||
|
||||
Image image = context.get(block.name);
|
||||
if(image.width() != block.size*8 + 2){
|
||||
Image resized = context.create(block.size*8 + 2, block.size*8 + 2);
|
||||
resized.draw(image, (resized.width() - image.width())/2, (resized.height() - image.height())/2);
|
||||
image = resized;
|
||||
}
|
||||
|
||||
Image read = context.create(image.width(), image.height());
|
||||
read.draw(image);
|
||||
@ -60,11 +55,9 @@ public class Generators {
|
||||
}
|
||||
}
|
||||
|
||||
Image padded = context.create(base.width() + 2, base.height() + 2);
|
||||
padded.draw(base, 1, 1);
|
||||
padded.draw(image, 0, 0);
|
||||
base.draw(image);
|
||||
|
||||
padded.save("block-icon-" + block.name);
|
||||
base.save("block-icon-" + block.name);
|
||||
}else {
|
||||
|
||||
Image image = context.get(regions[0]);
|
||||
|