uimanager增加界面判空
parent
39e9728561
commit
09fa5b2586
|
|
@ -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
|
||||
--回退的第一个打开的窗口若是全屏窗口,则被唤醒
|
||||
|
|
|
|||
Loading…
Reference in New Issue