diff --git a/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua index 7ed36bf20a..66ad2a1fe2 100644 --- a/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua @@ -141,11 +141,6 @@ function HandBookHeroInfoPanel:OnShow() Util.ClearChild(self.rightObj.transform) self:RefreshHeroLive() - if heroConFigData.MaxRank > 5 then - this.laiiyuanBtn.gameObject:SetActive(true) - else - this.laiiyuanBtn.gameObject:SetActive(false) - end if PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 then PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true @@ -213,6 +208,11 @@ function HandBookHeroInfoPanel:SetPanelBg(heroData) this.bgImageList[i]:SetActive(false) end end + if heroConFigData.MaxRank > 5 then + this.laiiyuanBtn.gameObject:SetActive(true) + else + this.laiiyuanBtn.gameObject:SetActive(false) + end end --刷新页签数据