Commit 0e764b76 authored by limingzhe's avatar limingzhe

fix: debug

parent d6d706a2
This diff is collapsed.
...@@ -782,7 +782,10 @@ cc.Class({ ...@@ -782,7 +782,10 @@ cc.Class({
this.initVideo(); this.initVideo();
setTimeout(() => {
this.showComposeBtn();
}, 5000);
}, },
...@@ -1838,7 +1841,10 @@ cc.Class({ ...@@ -1838,7 +1841,10 @@ cc.Class({
this.composeBtn.active = true; this.composeBtn.active = true;
this.composeBtn.parent.active = true; this.composeBtn.parent.active = true;
this.addBtnAppearAnim(this.composeBtn.parent); const videoBg = cc.find("Canvas/hose/video_bg")
this.addBtnAppearAnim(this.composeBtn);
this.playAni('begin', 0); this.playAni('begin', 0);
this.setCurTipAudioUrl(this.data.compose_audio_url); this.setCurTipAudioUrl(this.data.compose_audio_url);
...@@ -2408,14 +2414,14 @@ cc.Class({ ...@@ -2408,14 +2414,14 @@ cc.Class({
composeBtn: null, composeBtn: null,
initComposeBtn() { initComposeBtn() {
this.composeBtn = cc.find('Canvas/house/videoCtrl/composeBtn'); this.composeBtn = cc.find('Canvas/house/composeNode/composeBtn');
this.composeBtn.active = false; this.composeBtn.active = false;
const pos = exchangeNodePos(this.canvas, this.composeBtn); // const pos = exchangeNodePos(this.canvas, this.composeBtn);
this.composeBtn.x = pos.x; // this.composeBtn.x = pos.x;
this.composeBtn.y = pos.y; // this.composeBtn.y = pos.y;
this.composeBtn.parent = this.canvas; // this.composeBtn.parent = this.canvas;
this.composeBtn.zIndex = 15; // this.composeBtn.zIndex = 15;
this.composeBtn.on('touchstart', () => { this.composeBtn.on('touchstart', () => {
if (!this.composeBtn.active) { if (!this.composeBtn.active) {
......
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