This commit is contained in:
zhangzheng
2025-11-17 14:48:50 +08:00
parent 10e57cbb68
commit f9604896d5
3 changed files with 17 additions and 16 deletions

View File

@@ -119,7 +119,11 @@ namespace Stary.Evo.TableTextConversion
// string key = FilterTo(table.Rows[j][0].ToString());
// if (!string.IsNullOrEmpty(key))
// {
VoiceCount++;
if (table.Rows[j].ItemArray.Length > 0 &&
!string.IsNullOrEmpty(FilterTo(table.Rows[j][0].ToString())))
{
VoiceCount++;
}
// }
}
@@ -127,7 +131,7 @@ namespace Stary.Evo.TableTextConversion
#region AudioTableData
if (table.TableName.ToLower() == "audio")
if (table.TableName.ToLower().Contains("au"))
{
#region
@@ -177,7 +181,7 @@ namespace Stary.Evo.TableTextConversion
#region VideoTableData
if (table.TableName.ToLower() == "video")
if (table.TableName.ToLower().Contains("vid"))
{
#region
@@ -232,7 +236,7 @@ namespace Stary.Evo.TableTextConversion
#region UITableData
if (table.TableName.ToLower() == "ui")
if (table.TableName.ToLower().Contains("ui"))
{
#region
@@ -432,11 +436,11 @@ namespace Stary.Evo.TableTextConversion
}
List<string> result = new List<string>();
result.Add("null");
// 遍历 Doc 文件夹中的所有 .xlsx 文件
string[] xlsxFiles = Directory.GetFiles(docFolderPath, "*.xlsx");
result = xlsxFiles.Select(file => Path.GetFileNameWithoutExtension(file)).ToList();
result.AddRange(xlsxFiles.Select(file => Path.GetFileNameWithoutExtension(file)).ToList());
selectedExslNames = EditorPrefs.GetString("BuildExslNames");
return result;
}
@@ -464,19 +468,15 @@ namespace Stary.Evo.TableTextConversion
domainPath = $"{Application.dataPath}/Modules";
}
string[] domains;
List<string> domains = new List<string>();
domains.Add("null");
// 新增目录获取代码
if (Directory.Exists(domainPath))
{
var dirInfo = new DirectoryInfo(domainPath);
// 获取直接子目录(不递归)
domains = dirInfo.GetDirectories("*", SearchOption.TopDirectoryOnly)
.Select(d => d.Name)
.ToArray();
}
else
{
domains = new[] { "Default" };
domains.AddRange(dirInfo.GetDirectories("*", SearchOption.TopDirectoryOnly)
.Select(d => d.Name).ToList());
}
if (configurationFileType == ConfigurationFileType.Asset)