Ver Fonte

纠正拼写

guodong há 1 ano atrás
pai
commit
0ee1127501

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/ArenaDataManager.cs

@@ -450,7 +450,7 @@ namespace GFGGame
         private long GetPerfectClickScore(FightData roleData)
         {
             double clickScore = 0;
-            foreach (int key in roleData.pardScoreListDic.Keys)
+            foreach (int key in roleData.partScoreListDic.Keys)
             {
                 double partBaseScore = ScoreSystemData.Instance.GetPartBaseScore(roleData, key);
                 //(部件基础评分+(角色等级分数+角色雅集技能分+词牌对应主题的属性分数)*点击完美附加评分系数0.2) * 点击系数2.22

+ 11 - 11
GameClient/Assets/Game/HotUpdate/Data/ScoreSystemData.cs

@@ -36,19 +36,19 @@ namespace GFGGame
         /// </summary>
         public void SetEquipScoresWithPartId(FightData roleData)
         {
-            roleData.pardScoreListDic.Clear();
-            roleData.pardListDic.Clear();
+            roleData.partScoreListDic.Clear();
+            roleData.partListDic.Clear();
             FightScoreCfg[] typeCfgs = FightScoreCfgArray.Instance.dataArray;
             for (int j = 0; j < typeCfgs.Length; j++)
             {
                 FightScoreCfg cfg = typeCfgs[j];
-                if (roleData.pardScoreListDic.ContainsKey(cfg.id) == false)
+                if (roleData.partScoreListDic.ContainsKey(cfg.id) == false)
                 {
-                    roleData.pardScoreListDic.Add(cfg.id, new List<float>());
+                    roleData.partScoreListDic.Add(cfg.id, new List<float>());
                 }
-                if (roleData.pardListDic.ContainsKey(cfg.id) == false)
+                if (roleData.partListDic.ContainsKey(cfg.id) == false)
                 {
-                    roleData.pardListDic.Add(cfg.id, new List<int>());
+                    roleData.partListDic.Add(cfg.id, new List<int>());
                 }
             }
             for (int i = 0; i < roleData.itemList.Count; i++)
@@ -63,8 +63,8 @@ namespace GFGGame
                         ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(roleData.itemList[i]);
                         if (itemCfg.subType == cfg.subTypesArr[k])
                         {
-                            roleData.pardListDic[cfg.id].Add(roleData.itemList[i]);
-                            roleData.pardScoreListDic[cfg.id].Add(roleData.itemScoreList[i]);
+                            roleData.partListDic[cfg.id].Add(roleData.itemList[i]);
+                            roleData.partScoreListDic[cfg.id].Add(roleData.itemScoreList[i]);
                             isCheckFinish = true;
                             break;
                         }
@@ -172,12 +172,12 @@ namespace GFGGame
             double partScore = 0;
             double tagScore = 0;
             int tagCount = 0;
-            if (!roleData.pardListDic.ContainsKey(partId) || roleData.pardListDic[partId].Count == 0) return partScore;
+            if (!roleData.partListDic.ContainsKey(partId) || roleData.partListDic[partId].Count == 0) return partScore;
 
-            List<int> partList = roleData.pardListDic[partId];
+            List<int> partList = roleData.partListDic[partId];
             for (int i = 0; i < partList.Count; i++)
             {
-                partScore += roleData.pardScoreListDic[partId][i];
+                partScore += roleData.partScoreListDic[partId][i];
                 tagScore += ItemDataManager.GetItemTagScore(partList[i], roleData.tags);
                 // if (ItemDataManager.CheckItemTagsRight(partList[i], roleData.tags)) tagCount++;
             }

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Data/VO/FightData.cs

@@ -20,8 +20,8 @@ namespace GFGGame
 
         public int headId;//头像id
         public int borderId;//头像框id
-        public Dictionary<int, List<int>> pardListDic = new Dictionary<int, List<int>>();//战斗部位,部件列表,战斗开始时更新
-        public Dictionary<int, List<float>> pardScoreListDic = new Dictionary<int, List<float>>();//战斗部位,部件分数列表,战斗开始时更新
+        public Dictionary<int, List<int>> partListDic = new Dictionary<int, List<int>>();//战斗部位,部件列表,战斗开始时更新
+        public Dictionary<int, List<float>> partScoreListDic = new Dictionary<int, List<float>>();//战斗部位,部件分数列表,战斗开始时更新
         public List<int> itemList = new List<int>();
 
         /**********************************************机器人独立数据*****************************************/

+ 12 - 8
GameClient/Assets/Game/HotUpdate/Views/DressUp/ArenaDressUpFightView.cs

@@ -96,6 +96,7 @@ namespace GFGGame
             _ui.m_partsList.m_imgTop.visible = false;
 
         }
+
         protected override void AddEventListener()
         {
             base.AddEventListener();
@@ -104,6 +105,16 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.CARD_SELECTED, UpdateValueInfo);
             EventAgent.AddEventListener(ConstMessage.DRESS_FILTER_RESET, DressResetSerch);
         }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+            EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdateSerch);
