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

View File

@@ -4,7 +4,8 @@
"references": [ "references": [
"com.tabletext.runtime", "com.tabletext.runtime",
"UniTask", "UniTask",
"YooAsset.Editor" "YooAsset.Editor",
"YooAsset"
], ],
"includePlatforms": [ "includePlatforms": [
"Editor" "Editor"

View File

@@ -1,6 +1,6 @@
{ {
"name": "com.staryevo.tabletextconversion", "name": "com.staryevo.tabletextconversion",
"version": "2.0.7", "version": "2.0.8",
"displayName": "05.TableTextConversion", "displayName": "05.TableTextConversion",
"description": "表格转化工具", "description": "表格转化工具",
"unity": "2021.3", "unity": "2021.3",