1111
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"references": [
|
||||
"com.tabletext.runtime",
|
||||
"UniTask",
|
||||
"YooAsset.Editor"
|
||||
"YooAsset.Editor",
|
||||
"YooAsset"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
|
||||
Reference in New Issue
Block a user