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