Performed basic tests and fixed 9patch and texturepacker.
This commit is contained in:
@@ -62,7 +62,7 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
|
||||
} while (!argumentsSplit[i].Contains('"'));
|
||||
quoteBuilder.Append(' ');
|
||||
quoteBuilder.Append(argumentsSplit[i]);
|
||||
argumentsList.Add(quoteBuilder.ToString().Trim());
|
||||
argumentsList.Add(quoteBuilder.ToString().Replace("\"", "").Trim());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -18,7 +18,7 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
|
||||
/// <summary>
|
||||
/// Arguments that this command should accept and take into account.
|
||||
/// </summary>
|
||||
protected EngineCommandArgument[] arguments;
|
||||
protected EngineCommandArgument[] commandArguments;
|
||||
protected string help;
|
||||
|
||||
public EngineCommand(params string[] invokeStrings)
|
||||
@@ -71,11 +71,11 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
|
||||
/// <returns>null if not viable or the <see cref="EngineCommandArgumentOf(argument)"/> if viable.</returns>
|
||||
public EngineCommandArgument EngineCommandArgumentOf(string argument)
|
||||
{
|
||||
for (int i = 0; i < arguments.Length; i++)
|
||||
for (int i = 0; i < commandArguments.Length; i++)
|
||||
{
|
||||
if (arguments[i].invokeString == argument)
|
||||
if (commandArguments[i].invokeString == argument)
|
||||
{
|
||||
return arguments[i];
|
||||
return commandArguments[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@@ -138,7 +138,7 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
|
||||
/// <returns>The string for the help.</returns>
|
||||
public string Help(string argument = null)
|
||||
{
|
||||
if (argument != null && arguments != null)
|
||||
if (argument != null && commandArguments != null)
|
||||
{
|
||||
if (Validate(argument))
|
||||
{
|
||||
@@ -156,18 +156,18 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
|
||||
{
|
||||
StringBuilder helpBuilder = new StringBuilder();
|
||||
helpBuilder.Append(help);
|
||||
if (arguments != null)
|
||||
if (commandArguments != null)
|
||||
{
|
||||
helpBuilder.AppendLine();
|
||||
helpBuilder.Append("Possible arguments are: ");
|
||||
for (int i = 0; i < arguments.Length; i++)
|
||||
for (int i = 0; i < commandArguments.Length; i++)
|
||||
{
|
||||
helpBuilder.Append(arguments[i].invokeString);
|
||||
if (i == arguments.Length - 2)
|
||||
helpBuilder.Append(commandArguments[i].invokeString);
|
||||
if (i == commandArguments.Length - 2)
|
||||
{
|
||||
helpBuilder.Append(", and ");
|
||||
}
|
||||
else if (i < arguments.Length - 2)
|
||||
else if (i < commandArguments.Length - 2)
|
||||
{
|
||||
helpBuilder.Append(", ");
|
||||
}
|
||||
|
Reference in New Issue
Block a user