【修行】取消玩家信息界面神印神将头像,练气期预览报错修改

dev_chengFeng
ZhangBiao 2021-05-25 15:50:41 +08:00
parent 1ab094facb
commit d09ff174d2
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ function PracticeStatePreview:OnShow(_parent,_args)
self:SetSingleData(index,go,self.previewData[index])
end)
ForceRebuildLayout(self.GameObject.transform)
self.ScrollView:SetIndex(PracticeManager.PracticeBigLevel > 0 and PracticeManager.PracticeBigLevel - 1 or 1)
self.ScrollView:SetIndex(PracticeManager.PracticeBigLevel)
end
function PracticeStatePreview:SetSingleData(index,_go,_data)

View File

@ -352,7 +352,7 @@ function this.FormationAdapter(teamInfo)
local hero = Util.GetGameObject(item,"hero"):GetComponent("Image")
icon.sprite = this.spLoader:LoadSprite(GetResourcePath(XiuXianSkillConfig[value.id].Icon))
if value.type == 1 then
hero.gameObject:SetActive(true)
hero.gameObject:SetActive(false)--头像太小说不要了
hero.sprite = this.spLoader:LoadSprite(GetSpriteNameByItemId(value.heroTId))
else
hero.gameObject:SetActive(false)