Commit 5b864ab0 authored by liujiangnan's avatar liujiangnan

feat: 如果场景正在切换则不能点出对话框

parent 796920a9
...@@ -70,6 +70,9 @@ export default class NewClass extends middleLayerBase { ...@@ -70,6 +70,9 @@ export default class NewClass extends middleLayerBase {
.start(); .start();
} }
async showConfirm(str: string, yesFun: Function = null, noFun: Function = null) { async showConfirm(str: string, yesFun: Function = null, noFun: Function = null) {
if (this.IS_BUNDLE_LOADING) {
return;
}
const tipsLayer = cc.find('middleLayer/confirmLayer'); const tipsLayer = cc.find('middleLayer/confirmLayer');
const label = cc.find('middleLayer/confirmLayer/confirm_bg/label'); const label = cc.find('middleLayer/confirmLayer/confirm_bg/label');
label.getComponent(cc.Label).string = ` ${str} `; label.getComponent(cc.Label).string = ` ${str} `;
...@@ -93,6 +96,9 @@ export default class NewClass extends middleLayerBase { ...@@ -93,6 +96,9 @@ export default class NewClass extends middleLayerBase {
}); });
} }
async showActiveWindow() { async showActiveWindow() {
if (this.IS_BUNDLE_LOADING) {
return;
}
const tipsLayer = cc.find('middleLayer/activeLayer'); const tipsLayer = cc.find('middleLayer/activeLayer');
tipsLayer.active = true; tipsLayer.active = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment