Эх сурвалжийг харах

竞技场排行榜查看玩家信息

zhaoyang 2 жил өмнө
parent
commit
60b87cf523

+ 1 - 1
FGUIProject/assets/Arena/components/ListRankItem3.xml

@@ -4,7 +4,7 @@
     <image id="n19_jcej" name="n19" src="jcej44" fileName="images/phbphb_phdi_1.png" xy="0,0"/>
     <text id="n12_psph" name="txtRank" xy="28,41" pivot="0.5,0" size="132,59" group="n18_psph" fontSize="44" color="#a98860" align="center" autoClearText="true" text="100000"/>
     <component id="n31_v461" name="comHead" src="r9ri1h" fileName="components/ComHead.xml" pkg="eg2y0ldp" xy="167,-18" size="229,230" group="n35_v461" scale="0.73,0.73" controller="c2,2"/>
-    <component id="n33_v461" name="btnLook" src="jcej2w" fileName="components/BtnLook.xml" xy="272,11" group="n35_v461" scale="0.7,0.7"/>
+    <component id="n33_v461" name="btnLook" src="jcej2w" fileName="components/BtnLook.xml" xy="272,11" group="n35_v461" scale="0.7,0.7" touchable="false"/>
     <component id="n34_v461" name="comLv" src="psphq" fileName="components/ComHeadLv.xml" pkg="eg2y0ldp" xy="273,99" group="n35_v461" scale="0.9,0.9"/>
     <group id="n35_v461" name="n35" xy="167,-18" size="229,230" group="n18_psph"/>
     <text id="n14_psph" name="txtName" xy="331,20" size="54,51" group="n29_jcej" fontSize="38" color="#927550" align="center" autoClearText="true" text="--"/>

+ 1 - 1
FGUIProject/assets/Arena/components/ListRankItem4.xml

@@ -4,7 +4,7 @@
     <image id="n19_jcej" name="n19" src="jcej4d" fileName="images/phbphb_zjpm.png" xy="0,0"/>
     <text id="n12_psph" name="txtRank" xy="39,54" pivot="0.5,0" size="132,59" group="n18_psph" fontSize="44" color="#a98860" align="center" autoClearText="true" text="100000"/>
     <component id="n13_psph" name="comHead" src="r9ri1h" fileName="components/ComHead.xml" pkg="eg2y0ldp" xy="189,-6" size="229,230" group="n30_jcej" scale="0.73,0.73" controller="c2,1"/>
-    <component id="n24_jcej" name="btnLook" src="jcej2w" fileName="components/BtnLook.xml" xy="294,19" group="n30_jcej" scale="0.7,0.7"/>
+    <component id="n24_jcej" name="btnLook" src="jcej2w" fileName="components/BtnLook.xml" xy="294,19" group="n30_jcej" scale="0.7,0.7" touchable="false"/>
     <component id="n23_jcej" name="comLv" src="psphq" fileName="components/ComHeadLv.xml" pkg="eg2y0ldp" xy="294,111" group="n30_jcej" scale="0.9,0.9"/>
     <group id="n30_jcej" name="n30" xy="189,-6" size="229,230" group="n18_psph"/>
     <text id="n14_psph" name="txtName" xy="346,33" size="54,51" group="n29_jcej" fontSize="38" color="#927550" align="center" autoClearText="true" text="--"/>

+ 15 - 12
GameClient/Assets/Game/HotUpdate/ServerProxy/ArenaSproxy.cs

@@ -322,10 +322,11 @@ namespace GFGGame
                     // if (list.Count < response.data.Count) return false;
                     for (int i = 0; i < response.data.Count; i++)
                     {
-                        list[i].cardScore = response.data[i].CardScore;
-                        for (int j = 0; j < response.data[i].SuitScore.Count; j++)
+                        ArenaDressupAttrProto attrProto = response.data[i];
+                        list[i].cardScore = attrProto.CardScore;
+                        for (int j = 0; j < attrProto.SuitScore.Count; j++)
                         {
-                            list[i].itemScoreList.Add(response.data[i].SuitScore[j]);
+                            list[i].itemScoreList.Add(attrProto.SuitScore[j]);
                         }
                         list[i].itemList = response.DressupList[i].EquipIds;
                         list[i].cardId = response.DressupList[i].CardId;
@@ -336,16 +337,18 @@ namespace GFGGame
                                 list[i].leagueSkillScore = response.SkillAttrs[j].Value;
                             }
                         }
-                        List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(response.data[i].CardId);
+                        list[i].skillLvs = attrProto.SkillLevel;
+                        // List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(attrProto.CardId);
 
-                        if (response.data[i].SkillId.Count == skillCfgs.Count)
-                        {
-                            for (int j = 0; j < skillCfgs.Count; j++)
-                            {
-                                int index = response.data[i].SkillId.IndexOf(skillCfgs[j].skillId);
-                                list[i].skillLvs.Add(response.data[i].SkillLevel[index]);
-                            }
-                        }
+                        // if (attrProto.SkillId.Count == skillCfgs.Count)
+                        // {
+                        //     for (int j = 0; j < skillCfgs.Count; j++)
+                        //     {
+                        //         int skillId = skillCfgs[j].skillId;
+                        //         int index = attrProto.SkillId.IndexOf(skillId);
+                        //         list[i].skillLvs.Add(attrProto.SkillLevel[index]);
+                        //     }
+                        // }
                         FightDataManager.Instance.SetItemScoreList(list[i]);
                         ScoreSystemData.Instance.SetEquipScoresWithPartId(list[i]);
                     }

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaRankView.cs

@@ -114,7 +114,7 @@ namespace GFGGame
             {
                 count = ArenaDataManager.Instance.RankDatasDic[_rankType].Count;
             }
-            if (count > index)
+            if (count >= index)
             {
                 UpdateView();
                 return;
@@ -313,12 +313,12 @@ namespace GFGGame
                 }
             }
             item.m_btnLook.visible = _rankType != ArenaRankType.LAST_SEASON;
-            if (item.m_btnLook.data == null)
+            if (item.m_comHead.data == null)
             {
-                item.m_btnLook.onClick.Add(OnBtnLookClick);
+                // item.m_btnLook.onClick.Add(OnBtnLookClick);
                 item.m_comHead.onClick.Add(OnBtnLookClick);
             }
-            item.m_btnLook.data = arenaData;
+            // item.m_btnLook.data = arenaData;
             item.m_comHead.data = arenaData;
 
             UI_ListRankItem3.ProxyEnd();
@@ -331,7 +331,7 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("玩家不在线");
                 return;
             }
-            if (_rankType != ArenaRankType.LAST_SEASON)
+            if (_rankType == ArenaRankType.LAST_SEASON)
             {
                 return;
             }