switched to list system while adding stop, test, help, and updating texture packer commands.
This commit is contained in:
@@ -7,20 +7,23 @@ using System.Text;
|
||||
|
||||
namespace RecrownedAthenaeum.Tools.TextureAtlasTools
|
||||
{
|
||||
class TexturePackerCommand : ICommandEngineCommand
|
||||
class TexturePackerCommand : EngineCommand
|
||||
{
|
||||
TexturePacker texturePacker;
|
||||
|
||||
public string Help(string argument)
|
||||
public TexturePackerCommand() : base("texturepacker") { }
|
||||
|
||||
public override string Help(string argument)
|
||||
{
|
||||
return "Packs a given directory composed of png and jpg files into an atlas. Can also add 9patch properties.\n" +
|
||||
"-i path for input directory containing the textures. Required." +
|
||||
"-o path for output files. Should point to a non-existent file with no extension as the extension will be created for both the atlas definition file and texture file. Required.\n" +
|
||||
"-i path for input directory containing the textures. Required.\n\n" +
|
||||
"-o path for output files. Points to non-existent file. Will create texture and definitions file with name. Required.\n\n" +
|
||||
"-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.";
|
||||
}
|
||||
|
||||
public void Run(string[] arguments)
|
||||
public override void Run(string[] arguments)
|
||||
{
|
||||
if (arguments == null) throw new ArgumentException("Requires arguments. Type \"help texturepacker\" for more info.");
|
||||
for (int i = 0; i < arguments.Length; i++)
|
||||
{
|
||||
if (arguments[i] == "-i")
|
||||
|
Reference in New Issue
Block a user