【灵兽系统】 修改技能显示
parent
b330049037
commit
232e9b718c
File diff suppressed because it is too large
Load Diff
|
|
@ -51,7 +51,7 @@ function this.ShowPokemonList()
|
|||
pokemonSkillDataList = {}
|
||||
for i = 1, #allSkillIds do
|
||||
table.insert(pokemonSkillDataList,{star = allSkillIds[i][1],conFig = ConfigManager.GetConfigData(ConfigName.SpiritAnimalSkill,allSkillIds[i][2])})
|
||||
LogPink("allSkillIds[i][1] == pokemonStar "..allSkillIds[i][1] .." ".. pokemonStar)
|
||||
-- LogPink("allSkillIds[i][1] == pokemonStar "..allSkillIds[i][1] .." ".. pokemonStar)
|
||||
if allSkillIds[i][1] == pokemonStar then
|
||||
curStarIndex = allSkillIds[i][1]
|
||||
end
|
||||
|
|
@ -59,8 +59,8 @@ function this.ShowPokemonList()
|
|||
this.ScrollView:SetData(pokemonSkillDataList, function(index, go)
|
||||
this.SingPokemonDataShow(go, pokemonSkillDataList[index])
|
||||
end)
|
||||
LogPink("curStarIndex "..curStarIndex)
|
||||
-- this.ScrollView:SetIndex(curStarIndex)
|
||||
-- LogPink("curStarIndex "..curStarIndex)
|
||||
this.ScrollView:SetIndex((curStarIndex + 1))
|
||||
end
|
||||
--478A5F B9AC97 string.format("<color=#FF0000FF>%s/%s</color>",PrintWanNum2(curMaterialBagNum),PrintWanNum2(upStarMaterialsData[i][2]))
|
||||
function this.SingPokemonDataShow(go,data)
|
||||
|
|
|
|||
|
|
@ -265,8 +265,12 @@ function this.SingleHeroDataShow(go,_heroData,isGray)
|
|||
local _go = go
|
||||
Util.GetGameObject(_go.transform, "frame"):GetComponent("Image").sprite = Util.LoadSprite(heroData.frame)
|
||||
if heroData.ischip==1 then
|
||||
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = heroData.num
|
||||
Util.GetGameObject(_go.transform, "lv"):SetActive(false)
|
||||
Util.GetGameObject(_go.transform, "num"):SetActive(true)
|
||||
Util.GetGameObject(_go.transform, "num"):GetComponent("Text").text = heroData.num
|
||||
else
|
||||
Util.GetGameObject(_go.transform, "lv"):SetActive(true)
|
||||
Util.GetGameObject(_go.transform, "num"):SetActive(false)
|
||||
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = heroData.lv
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue