玉虚论道编队修改
parent
024b684999
commit
67c6e7d92d
|
|
@ -167,13 +167,21 @@ function WorldArenaMyTeamPanel:SetSingleFormation(go,data,index)
|
|||
local heroData=HeroManager.GetSingleHeroData(heroTid)
|
||||
self.Heros[index][hero.position].hero:SetActive(true)
|
||||
local star,starType = heroData.GetStar(1)
|
||||
SetHeroStars(self.spLoader, self.Heros[index][hero.position].starGrid, star,starType)
|
||||
local starScale = -15
|
||||
local starSize = Vector2.New(32,32)
|
||||
if starType == 3 then
|
||||
starScale = -16
|
||||
starSize = Vector2.New(0.8,-15)
|
||||
elseif starType == 2 then
|
||||
starSize = Vector2.New(48,48)
|
||||
end
|
||||
SetHeroStars(self.spLoader, self.Heros[index][hero.position].starGrid, star,starType,starSize,starScale)
|
||||
Util.SetParticleSortLayer(self.Heros[index][hero.position].starGrid,self.sortingOrder + 1)
|
||||
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroData.id)
|
||||
allPower=allPower+heroData.warPower
|
||||
self.Heros[index][hero.position].proIconsprite = self.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))
|
||||
self.Heros[index][hero.position].levelText.text = heroData.lv
|
||||
self.Heros[index][hero.position].framesprite = self.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality,heroData.star))
|
||||
self.Heros[index][hero.position].frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality,heroData.star))
|
||||
SetHeroIcon(self.spLoader, hero,self.Heros[index][hero.position].icon,heroConfig)
|
||||
local heroData = {}
|
||||
Util.AddOnceClick(self.Heros[index][hero.position].icon.gameObject, function()
|
||||
|
|
|
|||
Loading…
Reference in New Issue