图鉴英雄品质图片显示修改

onepiece_demo_arena
wangzhenxing 2024-01-17 20:01:11 +08:00
parent a01665e2e0
commit 33d6bab82f
2 changed files with 4 additions and 2 deletions

View File

@ -264,7 +264,9 @@ function this:UpdateHeroInfoData()
--定位描述相关
heroStar=heroConFigData.MaxRank
--self.pizhiImg.sprite=this.spLoader:LoadSprite(GetHeroQualityStr(heroConFigData.Natural))
self.pizhiImg.sprite=this.spLoader:LoadSprite(GetHeroQualityStr(_curStar))
--self.pizhiImg.sprite=this.spLoader:LoadSprite(GetHeroQualityStr(_curStar))
self.pizhiImg.sprite=this.spLoader:LoadSprite(GetHeroHandBookNaturalImg(heroConFigData.Natural))
self.pizhiImg:SetNativeSize()
if _CurPageIndex == RoleInfoPanelIndex.pifu then
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.HeroSkin,"HeroId",heroConFigData.Id)

View File

@ -937,7 +937,7 @@ function this:UpdateHeroInfoData()
end
this.tianfuClick:GetComponent("Image").sprite = this.spLoader:LoadSprite("UI_hz_shenjiang_36")
LogError("breakid=="..curHeroData.breakId.." upstarid=="..curHeroData.upStarId)
if OpenPassiveSkillRules then
if OpenPassiveSkillRules and #OpenPassiveSkillRules>0 then
this.tianfuBtn:SetActive(true)
local openlists,compoundOpenNum,compoundNum,allUpStarOpenData = HeroManager.GetAllPassiveSkillIds(curHeroData.heroConfig,curHeroData.breakId,curHeroData.upStarId)
this.tianfuInfo.text = #openlists - compoundOpenNum .."/"..#OpenPassiveSkillRules - compoundNum