【灵兽信息】未获得的灵兽查看信息增加技能详细查看和等级信息

dev_chengFeng
zhangqiang 2021-08-13 10:31:53 +08:00
parent 29c9ed6074
commit edcd105a68
1 changed files with 9 additions and 4 deletions

View File

@ -20,6 +20,7 @@ function PokemonGetInfoPopup:InitComponent()
proList[i] = Util.GetGameObject(self.transform,"bg/PokemonInfo/pro/singlePro ("..i..")")
end
this.skillLvGo=Util.GetGameObject(self.transform,"bg/PokemonInfo/skill/skillImage")
this.skillName=Util.GetGameObject(self.transform,"bg/PokemonInfo/skill/nameText"):GetComponent("Text")
this.skillLv=Util.GetGameObject(self.transform,"bg/PokemonInfo/skill/skillImage/skillLv"):GetComponent("Text")
this.skillIcon=Util.GetGameObject(self.transform,"bg/PokemonInfo/skill/icon"):GetComponent("Image")
@ -69,7 +70,6 @@ function this.GetShowPanelData()
PokemonManager.SetHeroStars(this.spLoader, this.starGrid, pokemonBackData.star,2,Vector2.New(60,60))
--属性
local allAddProVal=PokemonManager.GetSinglePokemonAddProDataByLvAndStar(pokemonBackData.tempId,pokemonBackData.level,pokemonBackData.star)
proList[0]:SetActive(true)
Util.GetGameObject(proList[0].transform,"proName"):GetComponent("Text").text =Language[10453]
Util.GetGameObject(proList[0].transform,"proValue"):GetComponent("Text").text = pokemonBackData.level
Util.GetGameObject(proList[0].transform,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_jinengdian05")
@ -96,6 +96,7 @@ function this.GetShowPanelData()
end
local curSkillConFig = ConfigManager.GetConfigData(ConfigName.SpiritAnimalSkill,curSkillId)
this.skillName.text = GetLanguageStrById(curSkillConFig.Name)
this.skillLvGo:SetActive(true)
this.skillLv.text = curSkillConFig.Level
this.skillIcon.sprite = this.spLoader:LoadSprite(GetResourcePath(curSkillConFig.Icon))
Util.AddOnceClick(this.skillBtn, function()
@ -111,7 +112,9 @@ function this.NoGetShowPanelData()
PokemonManager.SetHeroStars(this.spLoader, this.starGrid, 0,2,Vector2.New(60,60))
--属性
local allAddProVal = PokemonManager.GetSinglePokemonAddProDataBySid(pokemonSid) --this.CalculateHeroAllProValList(heroSData,heroStar,heroStar ~= heroSData.Star)
proList[0]:SetActive(false)
Util.GetGameObject(proList[0].transform,"proName"):GetComponent("Text").text =Language[10453]
Util.GetGameObject(proList[0].transform,"proValue"):GetComponent("Text").text = "1/"..pokemonSData.MaxLevel
Util.GetGameObject(proList[0].transform,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_jinengdian05")
local index = 0
for key, value in pairs(allAddProVal) do
index = index + 1
@ -135,10 +138,12 @@ function this.NoGetShowPanelData()
end
local curSkillConFig = ConfigManager.GetConfigData(ConfigName.SpiritAnimalSkill,curSkillId)
this.skillName.text = GetLanguageStrById(curSkillConFig.Name)
this.skillLv.text = curSkillConFig.Level
this.skillLvGo:SetActive(false)
-- this.skillLv.text = curSkillConFig.Level
this.skillIcon.sprite = this.spLoader:LoadSprite(GetResourcePath(curSkillConFig.Icon))
Util.AddOnceClick(this.skillBtn, function()
UIManager.OpenPanel(UIName.PokemonSkillInfoPopup,pokemonSid,1,0)
-- UIManager.OpenPanel(UIName.PokemonSkillInfoPopup,pokemonSid,1,0)
UIManager.OpenPanel(UIName.PokemonAllSkillInfoPopup,pokemonSid,1,0)
end)
end