Commit 166527ce authored by limingzhe's avatar limingzhe

fix: debug

parent a51eee09
......@@ -1231,7 +1231,7 @@ cc.Class({
this.initVideoNode();
this.startTiming();
......@@ -1263,10 +1263,7 @@ cc.Class({
if (script.showTipRemoveCard) {
script.showTipRemoveCard(() => {
this.checkVideoCanPlay();
// this.startTesting();
// this.startTiming();
this.startTesting();
})
}
......@@ -1279,7 +1276,7 @@ cc.Class({
}
})
} else {
this.checkVideoCanPlay();
}
},
......@@ -1433,11 +1430,10 @@ cc.Class({
const quesBg = getSprNode("ques_bg");
const quesBgSpr = quesBg.getComponent(cc.Sprite);
quesBgSpr.type = cc.Sprite.Type.SLICED;
this.bgLayer.addChild(quesBg, 5);
// this.bgLayer.addChild(quesBg, 5);
quesBg.y = this.canvas.height / 5;
this.quesPanel = quesBg;
quesBg.opacity = 0;
quesBg.baseW = quesBg.width;
......@@ -1641,9 +1637,16 @@ cc.Class({
if (!this.video) {
return;
}
this.isFristPlayEnd = false;
this.video.remoteURL = this.video_url;
this.appearAnim(this.videoNode, 0.3);
this.appearAnim(this.videoNode, 0.3, () => {
this.toMaxVideo();
this.video.play();
});
},
......@@ -1652,7 +1655,7 @@ cc.Class({
this.quesPanel.opacity = 0;
this.refreshQuesLabel();
this.refreshVideo();
// this.appearAnim(this.quesPanel, 0.3);
this.appearAnim(this.quesPanel, 0.3);
this.isCanEmitBubble = true;
},
......@@ -2029,8 +2032,8 @@ cc.Class({
if (!this.isFristPlayEnd) {
//首次结束
this.startTesting();
this.startTiming();
this.showTipRemoveCard();
this.isFristPlayEnd = true;
}
......@@ -2898,6 +2901,8 @@ cc.Class({
async changeNextQues() {
this.endTesting();
this.isCanCheck = false;
this.quesArrIndex ++;
......@@ -3058,19 +3063,25 @@ cc.Class({
this.jumpBtn.active = false;
},
appearAnim(node, time=1) {
appearAnim(node, time=1, callback=null) {
node.active = true;
node.opacity = 0
cc.tween(node)
.to(time, {opacity: 255}, {easing: "cubicIn"})
.call(() => {
callback && callback();
})
.start();
},
disappearAnim(node, time=1) {
disappearAnim(node, time=1, callback) {
node.active = true;
node.opacity = 255
cc.tween(node)
.to(time, {opacity: 0}, {easing: "cubicOut"})
.call(() => {
callback && callback();
})
.start();
},
......@@ -8302,6 +8313,7 @@ cc.Class({
changeNextQuestion() {
console.log(' in changeNextQuestion')
this.curQuestionIndex ++ ;
this.setCurQuestionData();
......
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