少年修仙传客户端代码仓库
client_Zxw
2019-01-28 f47ea60f59e0b2b8601583351e269151237c6708
System/Compose/New/ComposeMatCell.cs
@@ -36,7 +36,8 @@
        public void SetDisplay(ItemCompoundConfig _itemCompound,NeedMatType _matType,bool isLock,string des = "", int _itemId = 0,int _itemIndex = -1)
        {
            this.itemCompound = _itemCompound;
            this.itemModel = playerPack.GetItemModelByIndex(PackType.rptItem, _itemIndex);
            var packType = composeModel.GetPackTypeByMakerId(itemCompound.makeID);
            this.itemModel = playerPack.GetItemModelByIndex(packType, _itemIndex);
            this.matType = _matType;
            this.itemId = _itemId;
            matDes = des;
@@ -98,7 +99,8 @@
                case NeedMatType.fixedItem:
                    int needCount = 0;
                    TryGetCountById(out needCount);
                    int haveCount = playerPack.GetItemCountByID(PackType.rptItem, itemId);
                    var packType = composeModel.GetPackTypeByMakerId(itemCompound.makeID);
                    int haveCount = playerPack.GetItemCountByID(packType, itemId);
                    itemCell.countText.gameObject.SetActive(true);
                    if (haveCount >= needCount)
                    {