瀏覽代碼

合成引导选中要合成物品所在的套装

zhaoyang 3 年之前
父節點
當前提交
5127abccd8

+ 4 - 7
FGUIProject/assets/CommonGame/ApproachOfItemUI.xml

@@ -1,20 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
-<component size="678,448">
+<component size="678,508">
   <displayList>
   <displayList>
-    <loader id="n0_lwri" name="n0" xy="0,0" size="678,448" url="ui://mk0fwx0xlwri5u" fill="scaleFree">
-      <relation target="n4_lwri" sidePair="bottomext-bottom"/>
-    </loader>
+    <loader id="n0_lwri" name="n0" xy="0,0" size="678,508" url="ui://mk0fwx0xlwri5u" fill="scaleFree"/>
     <image id="n1_lwri" name="n1" src="lwri5x" fileName="images/hc_btkuang_1.png" xy="81,38"/>
     <image id="n1_lwri" name="n1" src="lwri5x" fileName="images/hc_btkuang_1.png" xy="81,38"/>
     <text id="n2_lwri" name="n2" xy="265,41" size="148,49" fontSize="36" color="#f9e4c2" text="获取途径"/>
     <text id="n2_lwri" name="n2" xy="265,41" size="148,49" fontSize="36" color="#f9e4c2" text="获取途径"/>
-    <text id="n3_lwri" name="txtName" xy="253,124" size="167,42" fontSize="30" color="#9c8872" vars="true" text="* {v1=物品名称 }*">
+    <text id="n3_lwri" name="txtName" xy="253,124" size="167,41" fontSize="30" color="#9c8872" vars="true" text="* {v1=物品名称 }*">
       <relation target="" sidePair="center-center"/>
       <relation target="" sidePair="center-center"/>
     </text>
     </text>
-    <list id="n4_lwri" name="listApproach" xy="196,215" size="285,162" overflow="scroll" lineGap="30" defaultItem="ui://eg2y0ldplwri5y" autoClearItems="true">
+    <list id="n4_lwri" name="listApproach" xy="196,200" size="285,237" overflow="scroll" lineGap="25" defaultItem="ui://eg2y0ldplwri5y" align="center" autoClearItems="true">
       <item/>
       <item/>
       <item/>
       <item/>
       <item/>
       <item/>
     </list>
     </list>
     <text id="n5_lwri" name="txtNone" xy="81,265" size="516,44" fontSize="32" color="#d2ba94" vars="true" text="当前无获取方式,敬请期待后续活动"/>
     <text id="n5_lwri" name="txtNone" xy="81,265" size="516,44" fontSize="32" color="#d2ba94" vars="true" text="当前无获取方式,敬请期待后续活动"/>
   </displayList>
   </displayList>
-  <relation target="n4_lwri" sidePair="bottomext-bottom"/>
 </component>
 </component>

+ 6 - 2
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs

@@ -171,8 +171,12 @@ namespace GFGGame
         protected override void UpdateToCheckGuide(object param)
         protected override void UpdateToCheckGuide(object param)
         {
         {
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
-
-            GuideController.TryGuide(_ui.m_listSuit, ConstGuideId.CLOTHING_SYNTHETIC, 7, "查看已解锁的图谱", 0);
+            int storyLevelId = GuideCfgArray.Instance.GetCfg(ConstGuideId.CLOTHING_SYNTHETIC).storyLevelId;
+            string fightID = StoryLevelCfgArray.Instance.GetCfg(storyLevelId).fightID;
+            int itemId = StoryFightCfgArray.Instance.GetCfg(fightID).needItemId;
+            int suitId = ItemCfgArray.Instance.GetCfg(itemId).suitId;
+            int index = _suitListIds.IndexOf(suitId);
+            GuideController.TryGuide(_ui.m_listSuit, ConstGuideId.CLOTHING_SYNTHETIC, 7, "查看已解锁的图谱", index);
         }
         }
     }
     }
 }
 }

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachOfItemView.cs

@@ -52,12 +52,12 @@ namespace GFGGame
                     }
                     }
                 }
                 }
                 _ui.m_listApproach.numItems = _approachDatas.Count;
                 _ui.m_listApproach.numItems = _approachDatas.Count;
-                _ui.m_listApproach.ResizeToFit();
+                // _ui.m_listApproach.ResizeToFit();
             }
             }
             else
             else
             {
             {
                 _ui.m_txtNone.visible = true;
                 _ui.m_txtNone.visible = true;
-                _ui.m_listApproach.height = 162;
+                // _ui.m_listApproach.height = 162;
             }
             }
 
 
         }
         }

二進制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes