许愿神将边框修改
parent
2142bc452b
commit
d6521af965
|
@ -140,7 +140,7 @@ end
|
|||
function this:ShowSingleHero(go,data,index)
|
||||
local heroData = heroConfig[data.Reward[1]]
|
||||
self.itemList[self.curSelect][index] = go
|
||||
Util.GetGameObject(go, "frame"):GetComponent("Image").sprite = self.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.Quality,heroData.Star))
|
||||
Util.GetGameObject(go, "frame"):GetComponent("Image").sprite = self.spLoader:LoadSprite("t_tongyong_topkaung")
|
||||
Util.GetGameObject(go, "icon"):GetComponent("Image").sprite = self.spLoader:LoadSprite(GetResourcePath(heroData.Icon))
|
||||
Util.GetGameObject(go, "proIcon"):GetComponent("Image").sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(heroData.PropertyName))
|
||||
Util.GetGameObject(go, "name"):GetComponent("Text").text = heroData.ReadingName
|
||||
|
|
|
@ -122,20 +122,22 @@ function this.SingleHeroDataShow(go,_heroData,_index)
|
|||
local choosed = Util.GetGameObject(_go.transform, "choosed")
|
||||
local cardclickBtn = Util.GetGameObject(_go.transform, "icon")
|
||||
|
||||
if itemType ~= 5 then
|
||||
frame.sprite = this.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.Quality,heroData.Star))
|
||||
if itemType ~= 5 then
|
||||
name.text = SubString2(GetLanguageStrById(heroData.ReadingName),8)
|
||||
icon.sprite = this.spLoader:LoadSprite(artResourcesConfig[heroData.Icon].Name)
|
||||
proIcon.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.PropertyName))
|
||||
SetHeroStars(this.spLoader, starGrid, heroData.Star,1,nil,-15)
|
||||
else
|
||||
frame.sprite = this.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.Quantity1))
|
||||
name.text = SubString2(GetLanguageStrById(heroData.Name),8)
|
||||
icon.sprite = this.spLoader:LoadSprite(artResourcesConfig[heroData.ResourceID].Name)
|
||||
proIcon.gameObject:SetActive(false)
|
||||
starGrid:SetActive(false)
|
||||
end
|
||||
|
||||
if curPage == 5 then
|
||||
frame.sprite = this.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.Quality,heroData.Star))
|
||||
else
|
||||
frame.sprite = this.spLoader:LoadSprite("t_tongyong_topkaung")
|
||||
end
|
||||
this.choosedList[go] = choosed
|
||||
this.choosedList[go]:SetActive( heroData.Id==currHeroId)
|
||||
|
||||
|
|
Loading…
Reference in New Issue