hch
2025-09-05 22c9e9200f01262e0d596fd971e4299cd72d3e1f
0312 优化武将升星显示
6个文件已修改
21 ■■■■ 已修改文件
Main/System/HeroUI/HeroGiftEatSuccessWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroTrainWin.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.OnTeam.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.Reborn.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Utility/ComponentExtersion.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroGiftEatSuccessWin.cs
@@ -58,7 +58,7 @@
        {
            int id = PlayerPropertyConfig.basePerAttrs[i];
            attrPerNameArr[i].text = PlayerPropertyConfig.Get(id).Name;
            nextAttrPerTextArr[i].text = PlayerPropertyConfig.GetFullDescription(id, valuePer);
            nextAttrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer);
            attrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer - hero.qualityConfig.StarAddPer);
        }
Main/System/HeroUI/HeroTrainWin.cs
@@ -596,19 +596,17 @@
        if (hero.heroStar >= HeroUIManager.Instance.GetMaxStarCount(hero.heroId,  hero.Quality))
        {
            starUPBtn.SetInteractable(false);
            starUPBtnText.text = Language.Get("HeroGift7");
            starUPBtn.SetInteractable(false);
        }
        else if (hero.IsFullStar())
        {
            starUPBtn.SetInteractable(true);
            starUPBtn.SetColorful(starUPBtn.GetComponentInChildren<Text>(), true);
            starUPBtn.interactable = true;
            starUPBtnText.text = Language.Get("HeroGift3");
        }
        else
        {
            starUPBtn.SetInteractable(true);
            starUPBtn.SetColorful(starUPBtn.GetComponentInChildren<Text>(), true);
            starUPBtn.interactable = true;
            starUPBtnText.text = Language.Get("HeroGift3");
        }
Main/System/HeroUI/HeroUIManager.OnTeam.cs
@@ -148,7 +148,7 @@
        {
            return heroA.Quality > heroB.Quality ? -1 : 1;
        }
        if (heroA.heroStar != heroA.heroStar)
        if (heroA.heroStar != heroB.heroStar)
        {
            return heroA.heroStar > heroB.heroStar ? -1 : 1;
        }
@@ -295,7 +295,7 @@
        {
            return heroA.Quality > heroB.Quality ? -1 : 1;
        }
        if (heroA.heroStar != heroA.heroStar)
        if (heroA.heroStar != heroB.heroStar)
        {
            return heroA.heroStar > heroB.heroStar ? -1 : 1;
        }
Main/System/HeroUI/HeroUIManager.Reborn.cs
@@ -134,7 +134,7 @@
        {
            return heroA.Quality < heroB.Quality ? -1 : 1;
        }
        if (heroA.heroStar != heroA.heroStar)
        if (heroA.heroStar != heroB.heroStar)
        {
            return heroA.heroStar < heroB.heroStar ? -1 : 1;
        }
Main/System/HeroUI/HeroUIManager.cs
@@ -199,7 +199,7 @@
        {
            return heroA.Quality > heroB.Quality ? -1 : 1;
        }
        if (heroA.heroStar != heroA.heroStar)
        if (heroA.heroStar != heroB.heroStar)
        {
            return heroA.heroStar > heroB.heroStar ? -1 : 1;
        }
Main/Utility/ComponentExtersion.cs
@@ -256,7 +256,8 @@
    }
    // 设置按钮是否可点击,且置灰,默认取第一个文本;图片需用ImageEx组件
    // 设置按钮是否可点击,且取第一个文本组件置灰或置原色
    // 要先设置文本再调用该函数 因为没有改变文本组件的颜色避免颜色被还原,同理恢复可以不用改变颜色改文字即可
    // 更多功能请使用SetColorful
    public static void SetInteractable(this Button _btn, bool _interactable, Text _btnText = null)
    {