tcx_xiyou_yueNan
DESKTOP-MMO982B\User 2026-06-23 13:52:11 +08:00
parent 0794edb257
commit 31d0c376ff
1 changed files with 5 additions and 1 deletions

View File

@ -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