TCX_LongZhu
parent
a9b20b7405
commit
cdb6218ccb
|
@ -42,7 +42,7 @@ function HandBookHeroInfoPanel:InitComponent()
|
|||
this.spLoader = SpriteLoader.New()
|
||||
self.btnBack = Util.GetGameObject(self.transform, "btnBack")
|
||||
this.bgImageList = {}
|
||||
for i = 1, 4 do
|
||||
for i = 1, 5 do
|
||||
this.bgImageList[i] = Util.GetGameObject(self.transform, "bg/di ("..i..")")
|
||||
end
|
||||
self.curObj= Util.GetGameObject(self.transform, "curObj")
|
||||
|
@ -229,7 +229,7 @@ function HandBookHeroInfoPanel:UpdateLiveList()
|
|||
end
|
||||
|
||||
function HandBookHeroInfoPanel:SetPanelBg(heroData)
|
||||
for i = 1, 4 do
|
||||
for i = 1, 5 do
|
||||
if heroData.PropertyName == i then
|
||||
this.bgImageList[i]:SetActive(true)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue