Commit 60446ab3 authored by Tt's avatar Tt

1

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