zhaoyang 2 years ago
parent
commit
1cdb29e5bf

+ 1 - 1
FGUIProject/assets/FieldGuide/components/ChapterGuideItem.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="457,551">
   <displayList>
-    <loader id="n5_s61p" name="loaIcon" xy="0,0" size="457,551" url="ui://vqq9h9h4s61p20" autoSize="true"/>
+    <loader id="n5_s61p" name="loaIcon" xy="0,0" size="457,551" url="ui://vqq9h9h4s61p2e" autoSize="true"/>
     <image id="n6_s61p" name="n6" src="s61p23" fileName="images/jbhc_diban_4.png" xy="2,1" size="453,543" group="n9_s61p"/>
     <image id="n7_s61p" name="n7" src="ohuntac" fileName="imagesExport/zhuxian_shuoto.png" pkg="eg2y0ldp" xy="193,223" group="n9_s61p"/>
     <text id="n8_s61p" name="txtDesc" xy="64,281" pivot="0.5,0" size="328,49" group="n9_s61p" fontSize="36" color="#f1e6d9" align="center" text="通关主线第六章解锁"/>

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Utils/ResPathUtil.cs

@@ -74,7 +74,11 @@ namespace GFGGame
         }
         public static string GetFieldGuideIconPath(string res, string extName = "png")
         {
-            return $"{TEXTURE_DIR_PATH}/FieldGuide/Icon/{res}.{extName}";
+            return $"{TEXTURE_DIR_PATH}/FieldGuide/SuitIcon/{res}.{extName}";
+        }
+        public static string GetChapterGuideIconPath(string res, string extName = "png")
+        {
+            return $"{TEXTURE_DIR_PATH}/FieldGuide/ChapterIcon/{res}.{extName}";
         }
 
         public static string GetNpcHeadPath(string res, string extName = "png")

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/ChapterItemGuideView.cs

@@ -63,7 +63,7 @@ namespace GFGGame
             CulturalRelicCfg cfg = culturalRelicCfg[index];
             StoryChapterCfg storyChapterCfg = StoryChapterCfgArray.Instance.GetCfg(cfg.chapterId);
             UI_ChapterGuideItem item = UI_ChapterGuideItem.Proxy(obj);
-            item.m_loaIcon.url = string.Format("ui://FieldGuide/{0}", cfg.iconRes);
+            item.m_loaIcon.url = ResPathUtil.GetChapterGuideIconPath(cfg.bgRes);// string.Format("ui://FieldGuide/{0}", cfg.iconRes);
             bool isPass = InstanceZonesDataManager.CheckChapterPass(storyChapterCfg.type, storyChapterCfg.subType, storyChapterCfg.id, storyChapterCfg.levelCount);
             item.m_grpLock.visible = !isPass;
             item.m_txtDesc.text = string.Format("通关主线第{0}章解锁", NumberUtil.GetChiniseNumberText(storyChapterCfg.order));

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/ChapterItemShowView.cs

@@ -59,7 +59,7 @@ namespace GFGGame
 
         private void UpdateView()
         {
-            _ui.m_loaItem.url = string.Format("ui://FieldGuide/{0}", _cfg.bgRes);
+            _ui.m_loaItem.url = ResPathUtil.GetChapterGuideIconPath(_cfg.bgRes); //string.Format("ui://FieldGuide/{0}", _cfg.bgRes);
             _ui.m_txtTitle.text = _cfg.name;
             _ui.m_txtDesc.text = _cfg.desc;
         }