少年修仙传客户端代码仓库
client_Wu Xijin
2019-07-05 943721905db38cc52c77ba03b3cfc5540dbd7278
3335 灵器获取 途径显示
3个文件已修改
31 ■■■■■ 已修改文件
Lua/Gen/SnxxzUIPackModelWrap.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PackModel.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/EquipPlaceCell.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUIPackModelWrap.cs
@@ -635,12 +635,6 @@
            
                
                {
                    int _equipPlace = LuaAPI.xlua_tointeger(L, 2);
                        bool gen_ret = gen_to_be_invoked.IsShowAddEquipByPlace( _equipPlace );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    return 1;
                }
System/KnapSack/Logic/PackModel.cs
@@ -557,18 +557,6 @@
            isUpdatePlayerLv = true;
        }
        public bool IsShowAddEquipByPlace(int equipPlace)
        {
            switch ((RoleEquipType)equipPlace)
            {
                case RoleEquipType.Wing:
                    return true;
                case RoleEquipType.Guard:
                    return true;
                default:
                    return false;
            }
        }
        #endregion
        private void GetItemEventCtrl(ItemModel itemModel, bool showNewItem)
System/KnapSack/New/EquipPlaceCell.cs
@@ -9,7 +9,7 @@
        [SerializeField] ItemCell m_ItemCell;
        PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        RoleEquipType equipType;
@@ -21,15 +21,8 @@
            if (item == null)
            {
                m_ItemCell.gameObject.SetActive(false);
                if (packModel.IsShowAddEquipByPlace((int)equipType))
                {
                    m_AddEquip.gameObject.SetActive(true);
                    m_AddEquip.SetListener(AddEqup);
                }
                else
                {
                    m_AddEquip.gameObject.SetActive(false);
                }
                m_AddEquip.gameObject.SetActive(true);
                m_AddEquip.SetListener(AddEqup);
            }
            else
            {