uimanager增加界面判空

dev_chengFeng
ZhangBiao 2020-09-02 13:37:09 +08:00
parent 39e9728561
commit 09fa5b2586
1 changed files with 7 additions and 2 deletions

View File

@ -510,16 +510,21 @@ function UIManager.CloseStackPanel(uiConfig,isDestroy)
local startIndex
for i = #this.stackList, 1,-1 do
local panel = this.stackList[i]
-- LogRed("uiname = "..panel.uiConfig.name)
if panel.uiConfig.type == UIType.FullType then
startIndex = i
break
end
end
--
-- LogRed("startIndex"..startIndex.." #this.stackList"..#this.stackList)
for i = startIndex, #this.stackList do
-- LogPink(i)
local panel = this.stackList[i]
panel.gameObject:SetActive(true)
panel:OpenUI(true)
if panel then
panel.gameObject:SetActive(true)
panel:OpenUI(true)
end
end
else
--回退的第一个打开的窗口若是全屏窗口,则被唤醒