From 8b791b68d34ba5b1ea7018887e5e3deca22fe272 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 8 Jan 2019 17:24:01 -0500 Subject: [PATCH] Removed exe scaling --- tools/build.gradle | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/tools/build.gradle b/tools/build.gradle index af81536264..44ca0dbe78 100644 --- a/tools/build.gradle +++ b/tools/build.gradle @@ -11,8 +11,6 @@ import java.awt.image.BufferedImage def outFolder = "../core/assets-raw/sprites_out/" def genFolder = "../core/assets-raw/sprites_out/generated/" -def scaling = "XBRZ 4x" -def do4 = true task swapColors(){ doLast{ @@ -20,7 +18,7 @@ task swapColors(){ def carr = new File(getProperty("colors")).text.split("\n") def map = [:] def swaps = 0 - carr.each {str -> map[Color.argb8888(Color.valueOf(str.split("=")[0]))] = Color.argb8888(Color.valueOf(str.split("=")[1]))} + carr.each{str -> map[Color.argb8888(Color.valueOf(str.split("=")[0]))] = Color.argb8888(Color.valueOf(str.split("=")[1]))} def tmpc = new Color() fileTree(dir: '../core/assets-raw/sprites', include: "**/*.png").visit { file -> @@ -100,25 +98,7 @@ task scaleSprites4x(){ task scaleSprites(){ finalizedBy 'genSprites' - - if(do4){ - dependsOn 'scaleSprites4x' - }else{ - doLast { - def arguments = ["mono", "ImageResizer.exe"] - - fileTree(dir: '../core/assets-raw/sprites/', include: "**/*.png").visit { file -> - if (file.isDirectory() || file.toString().contains("/ui/")) return; - - def write = new File(file.file.toString().replace("/sprites", "/sprites_out")) - - arguments += ["/load", file.file.toString(), "/resize", - "auto", scaling, "/save", write.toString()] - } - - exec { commandLine arguments } - } - } + dependsOn 'scaleSprites4x' } task pack(){