+            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdateSerch);
+            EventAgent.RemoveEventListener(ConstMessage.CARD_SELECTED, UpdateValueInfo);
+            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER_RESET, DressResetSerch);
+        }
+
         protected override void OnShown()
         {
             base.OnShown();
@@ -164,14 +175,7 @@ namespace GFGGame
             _ui.m_comValueInfo.GetController("c2").selectedIndex = 0;
 
         }
-        protected override void RemoveEventListener()
-        {
-            base.RemoveEventListener();
-            EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdateSerch);
-            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdateSerch);
-            EventAgent.RemoveEventListener(ConstMessage.CARD_SELECTED, UpdateValueInfo);
-            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER_RESET, DressResetSerch);
-        }
+
         private void OnClickBtnBack()
         {
             bool isSave = _itemList.Count == MyDressUpHelper.dressUpObj.itemList.Count;

+ 22 - 18
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -53,9 +53,9 @@ namespace GFGGame
             base.Dispose();
         }
 
-        protected override void Init()
+        protected override void OnInit()
         {
-            base.Init();
+            base.OnInit();
             packageName = UI_DressUpFightUI.PACKAGE_NAME;
             _ui = UI_DressUpFightUI.Create();
             viewCom = _ui.target;
@@ -64,12 +64,6 @@ namespace GFGGame
             _ui.m_btnClose.width = GRoot.inst.width;
             _ui.m_btnClose.height = GRoot.inst.height;
             _ui.m_btnClose.AddRelation(GRoot.inst, RelationType.Size);
-
-        }
-
-        protected override void OnInit()
-        {
-            base.OnInit();
             _ui.m_btnLastStep.visible = true;
             _ui.m_btnNextStep.visible = true;
             _ui.m_btnClose.visible = false;
@@ -119,6 +113,7 @@ namespace GFGGame
             _ui.m_partsList.m_imgTop.visible = false;
 
         }
+
         protected override void AddEventListener()
         {
             base.AddEventListener();
@@ -130,6 +125,19 @@ namespace GFGGame
             // EventAgent.AddEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
 
         }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+            EventAgent.RemoveEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
+
+            EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdateSerch);
+            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdateSerch);
+            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER_RESET, DressResetSerch);
+            // EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
+
+        }
+
         protected override void OnShown()
         {
             base.OnShown();
@@ -231,28 +239,20 @@ namespace GFGGame
             MyDressUpHelper.ResetMemory();
             Timers.inst.Remove(CheckGuide);
         }
-        protected override void RemoveEventListener()
-        {
-            base.RemoveEventListener();
-            EventAgent.RemoveEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
 
-            EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdateSerch);
-            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdateSerch);
-            EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER_RESET, DressResetSerch);
-            // EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
-
-        }
         private void OnClickBtnLastStep()
         {
             if (!MyDressUpHelper.OnClickBtnLastStep()) return;
             UpdateStepBtn(false);
         }
+
         private void OnClickBtnNextStep()
         {
             if (!MyDressUpHelper.OnClickBtnNextStep()) return;
             UpdateStepBtn(false);
 
         }
+
         private void OnClickBtnBack()
         {
             AlertUI.Show("是否确定退出?")
@@ -341,6 +341,7 @@ namespace GFGGame
             }
             this.hideListType2();
         }
+
         private void OnClickSearchPartsListItem(EventContext context)
         {
             if (ViewManager.isViewOpen(typeof(DressUpItemTipsView).FullName))
@@ -367,6 +368,7 @@ namespace GFGGame
 
             UpdateScore();
         }
+
         private void OnClickPartsListItem(EventContext context)
         {
             if (ViewManager.isViewOpen(typeof(DressUpItemTipsView).FullName))
@@ -403,6 +405,7 @@ namespace GFGGame
             // UpdateListSuitPartsSelected();
             UpdateScore();
         }
+
         private void OnClickSuitPartsListItem(EventContext context)
         {
             if (ViewManager.isViewOpen(typeof(DressUpItemTipsView).FullName))
@@ -433,6 +436,7 @@ namespace GFGGame
             // UpdateListSuitPartsSelected();
             UpdateScore();
         }
+
         private void UpdateStepBtn(bool isAdd, int suitId = 0)
         {
             if (isAdd)