Some minor fixes

This commit is contained in:
VaDiM 2023-07-09 05:47:04 +03:00
parent 007e5c7e4d
commit dcd7b98229
4 changed files with 14 additions and 4 deletions

View File

@ -592,7 +592,7 @@ namespace AssetStudio
private void ProcessAssets()
{
Logger.Info("Process Assets...");
Logger.Info("Process assets...");
foreach (var assetsFile in assetsFileList)
{

View File

@ -158,6 +158,10 @@ namespace AssetStudioCLI
}
parsedAssetsList.AddRange(fileAssetsList);
fileAssetsList.Clear();
if (options.o_workMode.Value != WorkMode.ExportLive2D)
{
containers.Clear();
}
}
}

View File

@ -1300,10 +1300,15 @@ namespace AssetStudioGUI
{
if (InvokeRequired)
{
BeginInvoke(new Action(() => { progressBar1.Value = value; }));
BeginInvoke(new Action(() =>
{
progressBar1.Value = value;
progressBar1.Style = ProgressBarStyle.Continuous;
}));
}
else
{
progressBar1.Style = ProgressBarStyle.Continuous;
progressBar1.Value = value;
}
@ -1905,6 +1910,8 @@ namespace AssetStudioGUI
{
timer.Stop();
saveDirectoryBackup = saveFolderDialog.Folder;
Progress.Reset();
BeginInvoke(new Action(() => { progressBar1.Style = ProgressBarStyle.Marquee; }));
Studio.ExportLive2D(cubismMocs, saveFolderDialog.Folder);
}
}

View File

@ -439,7 +439,7 @@ namespace AssetStudioGUI
break;
}
exportPath += Path.DirectorySeparatorChar;
Logger.Info($"[{exportedCount}/{toExportCount}] Exporting {asset.TypeString}: {asset.Text}");
Logger.Info($"[{exportedCount + 1}/{toExportCount}] Exporting {asset.TypeString}: {asset.Text}");
try
{
switch (exportType)
@ -748,7 +748,6 @@ namespace AssetStudioGUI
ThreadPool.QueueUserWorkItem(state =>
{
Progress.Reset();
Logger.Info($"Searching for Live2D files...");
var useFullContainerPath = false;