yyl
2025-10-31 39001a600fcae2bcf27c225df8752d75fb92fef4
Main/System/KnapSack/Logic/PackGirdCell.cs
@@ -15,22 +15,21 @@
            return;
        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(()=>
        itemCell.Init(item);
        itemCell.button.AddListener(() =>
        {
            ItemTipUtility.Show(guid);
        });
        redPoint.SetActive(false);
        var chestConfig = ChestsConfig.Get(item.itemId);
        if (chestConfig != null && chestConfig.ExpendItemID == 0 && chestConfig.OpenMoney == 0)
        {
            redPoint.SetActive(true);
        }
        else
        {
            redPoint.SetActive(false);
        }
    }
}