灵兽最大等级白片

dev_chengFeng
zhangqiang 2021-03-05 12:15:39 +08:00
parent 6a777d71c6
commit a0f81de2ce
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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)