少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-26 bf0de7548b51daaaed7641c98cefd4ad9628ae9c
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
27 ■■■■■ 已修改文件
System/FairyAu/ExchangeEquipCell.cs 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FairyAu/ExchangeEquipCell.cs
@@ -29,20 +29,29 @@
        bool bIsChose = m_Model.ChoseEquips.Contains(m_ItemModel);
        m_ChoseImg.gameObject.SetActive(bIsChose);
        m_ItemCell.Init(item, true);
        m_ItemCell.button.RemoveAllListeners();
        //m_ItemCell.button.RemoveAllListeners();
        
        m_ItemCell.button.AddListener(() =>
        {
            m_Model.EquipCellClick(m_ItemModel,
                ()=>
                {
                    m_ChoseImg.gameObject.SetActive(m_Model.ChoseEquips.Contains(m_ItemModel));
                });
        });
        //m_ItemCell.button.AddListener(() =>
        //{
        //    m_Model.EquipCellClick(m_ItemModel,
        //        ()=>
        //        {
        //            m_ChoseImg.gameObject.SetActive(m_Model.ChoseEquips.Contains(m_ItemModel));
        //        });
        //});
        if(m_LongBtn == null)
        {
            m_LongBtn = m_ItemCell.itemIcon.AddMissingComponent<LongPressButton>();           
        }
        m_LongBtn.onClick.RemoveAllListeners();
        m_LongBtn.AddListener(() =>
        {
            m_Model.EquipCellClick(m_ItemModel,
                () =>
                {
                    m_ChoseImg.gameObject.SetActive(m_Model.ChoseEquips.Contains(m_ItemModel));
                });
        });
        m_LongBtn.onPress.RemoveAllListeners();
        m_LongBtn.onPress.AddListener(()=>ItemTipUtility.Show(m_ItemModel.guid, false));
        m_LongBtn.targetGraphic = m_ItemCell.itemIcon;