【神魂】头像框错误修改

dev_chengFeng
ZhangBiao 2021-11-15 16:58:49 +08:00
parent d815fbb69f
commit 2c0032b829
1 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,8 @@ function RoleGodSoulLayout:SetHeroData(heroGo,heroData,isCur)
starScale = -13.77
elseif starType == 2 then
starSize = Vector2.New(60,60)
end
end
frame.sprite = self.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,self.star))
else
if starType == 3 then
starSize = Vector2.New(0.65,-29.2)
@ -144,8 +145,8 @@ function RoleGodSoulLayout:SetHeroData(heroGo,heroData,isCur)
elseif starType == 2 then
starSize = Vector2.New(34.492,32.767)
end
frame.sprite = self.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
end
frame.sprite = self.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,self.star))
proIcon.sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(heroData.heroConfig.PropertyName))
SetHeroIcon(self.spLoader,heroData,icon,heroData.heroConfig)
SetHeroStars(self.spLoader, starGrid, star,starType,starSize,starScale)
@ -269,7 +270,6 @@ function RoleGodSoulLayout:UpdataSingleGod2(index)
local tempHeroData = HeroManager.GetSingleHeroData(self.gridList[index].upHeroDataList[i])
self:SetHeroData(self.gridList[index].upHeroList[i].go,tempHeroData,false)
Util.SetGray(self.gridList[index].upHeroList[i].icon.gameObject,false)
self.gridList[index].upHeroList[i].frame.sprite = self.spLoader:LoadSprite(GetHeroQuantityImageByquality(self.godDatas[index][i].star,self.godDatas[index][i].star))
else
self.gridList[index].upHeroList[i].frame.sprite = self.spLoader:LoadSprite(GetHeroQuantityImageByquality(self.godDatas[index][i].star,self.godDatas[index][i].star))
SetHeroStars(self.spLoader,self.gridList[index].upHeroList[i].star,self.godDatas[index][i].star,1,Vector2.New(43.081,40.927))