cardelay update
parent
36070bc0c0
commit
a37402d40f
|
@ -91,6 +91,11 @@ function this.SetCardSingleData(go,monsterId,_pos)
|
||||||
|
|
||||||
pro.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))
|
pro.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))
|
||||||
SetCardStars(starGrid,heroConfig.Star)
|
SetCardStars(starGrid,heroConfig.Star)
|
||||||
|
if heroConfig.Star > 9 then
|
||||||
|
Util.GetGameObject(go,"UI_Effect_jinkuang_KaPai").gameObject:SetActive(true)
|
||||||
|
else
|
||||||
|
Util.GetGameObject(go,"UI_Effect_jinkuang_KaPai").gameObject:SetActive(false)
|
||||||
|
end
|
||||||
name.text=heroConfig.ReadingName
|
name.text=heroConfig.ReadingName
|
||||||
end
|
end
|
||||||
--界面关闭时调用(用于子类重写)
|
--界面关闭时调用(用于子类重写)
|
||||||
|
|
|
@ -119,11 +119,6 @@ function this.SingleInfoDataShow(go,data)
|
||||||
Util.GetGameObject(heroGo, "icon"):GetComponent("Image").sprite = Util.LoadSprite(GetResourcePath(curHeroConfig.Icon))
|
Util.GetGameObject(heroGo, "icon"):GetComponent("Image").sprite = Util.LoadSprite(GetResourcePath(curHeroConfig.Icon))
|
||||||
Util.GetGameObject(curHeroGoList[data.teamInfo[i].position], "frame"):GetComponent("Image").sprite = Util.LoadSprite(GetHeroQuantityImageByquality(curHeroConfig.Star))
|
Util.GetGameObject(curHeroGoList[data.teamInfo[i].position], "frame"):GetComponent("Image").sprite = Util.LoadSprite(GetHeroQuantityImageByquality(curHeroConfig.Star))
|
||||||
SetHeroStars(Util.GetGameObject(heroGo, "starGrid"), data.teamInfo[i].star)
|
SetHeroStars(Util.GetGameObject(heroGo, "starGrid"), data.teamInfo[i].star)
|
||||||
if data.teamInfo[i].star > 9 then
|
|
||||||
Util.GetGameObject(go,"UI_Effect_jinkuang_KaPai").gameObject:SetActive(true)
|
|
||||||
else
|
|
||||||
Util.GetGameObject(go,"UI_Effect_jinkuang_KaPai").gameObject:SetActive(false)
|
|
||||||
end
|
|
||||||
Util.GetGameObject(heroGo, "lvbg/levelText"):GetComponent("Text").text=data.teamInfo[i].level
|
Util.GetGameObject(heroGo, "lvbg/levelText"):GetComponent("Text").text=data.teamInfo[i].level
|
||||||
local heroData = {}
|
local heroData = {}
|
||||||
Util.AddOnceClick(Util.GetGameObject(Util.GetGameObject(curHeroGoList[data.teamInfo[i].position], "frame"), "frame"), function()
|
Util.AddOnceClick(Util.GetGameObject(Util.GetGameObject(curHeroGoList[data.teamInfo[i].position], "frame"), "frame"), function()
|
||||||
|
|
Loading…
Reference in New Issue