瀏覽代碼

导图鉴资源

zhaoyang 2 年之前
父節點
當前提交
89873e1ef2
共有 2 個文件被更改,包括 10 次插入3 次删除
  1. 9 3
      GameClient/Assets/Editor/ArtsRes/ImportArtResTool.cs
  2. 1 0
      GameClient/Assets/Editor/ToolsMenu.cs

+ 9 - 3
GameClient/Assets/Editor/ArtsRes/ImportArtResTool.cs

@@ -17,9 +17,12 @@ namespace GFGEditor
         public static string ragule = @"^[0-9a-zA-Z_.]{1,}$";
         public static string Md5FilePath = $"{ResPathUtil.RES_ROOT_DIR_PATH}/MD5";
 
-        private static string[] FieldGuideIconSrcPaths { get { return new string[] { ResRootPath + "图鉴/" }; } }
-        public static string FieldGuideIconTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/FieldGuide/Icon/";
+        private static string[] FieldGuideIconSrcPaths { get { return new string[] { ResRootPath + "图鉴/套装图鉴" }; } }
+        public static string FieldGuideIconTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/FieldGuide/SuitIcon/";
         public static string FieldGuideIconMd5FileSaveName = "FieldGuideIconMd5";
+        private static string[] ChapterGuideIconSrcPaths { get { return new string[] { ResRootPath + "图鉴/博物图鉴" }; } }
+        public static string ChapterGuideIconTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/FieldGuide/ChapterIcon/";
+        public static string ChapterGuideIconMd5FileSaveName = "ChapterGuideIconMd5";
 
 
         private static string[] MusicSrcPaths { get { return new string[] { ResRootPath + "music/" }; } }
@@ -150,9 +153,12 @@ namespace GFGEditor
             //卡牌音乐
             EditorUtility.DisplayProgressBar("进度", "正在导入卡牌音乐", 1);
             ImportRes(CardMusicSrcPaths, CardMusicTargetPath, CardMusicMd5FileSaveName);
-            //图鉴图标
+            //套装图鉴图标
             EditorUtility.DisplayProgressBar("进度", "正在导入图鉴图标", 1);
             ImportRes(FieldGuideIconSrcPaths, FieldGuideIconTargetPath, FieldGuideIconMd5FileSaveName);
+            //博物图鉴图标
+            EditorUtility.DisplayProgressBar("进度", "正在导入博物图鉴图标", 1);
+            ImportRes(ChapterGuideIconSrcPaths, ChapterGuideIconTargetPath, ChapterGuideIconMd5FileSaveName);
             //物品图标
             EditorUtility.DisplayProgressBar("进度", "正在导入物品图标", 1);
             ImportRes(ItemIconSrcPaths, ItemIconTargetPath, IconMd5FileSaveName);

+ 1 - 0
GameClient/Assets/Editor/ToolsMenu.cs

@@ -245,6 +245,7 @@ namespace GFGEditor
             EditorUtility.DisplayProgressBar("进度", "开始清除资源", 1);
 
             FileUtil.DeleteUnnecessaryImage(ImportArtResTool.FieldGuideIconTargetPath, new string[] { ImportArtResTool.FieldGuideIconMd5FileSaveName });
+            FileUtil.DeleteUnnecessaryImage(ImportArtResTool.ChapterGuideIconTargetPath, new string[] { ImportArtResTool.ChapterGuideIconMd5FileSaveName });
 
             FileUtil.DeleteUnnecessaryImage(ImportArtResTool.MusicTargetPath, new string[] { ImportArtResTool.MusicMd5FileSaveName });