浏览代码

千山万水

zhaoyang 2 年之前
父节点
当前提交
8fb3e11367
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      GameClient/Assets/Editor/ArtsRes/ImportArtResTool.cs

+ 15 - 0
GameClient/Assets/Editor/ArtsRes/ImportArtResTool.cs

@@ -106,6 +106,15 @@ namespace GFGEditor
         public static string TextureTargetPath = $"{ResPathUtil.Texture_DIR_PATH}/Effect/";
         public static string EffectTextureMd5FileSaveName = "EffectTextureMd5";
 
+
+        private static string[] TravelBgPaths { get { return new string[] { ResRootPath + "千山万水/背景/" }; } }
+        public static string TravelBgTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/Travel/Bg/";
+        public static string TravelBgMd5FileSaveName = "TravelBgMd5";
+
+        private static string[] TravelRolePaths { get { return new string[] { ResRootPath + "千山万水/角色/" }; } }
+        public static string TravelRoleTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/Travel/Role/";
+        public static string TravelRoleMd5FileSaveName = "TravelRoleMd5";
+
         public static void Import()
         {
             var md5Path = ImportArtResTool.Md5FilePath;
@@ -159,6 +168,12 @@ namespace GFGEditor
             EditorUtility.DisplayProgressBar("进度", "正在导入UI背景", 1);
             ImportRes(UIBgSrcPaths, UIBgTargetPath, UIBgMd5FileSaveName);
 
+            EditorUtility.DisplayProgressBar("进度", "正在导入千山万水背景", 1);
+            ImportRes(TravelBgPaths, TravelBgTargetPath, TravelBgMd5FileSaveName);
+
+            EditorUtility.DisplayProgressBar("进度", "正在导入千山万水角色资源", 1);
+            ImportRes(TravelRolePaths, TravelRoleTargetPath, TravelRoleMd5FileSaveName);
+
             //清除冗余动画
             FileUtil.DeleteUnnecessaryAnimation(ImportArtResTool.DressUpAnimationTargetPath, ImportArtResTool.DressUpAnimationSrcPaths[0]);
             FileUtil.DeleteUnnecessaryAnimation(ImportArtResTool.EffectTargetPath, ImportArtResTool.EffectSrcPaths[0]);