少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-04 c01b9795523a7c742b0573f56700ad120f6b984c
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
2个文件已修改
18 ■■■■ 已修改文件
System/GatheringSoul/GatherSoulEquipCell.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatherSoulEquipListWin.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatherSoulEquipCell.cs
@@ -12,6 +12,7 @@
        [SerializeField] Image m_Icon;
        [SerializeField] Text m_Level;
        [SerializeField] PropertyBehaviour[] m_Propertys;
        [SerializeField] RectTransform m_Redpoint;
        GatheringSoulModel model
        {
@@ -23,7 +24,7 @@
            get { return ModelCenter.Instance.GetModel<VirtualPackModel>(); }
        }
        public void Display(GatherSoulItem item)
        public void Display(GatherSoulItem item, bool requireRedpoint)
        {
            var itemConfig = Config.Instance.Get<ItemConfig>(item.id);
            m_Icon.SetSprite(itemConfig.IconKey);
@@ -39,6 +40,7 @@
                    m_Propertys[i].DisplayUpper(list[i], propertyValue);
                }
            }
            m_Redpoint.gameObject.SetActive(requireRedpoint);
        }
    }
}
System/GatheringSoul/GatherSoulEquipListWin.cs
@@ -20,6 +20,8 @@
        public static int selectHole = 0;
        bool existHoleItem = false;
        GatheringSoulModel model
        {
            get { return ModelCenter.Instance.GetModel<GatheringSoulModel>(); }
@@ -39,6 +41,16 @@
        protected override void OnPreOpen()
        {
            GatherSoulItem item;
            if (model.TryGetItem(selectHole, out item))
            {
                existHoleItem = true;
            }
            else
            {
                existHoleItem = false;
            }
            Display();
            model.gatherSoulPackRefresh += GatherSoulPackRefresh;
        }
@@ -63,7 +75,7 @@
            var equipCell = cell as GatherSoulEquipCell;
            if (cell.index < equipList.Count)
            {
                equipCell.Display(equipList[cell.index]);
                equipCell.Display(equipList[cell.index], existHoleItem && cell.index == 0);
            }
        }