灵兽最大等级白片
parent
6a777d71c6
commit
a0f81de2ce
|
@ -172,6 +172,7 @@ function this.ShowPokemonInfo()
|
|||
isMaterial = 0
|
||||
local upLvConFig = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.SpiritAnimalLevel,"Quality",pokemonConFig.Quality,"Level",curPokemonData.lv)
|
||||
isLvEnd = curPokemonData.lv >= pokemonConFig.MaxLevel
|
||||
Util.GetGameObject(this.noUpLvText,"Image"):GetComponent("Image").sprite = Util.LoadSprite("r_hero_qingbao-zuigaodengji_zh")
|
||||
this.noUpLvText:SetActive(isLvEnd)
|
||||
this.upLvItemParent:SetActive(not isLvEnd)
|
||||
this.upLvBtn:SetActive(not isLvEnd)
|
||||
|
|
|
@ -77,6 +77,8 @@ function this.OnShowData()
|
|||
if curPokemonData.star < spiritAnimal[curPokemonData.id].MaxStar then
|
||||
nextUpStarConfig = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.SpiritAnimalStar,"Quality", spiritAnimal[curPokemonData.id].Quality, "Star", curPokemonData.star + 1)
|
||||
end
|
||||
|
||||
Util.GetGameObject(this.noUpStarText,"Image"):GetComponent("Image").sprite = Util.LoadSprite("r_hero_qingbao-xingji_zh")
|
||||
if not nextUpStarConfig then
|
||||
this.upStar:SetActive(false)
|
||||
this.noUpStarText:SetActive(true)
|
||||
|
|
Loading…
Reference in New Issue