|
|
@@ -151,19 +151,20 @@ export default class UISystem extends cc.Component {
|
|
|
*/
|
|
|
closeAllUI(except: string[] = ["game", "guide"]) {
|
|
|
for (let panelName in this.curOnPanelDic) {
|
|
|
- if (this.isPanelClosingArr.indexOf(panelName) != -1) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- this.isPanelClosingArr.push(panelName);
|
|
|
-
|
|
|
if (except && except.length > 0 && except.indexOf(panelName) != -1) {
|
|
|
continue;
|
|
|
}
|
|
|
+
|
|
|
let node_panel = this.getCurOnPanel(panelName);
|
|
|
if (!node_panel) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ if (this.isPanelClosingArr.indexOf(panelName) != -1) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ this.isPanelClosingArr.push(panelName);
|
|
|
+
|
|
|
let comp_anim = node_panel.getComponent('EffectOpenAndClose');
|
|
|
if (comp_anim) {
|
|
|
comp_anim.hideEffect(this.destroyNode.bind(this, node_panel, panelName));
|