Commit 882b5fcd authored by limingzhe's avatar limingzhe

fix: debug 加背景 脚本名修改

parent 6ae92aae
This diff is collapsed.
...@@ -1056,6 +1056,7 @@ cc.Class({ ...@@ -1056,6 +1056,7 @@ cc.Class({
timingEnd() { timingEnd() {
this.recordLayer.active = false; this.recordLayer.active = false;
this.hideBgMask();
this.cleanTimer(); this.cleanTimer();
this.serverStopTest(); this.serverStopTest();
}, },
...@@ -1556,7 +1557,7 @@ cc.Class({ ...@@ -1556,7 +1557,7 @@ cc.Class({
this.playerInfoData = playerData; this.playerInfoData = playerData;
const script = cc.find('Canvas/OP10_LoadingLayer').getComponent('OP10_LoadingLayer'); const script = cc.find('Canvas/OP10_LoadingLayer').getComponent('op_spy_LoadingLayer');
script.setMaxPlayerNumber(this.maxPlayer); script.setMaxPlayerNumber(this.maxPlayer);
script.onLoadFinished(() => { script.onLoadFinished(() => {
if (!this.isOffLine) { if (!this.isOffLine) {
...@@ -1744,6 +1745,8 @@ cc.Class({ ...@@ -1744,6 +1745,8 @@ cc.Class({
bg.scale = this.canvas.height / bg.height; bg.scale = this.canvas.height / bg.height;
this.bg = bg; this.bg = bg;
this.bgMask = cc.find("Canvas/bgMask");
bg.on('touchstart', () => { bg.on('touchstart', () => {
if (!this.isShowSearchIcon || !this.curData) { if (!this.isShowSearchIcon || !this.curData) {
return; return;
...@@ -1959,9 +1962,10 @@ cc.Class({ ...@@ -1959,9 +1962,10 @@ cc.Class({
playStartAnim() { playStartAnim() {
// todo // todo
const anim = cc.find("Canvas/bg/startAnimNode/startAnim"); const anim = cc.find("Canvas/startAnimNode/startAnim");
anim.parent.active = true; anim.parent.active = true;
playDragonBoneAnimation(anim, 'normal', -1); playDragonBoneAnimation(anim, 'normal', -1);
this.showBgMask();
let tipNameUrl; let tipNameUrl;
if (this.isPlayer1) { if (this.isPlayer1) {
...@@ -1979,6 +1983,7 @@ cc.Class({ ...@@ -1979,6 +1983,7 @@ cc.Class({
this.showShake(); this.showShake();
} }
anim.parent.active = false; anim.parent.active = false;
this.hideBgMask();
}); });
...@@ -2029,6 +2034,15 @@ cc.Class({ ...@@ -2029,6 +2034,15 @@ cc.Class({
this.recordLayer.active = true; this.recordLayer.active = true;
this.startRecord(); this.startRecord();
this.showBgMask();
},
showBgMask() {
this.bgMask.active = true;
},
hideBgMask() {
this.bgMask.active = false;
}, },
startRecord() { startRecord() {
......
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