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