|
|
@@ -41,7 +41,6 @@ export default class Guide extends cc.Component {
|
|
|
}
|
|
|
|
|
|
start() {
|
|
|
- return;
|
|
|
if (gData.guideData.crtID == null) {
|
|
|
this.node.destroy();
|
|
|
return;
|
|
|
@@ -62,6 +61,7 @@ export default class Guide extends cc.Component {
|
|
|
this.close();
|
|
|
}
|
|
|
else {
|
|
|
+ this.node_bg.opacity = 180;
|
|
|
this.node_finger.opacity = 255;
|
|
|
this.node_dialog.opacity = 255;
|
|
|
this.targetNode = null;
|
|
|
@@ -160,6 +160,7 @@ export default class Guide extends cc.Component {
|
|
|
}
|
|
|
|
|
|
async clickNodeClick() {
|
|
|
+ mk.audio.playEffect("button");
|
|
|
cc.Tween.stopAllByTarget(this.node_display);
|
|
|
console.log("clickNodeClick");
|
|
|
if (this.targetNode) {
|
|
|
@@ -167,7 +168,7 @@ export default class Guide extends cc.Component {
|
|
|
}
|
|
|
if (this.event_data) {
|
|
|
//event_guide data:1_2 (1_2为新手引导的id)
|
|
|
- mk.event.emit("event_guide",this.event_data);
|
|
|
+ mk.event.emit("event_guide", this.event_data);
|
|
|
}
|
|
|
this.reset();
|
|
|
if (this.crtGuide.lag_next > 0) {
|
|
|
@@ -178,9 +179,11 @@ export default class Guide extends cc.Component {
|
|
|
|
|
|
/** 等待状态 透明不可点击 */
|
|
|
private reset() {
|
|
|
- this.node_display.width = this.node.width;
|
|
|
- this.node_display.height = this.node.height;
|
|
|
- this.node_bg.x = this.node_bg.y = 0;
|
|
|
+ this.node_display.width = 0;
|
|
|
+ this.node_display.height = 0;
|
|
|
+ this.node_bg.x = -this.node_display.x;
|
|
|
+ this.node_bg.y = -this.node_display.y;
|
|
|
+ this.node_bg.opacity = 0;
|
|
|
this.node_click.width = 0
|
|
|
this.node_click.height = 0;
|
|
|
this.node_finger.opacity = 0;
|