tcx_xiyou_yueNan
parent
0794edb257
commit
31d0c376ff
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue