hch
2025-07-24 82769d5295e83e53ef79c64638829f56fa94b28b
Main/System/HeroUI/HeroListWin.cs
@@ -56,7 +56,7 @@
    public override void Refresh()
    {
        SinglePack singlePack = PackManager.Instance.GetSinglePack(PackType.Item);
        SinglePack singlePack = PackManager.Instance.GetSinglePack(PackType.Hero);
        if (singlePack == null || singlePack.GetAllItems().Count <= 0)
        {
            heroListEmpty.SetActive(true);
@@ -71,8 +71,10 @@
        //上阵属性
        for (int i = 0; i < attrOnList.Count; i++)
        {
            attrOnList[i].text = PlayerPropertyConfig.GetFullDescription(new Int2 (PlayerPropertyConfig.baseAttrs[i], 1 ));
            attrOnList[i].text = PlayerPropertyConfig.GetFullDescription(new Int2(PlayerPropertyConfig.baseAttrs[i], 1));
        }
        RefreshPakCount(PackType.Hero, 0, 0);
    }
    void OnRefreshCell(ScrollerDataType type, CellView cell)
@@ -96,13 +98,15 @@
    void RefreshPakCount(PackType type, int index, int itemID)
    {
        SinglePack singlePack = PackManager.Instance.GetSinglePack(PackType.Item);
        if (type != PackType.Hero)
            return;
        SinglePack singlePack = PackManager.Instance.GetSinglePack(PackType.Hero);
        if (singlePack == null)
            return;
        int count = singlePack.GetAllItems().Count;
        heroPackText.text =  UIHelper.AppendColor(count > singlePack.unlockedGridCount ? TextColType.Red : TextColType.NavyBrown,
        heroPackText.text = UIHelper.AppendColor(count > singlePack.unlockedGridCount ? TextColType.Red : TextColType.NavyBrown,
                            string.Format("{0}/{1}", count, singlePack.unlockedGridCount));
        
    }