|
@@ -6389,14 +6389,18 @@ e.labMoney = null;
|
|
|
return e;
|
|
return e;
|
|
|
}
|
|
}
|
|
|
e.prototype.update = function() {
|
|
e.prototype.update = function() {
|
|
|
-gData.cashPro.init_load && this.showLoad();
|
|
|
|
|
-gData.cashPro.init_success && this.tixianSuccess();
|
|
|
|
|
-gData.cashPro.init_fail && this.tixianFail();
|
|
|
|
|
-};
|
|
|
|
|
-e.prototype.lateUpdate = function() {
|
|
|
|
|
|
|
+if (gData.cashPro.init_load) {
|
|
|
|
|
+this.showLoad();
|
|
|
gData.cashPro.init_load = !1;
|
|
gData.cashPro.init_load = !1;
|
|
|
|
|
+}
|
|
|
|
|
+if (gData.cashPro.init_success) {
|
|
|
|
|
+this.tixianSuccess();
|
|
|
gData.cashPro.init_success = !1;
|
|
gData.cashPro.init_success = !1;
|
|
|
|
|
+}
|
|
|
|
|
+if (gData.cashPro.init_fail) {
|
|
|
|
|
+this.tixianFail();
|
|
|
gData.cashPro.init_fail = !1;
|
|
gData.cashPro.init_fail = !1;
|
|
|
|
|
+}
|
|
|
};
|
|
};
|
|
|
e.prototype.showLoad = function() {
|
|
e.prototype.showLoad = function() {
|
|
|
this.loadPart.active = !0;
|
|
this.loadPart.active = !0;
|
|
@@ -14508,6 +14512,7 @@ r.id = parseInt(s[0]);
|
|
|
r.step = parseInt(s[1]);
|
|
r.step = parseInt(s[1]);
|
|
|
r.trigger = c.trigger;
|
|
r.trigger = c.trigger;
|
|
|
r.tr_num = c.trNum;
|
|
r.tr_num = c.trNum;
|
|
|
|
|
+r.btnEnable = c.btnEnable;
|
|
|
r.tr_form = c.trForm;
|
|
r.tr_form = c.trForm;
|
|
|
r.dialog = c.dialog;
|
|
r.dialog = c.dialog;
|
|
|
r.dialog_pos = c.dialogPos;
|
|
r.dialog_pos = c.dialogPos;
|
|
@@ -14947,19 +14952,19 @@ i = this.targetNode.height;
|
|
|
var c = mk.game.getWorldPos(this.targetNode);
|
|
var c = mk.game.getWorldPos(this.targetNode);
|
|
|
o = c.x;
|
|
o = c.x;
|
|
|
n = c.y;
|
|
n = c.y;
|
|
|
-if (this.crtGuide && 2 == this.crtGuide.id && 1 == this.crtStep) {
|
|
|
|
|
-a = this.targetNode.parent.width;
|
|
|
|
|
-i = this.targetNode.parent.height;
|
|
|
|
|
-var s = mk.game.getWorldPos(this.targetNode.parent);
|
|
|
|
|
-o = s.x;
|
|
|
|
|
-n = s.y - i / 2;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+if ("1" == this.crtGuide.btnEnable) {
|
|
|
this.node_click.width = this.node_click.height = 0;
|
|
this.node_click.width = this.node_click.height = 0;
|
|
|
-var l = new cc.Component.EventHandler();
|
|
|
|
|
-l.target = this.node;
|
|
|
|
|
-l.component = "Guide";
|
|
|
|
|
-l.handler = "clickNodeClick";
|
|
|
|
|
-this.targetNode.getComponent(cc.Button).clickEvents.push(l);
|
|
|
|
|
|
|
+var s = new cc.Component.EventHandler();
|
|
|
|
|
+s.target = this.node;
|
|
|
|
|
+s.component = "Guide";
|
|
|
|
|
+s.handler = "clickNodeClick";
|
|
|
|
|
+this.targetNode.getComponent(cc.Button).clickEvents.push(s);
|
|
|
|
|
+} else {
|
|
|
|
|
+this.node_click.x = 0;
|
|
|
|
|
+this.node_click.y = 0;
|
|
|
|
|
+this.node_click.width = this.node.width;
|
|
|
|
|
+this.node_click.height = this.node.height;
|
|
|
|
|
+}
|
|
|
}
|
|
}
|
|
|
if (null != o && null != n && null != a && null != i) if (0 == this.crtGuide.display_type) {
|
|
if (null != o && null != n && null != a && null != i) if (0 == this.crtGuide.display_type) {
|
|
|
this.node_bg.x = this.node_bg.y = this.node_display.x = this.node_display.y = 0;
|
|
this.node_bg.x = this.node_bg.y = this.node_display.x = this.node_display.y = 0;
|
|
@@ -14980,52 +14985,52 @@ t.node_bg.y = -t.node_display.y;
|
|
|
this.node_bg.x = this.node_display.x = o;
|
|
this.node_bg.x = this.node_display.x = o;
|
|
|
this.node_bg.y = this.node_display.y = n;
|
|
this.node_bg.y = this.node_display.y = n;
|
|
|
this.node_display.width = this.node_display.height = this.node_bg.width = this.node_bg.height = 2 * this.node.height;
|
|
this.node_display.width = this.node_display.height = this.node_bg.width = this.node_bg.height = 2 * this.node.height;
|
|
|
-var p = this.crtGuide.display_type;
|
|
|
|
|
|
|
+var l = this.crtGuide.display_type;
|
|
|
cc.tween(this.node_display).to(.2, {
|
|
cc.tween(this.node_display).to(.2, {
|
|
|
-width: p,
|
|
|
|
|
-height: p
|
|
|
|
|
|
|
+width: l,
|
|
|
|
|
+height: l
|
|
|
}).start();
|
|
}).start();
|
|
|
}
|
|
}
|
|
|
if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
|
|
if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
|
|
|
r = this.crtGuide.dialog_pos.split(":");
|
|
r = this.crtGuide.dialog_pos.split(":");
|
|
|
-for (var u = this.node_dialog.getComponent(cc.Widget), d = 0; d < this.widgets.length; d++) {
|
|
|
|
|
-switch (d) {
|
|
|
|
|
|
|
+for (var p = this.node_dialog.getComponent(cc.Widget), u = 0; u < this.widgets.length; u++) {
|
|
|
|
|
+switch (u) {
|
|
|
case 0:
|
|
case 0:
|
|
|
-u.isAlignTop = "" != r[d];
|
|
|
|
|
|
|
+p.isAlignTop = "" != r[u];
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
|
case 1:
|
|
|
-u.isAlignBottom = "" != r[d];
|
|
|
|
|
|
|
+p.isAlignBottom = "" != r[u];
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
case 2:
|
|
|
-u.isAlignLeft = "" != r[d];
|
|
|
|
|
|
|
+p.isAlignLeft = "" != r[u];
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
|
case 3:
|
|
|
-u.isAlignRight = "" != r[d];
|
|
|
|
|
|
|
+p.isAlignRight = "" != r[u];
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
|
case 4:
|
|
|
-u.isAlignVerticalCenter = "" != r[d];
|
|
|
|
|
|
|
+p.isAlignVerticalCenter = "" != r[u];
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case 5:
|
|
case 5:
|
|
|
-u.isAlignHorizontalCenter = "" != r[d];
|
|
|
|
|
|
|
+p.isAlignHorizontalCenter = "" != r[u];
|
|
|
}
|
|
}
|
|
|
-"" != r[d] && (u[this.widgets[d]] = parseInt(r[d]));
|
|
|
|
|
|
|
+"" != r[u] && (p[this.widgets[u]] = parseInt(r[u]));
|
|
|
}
|
|
}
|
|
|
-u.enabled = !0;
|
|
|
|
|
-u.updateAlignment();
|
|
|
|
|
|
|
+p.enabled = !0;
|
|
|
|
|
+p.updateAlignment();
|
|
|
} else {
|
|
} else {
|
|
|
r = this.crtGuide.dialog_pos1.split(",");
|
|
r = this.crtGuide.dialog_pos1.split(",");
|
|
|
-(u = this.node_dialog.getComponent(cc.Widget)).enabled = !1;
|
|
|
|
|
|
|
+(p = this.node_dialog.getComponent(cc.Widget)).enabled = !1;
|
|
|
this.node_dialog.x = o + parseInt(r[0]);
|
|
this.node_dialog.x = o + parseInt(r[0]);
|
|
|
this.node_dialog.y = n + parseInt(r[1]);
|
|
this.node_dialog.y = n + parseInt(r[1]);
|
|
|
}
|
|
}
|
|
|
-var h = this.crtGuide.dialog_alignment;
|
|
|
|
|
-this.rich_dialog.horizontalAlign = "0" == h ? cc.macro.TextAlignment.LEFT : "1" == h ? cc.macro.TextAlignment.CENTER : cc.macro.TextAlignment.RIGHT;
|
|
|
|
|
-this.rich_dialog1.horizontalAlign = "0" == h ? cc.macro.TextAlignment.LEFT : "1" == h ? cc.macro.TextAlignment.CENTER : cc.macro.TextAlignment.RIGHT;
|
|
|
|
|
|
|
+var d = this.crtGuide.dialog_alignment;
|
|
|
|
|
+this.rich_dialog.horizontalAlign = "0" == d ? cc.macro.TextAlignment.LEFT : "1" == d ? cc.macro.TextAlignment.CENTER : cc.macro.TextAlignment.RIGHT;
|
|
|
|
|
+this.rich_dialog1.horizontalAlign = "0" == d ? cc.macro.TextAlignment.LEFT : "1" == d ? cc.macro.TextAlignment.CENTER : cc.macro.TextAlignment.RIGHT;
|
|
|
if ("" == this.crtGuide.finger) this.node_finger.active = !1; else {
|
|
if ("" == this.crtGuide.finger) this.node_finger.active = !1; else {
|
|
|
this.node_finger.active = !0;
|
|
this.node_finger.active = !0;
|
|
|
r = this.crtGuide.finger.split(":");
|
|
r = this.crtGuide.finger.split(":");
|
|
@@ -15064,7 +15069,7 @@ case 0:
|
|
|
mk.audio.playEffect("button");
|
|
mk.audio.playEffect("button");
|
|
|
cc.Tween.stopAllByTarget(this.node_display);
|
|
cc.Tween.stopAllByTarget(this.node_display);
|
|
|
console.log("clickNodeClick");
|
|
console.log("clickNodeClick");
|
|
|
-this.targetNode && this.targetNode.getComponent(cc.Button).clickEvents.pop();
|
|
|
|
|
|
|
+"1" == this.crtGuide.btnEnable && this.targetNode && this.targetNode.getComponent(cc.Button).clickEvents.pop();
|
|
|
this.event_data && mk.event.emit("event_guide", this.event_data);
|
|
this.event_data && mk.event.emit("event_guide", this.event_data);
|
|
|
this.reset();
|
|
this.reset();
|
|
|
return this.crtGuide.lag_next > 0 ? [ 4, mk.time.WaitForSeconds(this.crtGuide.lag_next) ] : [ 3, 2 ];
|
|
return this.crtGuide.lag_next > 0 ? [ 4, mk.time.WaitForSeconds(this.crtGuide.lag_next) ] : [ 3, 2 ];
|
|
@@ -21388,7 +21393,7 @@ this.awardLabel.string = (t.menuRedBagCoin / 100).toString();
|
|
|
this.timeLabel.string = t.time;
|
|
this.timeLabel.string = t.time;
|
|
|
i = !1;
|
|
i = !1;
|
|
|
r = 0;
|
|
r = 0;
|
|
|
-1 == t.unlock ? (r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0) : 2 == t.unlock && gData.gameData.playerProp.gradeLevel >= t.value && (i = !0);
|
|
|
|
|
|
|
+1 == t.unlock ? (r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0) : 2 == t.unlock && gData.gameData.playerProp.completeFarmTaskTimes >= t.value && (i = !0);
|
|
|
this.mainNode.active = i;
|
|
this.mainNode.active = i;
|
|
|
this.lockNode.active = !i;
|
|
this.lockNode.active = !i;
|
|
|
if (!i) {
|
|
if (!i) {
|