Add option to export images in "assetName@hash" name format

- Redesigned spriteHelper & texture2DConverter
- Improved speed of texture2D preview a bit
This commit is contained in:
VaDiM
2026-03-13 13:27:47 +03:00
parent 94090a997a
commit 61d9bc8f15
16 changed files with 611 additions and 407 deletions
+7 -2
View File
@@ -46,6 +46,7 @@ namespace AssetStudioCLI.Options
AssetName,
AssetName_PathID,
PathID,
AssetName_Hash,
}
internal enum ExportListType
@@ -245,10 +246,11 @@ namespace AssetStudioCLI.Options
optionDefaultValue: FilenameFormat.AssetName,
optionName: "-f, --filename-format <value>",
optionDescription: "Specify the file name format for exported assets\n" +
"<Value: assetName(default) | assetName_pathID | pathID>\n" +
"<Value: assetName(default) | assetName_pathID | pathID | assetName_hash>\n" +
"AssetName - Asset file names will look like \"assetName.extension\"\n" +
"AssetName_pathID - Asset file names will look like \"assetName @pathID.extension\"\n" +
"PathID - Asset file names will look like \"pathID.extension\"\n",
"PathID - Asset file names will look like \"pathID.extension\"\n" +
"AssetName_hash - (images only) image names will look like \"assetName @hash.extension\"\n",
optionExample: "Example: \"-f assetName_pathID\"\n",
optionHelpGroup: HelpGroups.General
);
@@ -931,6 +933,9 @@ namespace AssetStudioCLI.Options
case "pathid":
o_filenameFormat.Value = FilenameFormat.PathID;
break;
case "assetname_hash":
o_filenameFormat.Value = FilenameFormat.AssetName_Hash;
break;
default:
Console.WriteLine($"{"Error".Color(brightRed)} during parsing [{option.Color(brightYellow)}] option. Unsupported file name format: [{value.Color(brightRed)}].\n");
ShowOptionDescription(o_filenameFormat);