英雄图鉴 法宝天赋按钮显示修改

onepiece_demo_arena
wangzhenxing 2024-01-17 19:30:40 +08:00
parent 61a039fcf0
commit a01665e2e0
1 changed files with 10 additions and 3 deletions

View File

@ -84,9 +84,11 @@ function HandBookHeroInfoPanel:InitComponent()
this.godSoulBtnIcon=Util.GetGameObject(this.godSoulBtn,"icon"):GetComponent("Image")
self.talismanBtn=Util.GetGameObject(self.gameObject,"TalismanBtn/panel")
self.talismanObj=Util.GetGameObject(self.gameObject,"TalismanBtn")
--self.talismanIcon=Util.GetGameObject(self.gameObject,"TalismanBtn/Icon"):GetComponent("Image")
self.talentBtn=Util.GetGameObject(self.gameObject,"talentBtn/btn")
self.talentObj=Util.GetGameObject(self.gameObject,"talentBtn")
self.talentProgress=Util.GetGameObject(self.gameObject,"talentBtn/btn/progress"):GetComponent("Text")
self.pizhiImg=Util.GetGameObject(self.gameObject,"pizhiImg"):GetComponent("Image")
end
@ -292,9 +294,9 @@ function this:UpdateHeroInfoData()
this.posBtn.gameObject:SetActive(heroConFigData.ShowHeroLocation==1)
this.posBtn.gameObject:SetActive(false)
if heroConFigData.EquipTalismana then
self.talismanBtn.gameObject:SetActive(true)
self.talismanObj.gameObject:SetActive(true)
else
self.talismanBtn.gameObject:SetActive(false)
self.talismanObj.gameObject:SetActive(false)
end
-- if heroConFigData.EquipTalismana~=nil then
@ -320,9 +322,14 @@ function this:UpdateHeroInfoData()
-- self.talentBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite(talentBtnImage)
local OpenPassiveSkillRules = heroStar >= HeroManager.awakeNextStarIndex and heroConFigData.Awaken or heroConFigData.OpenPassiveSkillRules
OpenPassiveSkillRules=GetPassiveByMaxStar(heroConFigData,OpenPassiveSkillRules)
if OpenPassiveSkillRules then
LogError("#OpenPassiveSkillRules=================="..#OpenPassiveSkillRules)
if OpenPassiveSkillRules and #OpenPassiveSkillRules>0 then
local openlists,compoundOpenNum,compoundNum = HeroManager.GetAllPassiveSkillIds(heroConFigData,breakId,upStarId)
self.talentProgress.text = #openlists - compoundOpenNum .."/"..#OpenPassiveSkillRules - compoundNum
self.talentObj:SetActive(true)
else
self.talentObj:SetActive(false)
end
Util.AddOnceClick(self.talentBtn,function()
if heroStar==11 then