uimanager增加界面判空
parent
39e9728561
commit
09fa5b2586
|
|
@ -510,16 +510,21 @@ function UIManager.CloseStackPanel(uiConfig,isDestroy)
|
||||||
local startIndex
|
local startIndex
|
||||||
for i = #this.stackList, 1,-1 do
|
for i = #this.stackList, 1,-1 do
|
||||||
local panel = this.stackList[i]
|
local panel = this.stackList[i]
|
||||||
|
-- LogRed("uiname = "..panel.uiConfig.name)
|
||||||
if panel.uiConfig.type == UIType.FullType then
|
if panel.uiConfig.type == UIType.FullType then
|
||||||
startIndex = i
|
startIndex = i
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
|
-- LogRed("startIndex"..startIndex.." #this.stackList"..#this.stackList)
|
||||||
for i = startIndex, #this.stackList do
|
for i = startIndex, #this.stackList do
|
||||||
|
-- LogPink(i)
|
||||||
local panel = this.stackList[i]
|
local panel = this.stackList[i]
|
||||||
panel.gameObject:SetActive(true)
|
if panel then
|
||||||
panel:OpenUI(true)
|
panel.gameObject:SetActive(true)
|
||||||
|
panel:OpenUI(true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
--回退的第一个打开的窗口若是全屏窗口,则被唤醒
|
--回退的第一个打开的窗口若是全屏窗口,则被唤醒
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue