少年修仙传客户端基础资源
hch
2023-12-29 88529ba6204e803281f41d39c460b086e303e188
0312 导入导出预制体问题增加是否需要翻译
2个文件已修改
12 ■■■■ 已修改文件
Assets/Editor/Tool/ExportPrefabsWords.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ImportPrefabsWords.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ExportPrefabsWords.cs
@@ -64,10 +64,16 @@
            int i = 0;
            foreach (Text item in transArr14)
            {
                TextEx tmpTextEx = item as TextEx;
                RichText tmpRichText = item as RichText;
                bool isNeedTrans = true;
                if ((tmpTextEx != null && tmpTextEx.isKey) || (tmpRichText != null && tmpRichText.language))
                {
                    isNeedTrans = false;
                }
                // /Debug.LogFormat("{0}包含文字 {1}-{2}", file, item.name, item.text);
                string temp = item.text.Replace("\r\n","").Replace("\r","").Replace("\n","");
                string writeline = string.Format("{0}\t{1}\t{2}\t{3}\r\n", file, i, item.name, temp);
                string writeline = string.Format("{0}\t{1}\t{2}\t{3}\t{4}\r\n", file, i, item.name, temp, isNeedTrans);
                byte[] data = System.Text.Encoding.UTF8.GetBytes(writeline);
                fs.Write(data, 0, data.Length);
                i++;
Assets/Editor/Tool/ImportPrefabsWords.cs
@@ -40,7 +40,7 @@
            var lineStr = lines[startIndex];
            string[] info = lines[startIndex].Split('\t');
            startIndex++;
            if (info.Length != 4)
            if (info.Length != 5)
            {
                Debug.LogFormat("异常:长度不对--执行到:第{0}行 {1}", startIndex, lineStr);
                return;