Commit 21119505 authored by liujiangnan's avatar liujiangnan

feat: 遮罩层更久一点

parent abcdcaad
......@@ -1209,7 +1209,7 @@
"__id__": 34
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 55
......@@ -1693,7 +1693,7 @@
"__id__": 35
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 54
......
......@@ -77,6 +77,18 @@ cc.Class({
start() {
this.node.zIndex = 9999;
if (!window.air) {
window.air = {};
}
window.air.hideAirClassLoading = () => {
console.log('汪汪汪');
window.air.onCourseInScreen && window.air.onCourseInScreen(() => {
console.log("***成功调用onCourseInScreen***");
window.air.onCourseInScreen = null;
});
this.hideWaitingLetters();
}
this.showWaitingLetters();
cc.game.addPersistRootNode(this.node);
......@@ -396,6 +408,7 @@ cc.Class({
},
showMenu() {
this.can_click_menu_item_storyBox = false;
const lineBtnShow = cc.find(
"middleLayer/storyBox/menu/menuBase/lineBtnShow"
);
......@@ -410,7 +423,6 @@ cc.Class({
console.log("canvas.width = " + canvas.width);
console.log("canvas.height = " + canvas.height);
this.can_click_menu_item_storyBox = false;
const menuBase = cc.find("middleLayer/storyBox/menu/menuBase");
cc.tween(menuBase)
.to(
......@@ -668,9 +680,6 @@ cc.Class({
cc.audioEngine.stopAll();
cc.director.runScene(scene, null, () => {
console.log("sceneName = " + conf.sceneName);
const canvas = cc.find("Canvas");
const middleLayer = cc.find("middleLayer");
this.hideWaitingLetters();
callback && callback();
if (this.bundleType == "StoryBox") {
this.node.removeComponent(cc.Widget);
......
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