parent
a6c2a99bbb
commit
51003c0c8c
|
@ -152,6 +152,7 @@ function this.OnShowData()
|
||||||
table.insert(upStarMaterialsData,curUpStarConfig.ConsumeRes[i])
|
table.insert(upStarMaterialsData,curUpStarConfig.ConsumeRes[i])
|
||||||
end
|
end
|
||||||
isUpStarMaterials = 0
|
isUpStarMaterials = 0
|
||||||
|
curUpStarSelectPokemonData = {}
|
||||||
for i = 1, #upStarMaterialsPre do
|
for i = 1, #upStarMaterialsPre do
|
||||||
local itemParent = Util.GetGameObject(upStarMaterialsPre[i],"itemParent")
|
local itemParent = Util.GetGameObject(upStarMaterialsPre[i],"itemParent")
|
||||||
local num = Util.GetGameObject(upStarMaterialsPre[i],"num"):GetComponent("Text")
|
local num = Util.GetGameObject(upStarMaterialsPre[i],"num"):GetComponent("Text")
|
||||||
|
@ -162,9 +163,10 @@ function this.OnShowData()
|
||||||
SubUIManager.Open(SubUIConfig.ItemView, itemParent.transform):OnOpen(false, {configMaterialId,0}, 1.3)
|
SubUIManager.Open(SubUIConfig.ItemView, itemParent.transform):OnOpen(false, {configMaterialId,0}, 1.3)
|
||||||
local curMaterialBagNum = 0
|
local curMaterialBagNum = 0
|
||||||
if spiritAnimal[configMaterialId] then--需要的灵兽
|
if spiritAnimal[configMaterialId] then--需要的灵兽
|
||||||
curUpStarSelectPokemonData = {}
|
--curUpStarSelectPokemonData = {}
|
||||||
local NoUpLvPokemonData = PokemonManager.GetNoUpLvPokemonData(curPokemonData.id,curPokemonData.dynamicId)
|
local NoUpLvPokemonData = PokemonManager.GetNoUpLvPokemonData(curPokemonData.id,curPokemonData.dynamicId)
|
||||||
curMaterialBagNum = LengthOfTable(NoUpLvPokemonData)
|
curMaterialBagNum = LengthOfTable(NoUpLvPokemonData)
|
||||||
|
|
||||||
for i = 1, #NoUpLvPokemonData do
|
for i = 1, #NoUpLvPokemonData do
|
||||||
if i <= configMaterialNum then
|
if i <= configMaterialNum then
|
||||||
-- LogPink("NoUpLvPokemonData[i].dynamicId "..NoUpLvPokemonData[i].dynamicId)
|
-- LogPink("NoUpLvPokemonData[i].dynamicId "..NoUpLvPokemonData[i].dynamicId)
|
||||||
|
|
Loading…
Reference in New Issue