| | |
| | | var guid = PackManager.Instance.GetSinglePack(PackType.Item).itemGuidList[index];
|
| | | if (string.IsNullOrEmpty(guid))
|
| | | return;
|
| | | itemCell.Init(PackManager.Instance.GetItemByGuid(guid));
|
| | |
|
| | | var item = PackManager.Instance.GetItemByGuid(guid);
|
| | | ulong count = 0;
|
| | | if (GeneralDefine.itemMoneyCountDict.ContainsKey(item.itemId))
|
| | | {
|
| | | //展示货币数量的物品
|
| | | count = UIHelper.GetMoneyCnt(GeneralDefine.itemMoneyCountDict[item.itemId]);
|
| | | }
|
| | | else
|
| | | {
|
| | | count = (ulong)item.count;
|
| | | }
|
| | | itemCell.Init(new ItemCellModel(item.itemId, false, count));
|
| | | itemCell.button.AddListener(()=>
|
| | | {
|
| | | ItemTipUtility.Show(guid);
|