Commit 21119505 authored by liujiangnan's avatar liujiangnan

feat: 遮罩层更久一点

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