return"Packs a given directory composed of png and jpg files into an atlas. Can also add 9patch properties. Possible arguments are \"-i\", \"-o\", \"-mp\", \"-dau\", and \"-9p\". Refer to \"help\" for more info.";
return"-9p : Can be used multiple times for defining a 9patch. This parameter requires a name, left patch, right patch, top patch, and bottom patch in the format name,a,b,c,d. Optional.";
case"-sp":
return"-sp : starting power for one side of the texture. Default is 8.";
case"-mp":
return"-mp : Maximum power for one side of the texture. Default is 8.";
case"-dau":
return"-dau : disables automatically upscaling the texture.";
if(i+1>=arguments.Length)thrownewArgumentException("-o is not followed by path for output files. (eg. path/to/file where file is the name for the atlas.)");
output=arguments[i+1];
}
if(i==arguments.Length-1&&output==null)
{
thrownewArgumentException("no -o argument found to specify output.");
ConsoleUtilities.WriteWrappedLine("Calculated minimum texture size: "+texturePacker.TextureLength+"x"+texturePacker.TextureLength+" with a total of "+texturePacker.TexturesFound+" textures.");
if(i+5>=arguments.Length)thrownewArgumentException("-9p is not followed by proper specifiers for a 9Patch (format: \"-9p textureName,a,b,c,d\" where a, b, c, and d are integers definining the border regions for the 9patch.)");
thrownewArgumentException("-9p argument parameters must be in the format \"-9p textureName,a,b,c,d\" where a, b, c, and d are integers definining the border regions for the 9patch.");