| | |
| | | var config = ItemConfig.Get(model.GetReplaceId(shopInfo.ID, shopInfo.ItemID));
|
| | | if (config != null)
|
| | | {
|
| | | ItemCellModel cellModel = new ItemCellModel(config.ID, true, 0, shopInfo.IsBind, "", PackType.Deleted, true);
|
| | | ItemCellModel cellModel = new ItemCellModel(config.ID, true, 0,"", PackType.Deleted, true);
|
| | | shopItemCell.itemCell.Init(cellModel);
|
| | | shopItemCell.itemNameText.text = config.ItemName;
|
| | | shopItemCell.coinsIcon.SetIconWithMoneyType(shopInfo.MoneyType);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | var remainNumDescription = remainNum > 0 ? remainNum.ToString() : UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString());
|
| | | var remainNumDescription = remainNum > 0 ? remainNum.ToString() : UIHelper.AppendColor(TextColType.Red, remainNum.ToString());
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(remainNumDescription, "/", canBuyCnt);
|
| | | }
|
| | |
|