隐藏不显示的预设
parent
65c09118ed
commit
8b55bf1dc1
|
|
@ -90,6 +90,10 @@ function this:OnShow(_parent,...)
|
||||||
return a.sort < b.sort
|
return a.sort < b.sort
|
||||||
end)
|
end)
|
||||||
local index = 0
|
local index = 0
|
||||||
|
for k,m in pairs(itemList) do
|
||||||
|
itemList[k].item.gameObject:SetActive(false)
|
||||||
|
end
|
||||||
|
|
||||||
for k,m in pairs(data) do
|
for k,m in pairs(data) do
|
||||||
index = index + 1
|
index = index + 1
|
||||||
if not itemList[k] then
|
if not itemList[k] then
|
||||||
|
|
@ -100,6 +104,7 @@ function this:OnShow(_parent,...)
|
||||||
itemList[k].k[2] = Util.GetGameObject(itemList[k].item, "k2")
|
itemList[k].k[2] = Util.GetGameObject(itemList[k].item, "k2")
|
||||||
itemList[k].k[3] = Util.GetGameObject(itemList[k].item, "k3")
|
itemList[k].k[3] = Util.GetGameObject(itemList[k].item, "k3")
|
||||||
end
|
end
|
||||||
|
itemList[k].item.gameObject:SetActive(true)
|
||||||
if index == LengthOfTable(data) then
|
if index == LengthOfTable(data) then
|
||||||
Util.GetGameObject(itemList[k].item, "Image (4)").gameObject:SetActive(false)
|
Util.GetGameObject(itemList[k].item, "Image (4)").gameObject:SetActive(false)
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue