Przeglądaj źródła

竞技场晋级动画

zhaoyang 2 lat temu
rodzic
commit
2f8f0d984f

+ 1 - 1
FGUIProject/assets/Arena/ArenaDanUpUI.xml

@@ -10,7 +10,7 @@
     <component id="n8_jcej" name="comLastDan" src="ofwu5q" fileName="components/ComDanIcon.xml" xy="204,160" pivot="0.5,0.5" size="250,302"/>
     <component id="n2_psph" name="comCurDan" src="ofwu5q" fileName="components/ComDanIcon.xml" xy="623,160" pivot="0.5,0.5" size="250,302" aspect="true" controller="c1,1"/>
     <image id="n5_jcej" name="n5" src="jcej3z" fileName="images/pmts_ffbtbt.png" xy="422,540" group="n11_jcej"/>
-    <list id="n1_psph" name="listFirstDanReward" xy="140,600" pivot="0.5,0" size="799,221" group="n11_jcej" layout="row" colGap="50" defaultItem="ui://eg2y0ldpj48o98" align="center" autoClearItems="true">
+    <list id="n1_psph" name="listFirstDanReward" xy="140,600" pivot="0.5,0" size="799,221" group="n11_jcej" layout="row" defaultItem="ui://eg2y0ldpj48o98" align="center" autoClearItems="true">
       <item/>
       <item/>
       <item/>

+ 2 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/ArenaSproxy.cs

@@ -210,6 +210,8 @@ namespace GFGGame
                     ArenaDataManager.Instance.LastTargetInfo.headRes = targetData.RoleInfo.headRes;
                     ArenaDataManager.Instance.BonusList = ItemUtil.CreateItemDataList(response.rewards);
                     ArenaDataManager.Instance.LastTargets = new List<ArenaTargetData>(ArenaDataManager.Instance.Targets);
+                    ArenaDataManager.Instance.RewardId = response.RewardId;
+
                     //更新新数据
                     ArenaDataManager.Instance.Targets.Clear();
                     for (int i = 0; i < response.targets.Count; i++)

+ 6 - 6
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaDanUpView.cs

@@ -46,11 +46,6 @@ namespace GFGGame
 
             this.clickBlankToClose = false;
 
-            _ui.m_c1.selectedIndex = rewardId > 0 ? 1 : 0;
-            if (rewardId > 0)
-            {
-                _ui.m_listFirstDanReward.numItems = cfg.bonusUpgradeArr.Length;
-            }
 
             cfg = ArenaRankCfgArray.Instance.GetCfg(curGrade);
             _ui.m_comCurDan.m_txtDanTitle.text = cfg.gradeName;
@@ -61,6 +56,11 @@ namespace GFGGame
             _ui.m_comLastDan.m_txtDanTitle.text = lastCfg.gradeName;
             ArenaViewManager.Instance.UpdateDanIcon(_ui.m_comLastDan.m_loaDanIcon, lastCfg.id);
 
+            _ui.m_c1.selectedIndex = rewardId > 0 ? 1 : 0;
+            if (rewardId > 0)
+            {
+                _ui.m_listFirstDanReward.numItems = cfg.bonusUpgradeArr.Length;
+            }
             _ui.m_t0.Play(() =>
             {
                 this.clickBlankToClose = true;
@@ -88,7 +88,7 @@ namespace GFGGame
                 obj.data = new ItemView(obj as GComponent);
             }
             (obj.data as ItemView).SetData(itemData);
-            (obj.data as ItemView).SetComItemScale = 0.7f;
+            (obj.data as ItemView).SetComItemScale = 0.85f;
             (obj.data as ItemView).SetTxtCountPos(185, 155);
         }
     }

BIN
GameClient/Assets/ResIn/UI/Arena/Arena_fui.bytes