Various fixes

This commit is contained in:
Anuken
2019-06-30 00:07:04 -04:00
parent 8bc59fb67c
commit 12bff75586
30 changed files with 6260 additions and 4825 deletions

View File

@@ -14,8 +14,9 @@ import io.anuke.arc.util.Time;
public class Upscaler{
static Res[] resolutions = {
new Res(Vars.iconsizesmall, "-small"),
new Res(Vars.iconsizemed, "-med"),
new Res(Vars.iconsize, ""),
new Res(Vars.iconsizesmall, "-small")
};
public static void main(String[] args){
@@ -37,11 +38,12 @@ public class Upscaler{
Log.info("Upscaling icons...");
Time.mark();
FileHandle[] list = file.list();
for(Res res : resolutions){
SquareMarcher marcher = new SquareMarcher(res.size);
for(FileHandle img : file.list()){
for(FileHandle img : list){
if(img.extension().equals("png")){
marcher.render(new Pixmap(img), img.sibling(img.nameWithoutExtension() + res.suffix + ".png"));
}