Browse Source

竞技场排行

zhaoyang 2 years ago
parent
commit
5a4c4532b0

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

@@ -252,7 +252,7 @@ namespace GFGGame
                     RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
                 }
                 // item.m_txtFightScore.text = string.Format("飞花令战力:{0}", fightScore);
-                item.m_txtDanRank.text = string.Format("段位排名:{0}", arenaData.Grade);
+                item.m_txtDanRank.text = string.Format("段位排名:{0}", arenaData.RankInGrade);
                 ArenaViewManager.Instance.UpdateDanIcon(item.m_loaDanIcon, arenaData.Grade);
                 RoleInfoManager.Instance.UpdateLv(item.m_comLv, arenaData.RoleInfo.roleLv);
                 if (arenaData.Type == FightTargetType.PLAYER)
@@ -275,7 +275,7 @@ namespace GFGGame
             UI_ListRankItem.ProxyEnd();
         }
 
-        private void UpdateOtherItem(ArenaTargetData arenaData, GObject obj, int index, bool isSelf = false)
+        private void UpdateOtherItem(ArenaTargetData arenaData, GObject obj, int rank, bool isSelf = false)
         {
             UI_ListRankItem3 item = UI_ListRankItem3.Proxy(obj);
 
@@ -292,7 +292,7 @@ namespace GFGGame
             }
             else
             {
-                item.m_txtRank.text = index > 100 ? "--" : index.ToString();
+                item.m_txtRank.text = rank > 100 ? "--" : rank.ToString();
                 item.m_txtName.text = arenaData.RoleInfo.roleName;
                 item.m_txtDanRank.text = arenaData.RankInGrade.ToString();
 

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaView.cs

@@ -315,7 +315,7 @@ namespace GFGGame
         private void UpdateNormal()
         {
             ItemUtil.UpdateTag(_ui.m_comTag, _dataManager.Tag);
-            ItemUtil.UpdateItemNeedNum(_ui.m_comCostCurrent.target, GlobalCfgArray.globalCfg.costIdBuyFreshTimes, GlobalCfgArray.globalCfg.costNumBuyFreshTimes);
+            ItemUtil.UpdateItemNeedNum(_ui.m_comCostCurrent.target, GlobalCfgArray.globalCfg.costIdBuyFreshTimes, GlobalCfgArray.globalCfg.costNumBuyFreshTimes, true, "#FBF6ED");
             _ui.m_loaScore0.url = ResPathUtil.GetScorePath(_dataManager.ThemeList[0]);
             _ui.m_loaScore1.url = ResPathUtil.GetScorePath(_dataManager.ThemeList[1]);
             _ui.m_loaScore2.url = ResPathUtil.GetScorePath(_dataManager.ThemeList[2]);
@@ -347,7 +347,7 @@ namespace GFGGame
             {
                 _ui.m_txtRefreshCount.visible = false;
                 _ui.m_comCostCurrent.target.visible = true;
-                ItemUtil.UpdateItemNeedNum(_ui.m_comCostCurrent.target, GlobalCfgArray.globalCfg.costIdBuyFreshTimes, GlobalCfgArray.globalCfg.costNumBuyFreshTimes);
+                ItemUtil.UpdateItemNeedNum(_ui.m_comCostCurrent.target, GlobalCfgArray.globalCfg.costIdBuyFreshTimes, GlobalCfgArray.globalCfg.costNumBuyFreshTimes, true, "#FBF6ED");
             }
         }