|
|
@@ -12855,8 +12855,8 @@ tab: o.tab,
|
|
|
productID: t
|
|
|
};
|
|
|
this._maxProduct.push(a);
|
|
|
-gData.farmMapData.isStateChange = !0;
|
|
|
}
|
|
|
+gData.farmMapData.isStateChange = !0;
|
|
|
};
|
|
|
t.prototype.checkTaskFinishUnLock = function() {
|
|
|
for (var t in p) {
|
|
|
@@ -13537,6 +13537,7 @@ e.ani_add3 = null;
|
|
|
e.posY = 0;
|
|
|
e.lastTimeSpan = 0;
|
|
|
e.span = 0;
|
|
|
+e.autoPopSign = !0;
|
|
|
e.isRefreshTask = !1;
|
|
|
return e;
|
|
|
}
|
|
|
@@ -13671,14 +13672,15 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.initRedPoint = function() {
|
|
|
-this.nodeRedPoint.node_sign.active = gData.sign.redPoint();
|
|
|
+var t = gData.sign.redPoint();
|
|
|
+this.nodeRedPoint.node_sign.active = t;
|
|
|
this.nodeRedPoint.node_turnable.active = gData.turnable.leftTimes > 0;
|
|
|
-var t = !1, e = gData.gameData.playerProp.farmGradeData.farmGradeRewardList;
|
|
|
-if (e) for (var o = e.length, n = 0; n != o; ++n) if (1 == e[n].status) {
|
|
|
-t = !0;
|
|
|
+var e = !1, o = gData.gameData.playerProp.farmGradeData.farmGradeRewardList;
|
|
|
+if (o) for (var n = o.length, a = 0; a != n; ++a) if (1 == o[a].status) {
|
|
|
+e = !0;
|
|
|
break;
|
|
|
}
|
|
|
-this.nodeRedPoint.node_gradeReward.active = t;
|
|
|
+this.nodeRedPoint.node_gradeReward.active = e;
|
|
|
gData.gameData.init_red_point = !1;
|
|
|
};
|
|
|
e.prototype.autoOpenPanel = function() {
|
|
|
@@ -22465,42 +22467,43 @@ e.node_2 = null;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onEnable = function() {
|
|
|
-var t = this;
|
|
|
-mk.ad.showNative();
|
|
|
+var t = this, e = !1;
|
|
|
this.lbl_times.string = "生产次数+" + gData.gameData.configs.ServerConfig.ProductionAd;
|
|
|
this.lbl_times2.string = "生产次数+" + gData.gameData.configs.ServerConfig.ProductionAd;
|
|
|
gData.gameData.init_productTask = !1;
|
|
|
if (gData.gameData.playerProp.userFarmTaskInfo) {
|
|
|
-var e = gData.gameData.playerProp.userFarmTaskInfo.completeCount, o = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
-if (o - e <= 10) {
|
|
|
-if (o > e) {
|
|
|
-this.lbl_taskTimes.string = (o - e).toString();
|
|
|
+var o = gData.gameData.playerProp.userFarmTaskInfo.completeCount, n = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
+if (n - o <= 10) {
|
|
|
+if (n > o) {
|
|
|
+this.lbl_taskTimes.string = (n - o).toString();
|
|
|
this.node_Uncomplete.active = !0;
|
|
|
this.node_complete.active = !1;
|
|
|
+e = !0;
|
|
|
this.scheduleOnce(function() {
|
|
|
-mk.guide.curDes = "<color=8A4312>再<color=ff0000>生产" + (o - e) + "次</color>,即可<color=ff0000>提现</color>,\n快领取次数吧!</color>";
|
|
|
+mk.guide.curDes = "<color=8A4312>再<color=ff0000>生产" + (n - o) + "次</color>,即可<color=ff0000>提现</color>,\n快领取次数吧!</color>";
|
|
|
mk.guide.open(2);
|
|
|
}, .5);
|
|
|
} else {
|
|
|
this.node_Uncomplete.active = !1;
|
|
|
this.node_complete.active = !0;
|
|
|
}
|
|
|
-var n = e / o;
|
|
|
+var a = o / n;
|
|
|
cc.tween(this.sp_taskProgress).delay(.2).to(.3, {
|
|
|
-fillRange: n
|
|
|
+fillRange: a
|
|
|
}, {
|
|
|
onUpdate: function() {
|
|
|
-var e = Math.round(t.sp_taskProgress.fillRange * o);
|
|
|
-t.lbl_progress.string = e + "/" + o;
|
|
|
+var e = Math.round(t.sp_taskProgress.fillRange * n);
|
|
|
+t.lbl_progress.string = e + "/" + n;
|
|
|
}
|
|
|
}).call(function() {
|
|
|
-t.lbl_progress.string = e + "/" + o;
|
|
|
+t.lbl_progress.string = o + "/" + n;
|
|
|
}).start();
|
|
|
} else {
|
|
|
this.node_1.active = !1;
|
|
|
this.node_2.active = !0;
|
|
|
}
|
|
|
}
|
|
|
+e ? gData.gameData.getProp(r.GameProp.guideID) >= 2 && mk.ad.showNative() : mk.ad.showNative();
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.gameData.init_productTask) {
|
|
|
@@ -27838,7 +27841,7 @@ return i > 3 && r && Object.defineProperty(e, o, r), r;
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-o.TouchListener = void 0;
|
|
|
+o.Eve = o.TouchListener = void 0;
|
|
|
var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
@@ -27853,12 +27856,18 @@ this.node._touchListener.swallowTouches = !1;
|
|
|
e.prototype.onTouchStart = function() {
|
|
|
gData.gameData.isTouchScreen || (gData.gameData.isTouchScreen = !0);
|
|
|
};
|
|
|
+e.prototype.onKeyDown = function(t) {
|
|
|
+console.log("cocos onKeyDown", t);
|
|
|
+};
|
|
|
i([ s({
|
|
|
displayName: "是否注册触摸事件"
|
|
|
}) ], e.prototype, "isRegisterEvent", void 0);
|
|
|
return i([ c ], e);
|
|
|
}(cc.Component);
|
|
|
o.TouchListener = l;
|
|
|
+o.Eve = function() {
|
|
|
+throw new Error("Function not implemented.");
|
|
|
+};
|
|
|
cc._RF.pop();
|
|
|
}, {} ],
|
|
|
TurnableData: [ function(t, e, o) {
|