Prechádzať zdrojové kódy

强更隐藏跳过按钮
引导显示时调用关闭所有界面后引导不能关闭问题修复

kaka 4 rokov pred
rodič
commit
9d81b360ca

+ 2 - 1
assets/script/game/module/forceUpdate/ForceUpdate.ts

@@ -28,6 +28,7 @@ export default class ForceUpdate extends cc.Component {
 
 
     start() {
     start() {
         this.setText()
         this.setText()
+        this.btnCancel.active = false;
     }
     }
 
 
     clickDownLoad() {
     clickDownLoad() {
@@ -67,7 +68,7 @@ export default class ForceUpdate extends cc.Component {
                 this.labPro.string = '0%'
                 this.labPro.string = '0%'
 
 
                 this.btnSure.active = true
                 this.btnSure.active = true
-                this.btnCancel.active = true
+                this.btnCancel.active = false
             },
             },
             (bytesReceived, totalBytesReceived, totalBytesExpected) => {
             (bytesReceived, totalBytesReceived, totalBytesExpected) => {
                 let pro = totalBytesReceived / totalBytesExpected
                 let pro = totalBytesReceived / totalBytesExpected

+ 6 - 5
assets/script/mk/system/UISystem.ts

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