From 8b55bf1dc18c5725956e4907a5de8a724af1f587 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 18 Jun 2021 11:03:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=A2=84=E8=AE=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GeneralPanel/View/GeneralBigPopup_JinJieYuLan.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_JinJieYuLan.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_JinJieYuLan.lua index 603040b8c8..53a5280c39 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_JinJieYuLan.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_JinJieYuLan.lua @@ -90,6 +90,10 @@ function this:OnShow(_parent,...) return a.sort < b.sort end) local index = 0 + for k,m in pairs(itemList) do + itemList[k].item.gameObject:SetActive(false) + end + for k,m in pairs(data) do index = index + 1 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[3] = Util.GetGameObject(itemList[k].item, "k3") end + itemList[k].item.gameObject:SetActive(true) if index == LengthOfTable(data) then Util.GetGameObject(itemList[k].item, "Image (4)").gameObject:SetActive(false) else