| | |
| | | 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;
|
| | |
| | | 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)
|
| | | {
|