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