少年修仙传客户端代码仓库
4003 【前端】【1.0.18】【主干】水晶只有一个时,点击选中,再点击取消选中
1个文件已修改
25 ■■■■ 已修改文件
System/Strengthening/GodBeastSlidingList.cs 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/GodBeastSlidingList.cs
@@ -411,7 +411,7 @@
                    if (godBeastModel.Absorption_Dic.ContainsKey(godBeastBagClass.Index))
                    {
                        GodBeastChildNodes.ChoosenImg.SetActive(true);
                        if (itemModel.EquipPlace <= 0)
                        if (itemModel.EquipPlace <= 0 && itemModel.itemInfo.ItemCount>1)
                        {
                            GodBeastChildNodes.NumberNow.gameObject.SetActive(true);
                            GodBeastChildNodes.NumberNow.text = godBeastModel.Absorption_Dic[godBeastBagClass.Index].ToString();
@@ -434,9 +434,26 @@
                        }
                        else//选中的物品为水晶
                        {
                            godBeastModel.Crystal_ItemModel = itemModel;
                            godBeastModel.ItemInde = godBeastBagClass.Index;
                            WindowCenter.Instance.Open<CrystalSelectionWin>();
                            if (itemModel.itemInfo.ItemCount <= 1)
                            {
                                if (godBeastModel.Absorption_Dic.ContainsKey(godBeastBagClass.Index))
                                {
                                    godBeastModel.Absorption_Dic.Remove(godBeastBagClass.Index);
                                }
                                else
                                {
                                    godBeastModel.Absorption_Dic.Add(godBeastBagClass.Index, 1);
                                }
                                m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见
                            }
                            else
                            {
                                godBeastModel.Crystal_ItemModel = itemModel;
                                godBeastModel.ItemInde = godBeastBagClass.Index;
                                WindowCenter.Instance.Open<CrystalSelectionWin>();
                            }
                        }
                        godBeastModel.AbsorbEventUpdate();
                    });