少年修仙传客户端代码仓库
client_Zxw
2018-08-21 9b993e14c6ec69b98d664eb25a7895cb847157c2
System/Strengthening/GodBeastSlidingList.cs
@@ -190,14 +190,14 @@
                {
                    godBeastBagClass.LV = 0;
                    godBeastBagClass.Proficiency = 0;
                }
                else
                {
                    godBeastBagClass.LV = IudetDogzEquipPlus[0];
                    godBeastBagClass.Proficiency = IudetDogzEquipPlus[1];
                }
                GodBeastBagList.Add(godBeastBagClass);
            }
            GodBeastBagList.Sort(Compare);
@@ -237,7 +237,7 @@
            AbsorptionDic.Clear();
            for (int i = 0; i < GodBeastBagList.Count; i++)
            {
                if (Quality > 0)//只有水晶
                if (Quality <= 0)//只有水晶
                {
                    if (GodBeastBagList[i].IsEquipment != 0)
                    {
@@ -247,16 +247,20 @@
                }
                else
                {
                    if (Quality < 10 && (GodBeastBagList[i].IsEquipment == 1 || GodBeastBagList[i].Color > Quality))//过滤掉只剩所选品质装备
                    if (Quality < 10 && GodBeastBagList[i].IsEquipment != 1 && GodBeastBagList[i].Color > Quality)//过滤掉只剩所选品质装备
                    {
                        int type = i;
                        DeleteIndexList.Add(type);
                    }
                }
            }
            for (int j = 0; j < DeleteIndexList.Count; j++)
            for (int j = DeleteIndexList.Count; j > 0; j--)
            {
                GodBeastBagList.RemoveAt(DeleteIndexList[j]);
                int Inedex = DeleteIndexList[j - 1];
                if (Inedex <= GodBeastBagList.Count - 1)
                {
                    GodBeastBagList.RemoveAt(Inedex);
                }
            }
            if (m_ToggleAll.isOn)
            {
@@ -357,6 +361,7 @@
                    {
                        GodBeastChildNodes.ChoosenImg.SetActive(true);
                    }
                    GodBeastChildNodes.GetGodBeastIndex(godBeastBagClass.Index);
                    GodBeastChildNodes.ButtonDown.AddListener(() =>
                    {
                        if (AbsorptionDic.ContainsKey(godBeastBagClass.Index))
@@ -365,7 +370,7 @@
                        }
                        else
                        {
                            AbsorptionDic.Add(godBeastBagClass.Index,1);
                            AbsorptionDic.Add(godBeastBagClass.Index, 1);
                        }
                        m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见
                        if (AbsorbEvent != null)
@@ -373,7 +378,6 @@
                            AbsorbEvent(AbsorptionDic);
                        }
                    });
                }
            }
        }