Commit 3c61fab3 authored by yu's avatar yu

1

parent 21b6fd8a
This diff is collapsed.
......@@ -250,7 +250,8 @@ cc.Class({
let icon_ex_txt = pg.view.find(icon_ex, "txt");
let icon_hand = pg.view.find(this, "icon_hand");
let btn_picture = pg.view.find(this, "btn_picture");
let layout_card = pg.view.find(this, "card_group/layout_card");
let touch_card = pg.view.find(this, "card_group/touch_card");
touch_card.active = false;
pg.view.touchOn(btn_record, this.onTouchRecord, this);//注册按钮监听
pg.view.touchOn(btn_next, this.onTouchNext, this);
......@@ -260,7 +261,7 @@ cc.Class({
pg.view.touchOn(btn_picture, this.onTouchPicture, this);
pg.view.touchOn(btn_carton, this.onTouchCarton, this);
pg.view.touchOn(icon_ex, this.onTouchWord, this);
pg.view.touchOn(layout_card, this.onTouchWord, this);
pg.view.touchOn(touch_card, this.onTouchWord, this);
pg.view.touchOn(btn_mao, this.onTouchCat, this);
},
state0InitPart() {
......@@ -402,6 +403,8 @@ cc.Class({
pg.view.visible(btn_record, false);
pg.view.visible(btn_recording, false);
pg.view.visible(progress, false);
let touch_card = pg.view.find(this, "card_group/touch_card");
touch_card.active = false;
this._timeoutIds.push(setTimeout(() => {//4秒钟之后出现goodjob提示
pg.view.visible(end, true);
pg.view.visible(end_success, true);
......@@ -748,6 +751,7 @@ cc.Class({
hideBox() {
let layout_card = cc.find("card_group/layout_card", this.node);
let card_bg2 = cc.find("card_group/card_bg2", this.node);
let touch_card = pg.view.find(this, "card_group/touch_card");
cc.tween(card_bg2).to(0.5, { opacity: 255 }).start();
layout_card.children.forEach((item) => {
item.getComponent(cc.Sprite).enabled = false;
......@@ -757,6 +761,7 @@ cc.Class({
layout_card.getComponent(cc.Layout).updateLayout();
setTimeout(() => {
card_bg2.width = layout_card.width;
touch_card.active = true;
}, 30);
},
setCardColor(progress) {
......@@ -864,6 +869,8 @@ cc.Class({
},
onTouchWord() {
if (this._playing) return;
let progress = pg.view.find(this, "progress");
if (progress.active) return;
let btn_record = pg.view.find(this, "btn_record");
btn_record.active = false;
this.hideRestartBtn();
......
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