TCX_LongZhu
DESKTOP-MMO982B\User 2025-03-24 20:57:48 +08:00
parent a9b20b7405
commit cdb6218ccb
1 changed files with 2 additions and 2 deletions

View File

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