From 31d0c376ff524462aa09651f272bab23f3060b7f Mon Sep 17 00:00:00 2001 From: "DESKTOP-MMO982B\\User" <752966621@qq.com> Date: Tue, 23 Jun 2026 13:52:11 +0800 Subject: [PATCH] 1 --- .../~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua index d176bb0fe1..fe6b5b7328 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua @@ -215,6 +215,7 @@ function SpecailTrainingInfoPopup:SetSingleData(index, _go, _data) curExp = self._curHerodata.HeroTraining.defenseExp Text.text = Language[12787] end + local show = false for j = 1, #tAtt do local str1, str2 = HeroManager.GetAttSingleText(tAtt[j][1], tAtt[j][2]); if not singleTextList[j] then @@ -225,6 +226,9 @@ function SpecailTrainingInfoPopup:SetSingleData(index, _go, _data) end singleTextList[j]:GetComponent("Text").text = GetLanguageStrById(str1) .. str2 singleTextList[j]:SetActive(true) + if tAtt[j][2] ~= 0 then + show = true + end end if tData.Level > curLevel then curExp = 0 @@ -251,7 +255,7 @@ function SpecailTrainingInfoPopup:SetSingleData(index, _go, _data) curExp, trainExp) -- ForceRebuildLayout( singleAttList[i][1].transform) - singleAttList[i][1]:SetActive(tAtt[i][2]~=0) + singleAttList[i][1]:SetActive(show) end local activeIsOpen = false