|
|
@@ -2253,6 +2253,9 @@ t.showInterAd(0);
|
|
|
} else gData.moreGame.popMoreGamePopNode();
|
|
|
}
|
|
|
};
|
|
|
+t.prototype.bannerOperOnlyFullScreen = function(t) {
|
|
|
+cc.winSize.height > 1500 && (0 == t ? mk.ad.showBanner() : 1 == t && mk.ad.destoryBanner());
|
|
|
+};
|
|
|
return t;
|
|
|
}();
|
|
|
n.default = a;
|
|
|
@@ -8690,6 +8693,7 @@ e.node_changeCellItemUI = null;
|
|
|
e.node_effectUI = null;
|
|
|
e.node_levelRedPacketUI = null;
|
|
|
e.node_touchListenMask = null;
|
|
|
+e.ifOpenLevelRedBag = !1;
|
|
|
e.curProgressScore = 0;
|
|
|
e.curGetScore = 0;
|
|
|
e.targetScore = 0;
|
|
|
@@ -8743,6 +8747,7 @@ configurable: !0
|
|
|
e.prototype.onLoad = function() {
|
|
|
n.Inst = this;
|
|
|
mk.event.register("event_guide", this.clickGuide, this);
|
|
|
+this.checkLevelRedBagSwitch();
|
|
|
};
|
|
|
e.prototype.clickGuide = function(t) {
|
|
|
"1_3" == t ? this.cellItemDic[0][0] && this.cellItemDic[0][0].onClick() : "1_5" == t && this.cellItemDic[1][1] && this.cellItemDic[1][1].onClick();
|
|
|
@@ -8817,6 +8822,10 @@ this.node_bg.setContentSize(new cc.Size(cc.winSize.width, cc.winSize.height));
|
|
|
var t = gData.gameData.gameStyle.node_top_ui.parent.convertToWorldSpaceAR(gData.gameData.gameStyle.node_top_ui.getPosition()), e = this.node_top.parent.convertToNodeSpaceAR(t);
|
|
|
this.node_top.y = e.y - 40;
|
|
|
};
|
|
|
+e.prototype.checkLevelRedBagSwitch = function() {
|
|
|
+var t = gData.gameData.configs.GlobalCfg.levelRedBagSwitch;
|
|
|
+this.ifOpenLevelRedBag = !!t && 0 != t;
|
|
|
+};
|
|
|
e.prototype.update = function() {
|
|
|
if (this.curProgressScore >= this.curGetScore) 0 == this.curProgressScore && (this.spr_progress.fillRange = 0); else if (this.curProgressScore >= this.targetScore) {
|
|
|
this.curProgressScore = this.curGetScore;
|
|
|
@@ -8874,7 +8883,7 @@ e.prototype.initProgress = function() {
|
|
|
var t = this.curProgressScore / this.targetScore;
|
|
|
t = t > 1 ? 1 : t;
|
|
|
this.spr_progress.fillRange = t;
|
|
|
-if (t >= 1) {
|
|
|
+if (t >= 1 && !this.ifOpenLevelRedBag) {
|
|
|
gData.reward.subType = 2;
|
|
|
mk.ad.videoAdType = f.VideoAdType.LevelScoreRedBag;
|
|
|
mk.ui.getCurOnPanel("rewardLuck") || "1" != gData.gameData.funOpenData[6] || mk.ui.openPanel("module/reward/rewardLuck");
|
|
|
@@ -9208,7 +9217,7 @@ var t = gData.gameData.getProp(f.GameProp.levelNum);
|
|
|
mk.console.log("[Game]pass passLevelNum", t);
|
|
|
n.Inst.ifGetPass = !0;
|
|
|
gData.gameData.setProp(f.GameProp.levelNum, ++t);
|
|
|
-if ("1" == gData.gameData.funOpenData[6]) {
|
|
|
+if (this.ifOpenLevelRedBag) this.gameCount(); else if ("1" == gData.gameData.funOpenData[6]) {
|
|
|
if (mk.ui.getCurOnPanel("rewardLuck") || this.finalGetScore >= this.targetScore) return;
|
|
|
this.gameCount();
|
|
|
console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(f.GameProp.levelNum));
|
|
|
@@ -9224,7 +9233,11 @@ this.gameOver();
|
|
|
};
|
|
|
e.prototype.gameOver = function() {
|
|
|
mk.data.setTAEventUser(1, "video_play_time", 1);
|
|
|
-mk.ui.openPanel("game/prefab/uiPanel/GameOverUI");
|
|
|
+if (this.ifOpenLevelRedBag) {
|
|
|
+gData.reward.subType = 2;
|
|
|
+mk.ad.videoAdType = f.VideoAdType.LevelScoreRedBag;
|
|
|
+mk.ui.openPanel("module/reward/rewardMission");
|
|
|
+} else mk.ui.openPanel("game/prefab/uiPanel/GameOverUI");
|
|
|
};
|
|
|
e.prototype.checkBonusNum = function(t) {
|
|
|
if (t >= 4) {
|
|
|
@@ -11624,7 +11637,7 @@ value: !0
|
|
|
n.ServerUrl = n.HttpData = void 0;
|
|
|
var o, a = function() {
|
|
|
function t() {
|
|
|
-this.serverType = 1;
|
|
|
+this.serverType = 0;
|
|
|
}
|
|
|
t.prototype.getServerUrl = function() {
|
|
|
switch (this.serverType) {
|
|
|
@@ -15516,7 +15529,9 @@ e.node_tip_anim = null;
|
|
|
e.anim_btn_cash = null;
|
|
|
return e;
|
|
|
}
|
|
|
-e.prototype.onLoad = function() {};
|
|
|
+e.prototype.onLoad = function() {
|
|
|
+mk.ad.bannerOperOnlyFullScreen(0);
|
|
|
+};
|
|
|
e.prototype.start = function() {
|
|
|
this.initCashDesc();
|
|
|
mk.audio.playEffect("pigBank", !1);
|
|
|
@@ -15563,6 +15578,7 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
+mk.ad.bannerOperOnlyFullScreen(1);
|
|
|
mk.ad.checkShowInterByChance();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
@@ -17122,73 +17138,121 @@ return i > 3 && r && Object.defineProperty(e, n, r), r;
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
|
|
|
+var r = t("../../module/redBagItem/RedBagItem"), c = cc._decorator, s = c.ccclass, l = (c.property,
|
|
|
+function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
-var e = t.call(this) || this;
|
|
|
-e.ifOpen = !1;
|
|
|
-e.countTime = 300;
|
|
|
-e.storageKey_startCountTime = "startCountTime";
|
|
|
+var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.ifInit = !1;
|
|
|
-e.redBagItemArr = [];
|
|
|
-e.curLeftTime = 0;
|
|
|
+e.ifOpen = !1;
|
|
|
+e.isCounting = !1;
|
|
|
+e.countTotalTime = 300;
|
|
|
+e.startRedBagItemArr = [];
|
|
|
+e.curStartLeftTime = 0;
|
|
|
+e.storageKey_startCountEndTime = "startCountEndTime";
|
|
|
+e.levelRedBagItemArr = [];
|
|
|
+e.curLevelLeftTime = 0;
|
|
|
+e.storageKey_levelCountEndTime = "levelCountEndTime";
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
if (!this.ifInit) {
|
|
|
-console.log("===[v2.0.1] 初始化");
|
|
|
this.ifInit = !0;
|
|
|
-this.checkOfflineTime();
|
|
|
-}
|
|
|
-};
|
|
|
-e.prototype.checkOfflineTime = function() {
|
|
|
-var t = new Date().getTime(), e = mk.storage.getStorage(this.storageKey_startCountTime);
|
|
|
-console.log("===[v2.0.1] lastDat", e);
|
|
|
-if (e) {
|
|
|
-var n = Math.floor(.001 * (t - e));
|
|
|
-console.log("===[v2.0.1] gapTime", n);
|
|
|
-var o = Math.floor(this.countTime - n);
|
|
|
-console.log("===[v2.0.1] leftTime", o);
|
|
|
-if (o >= 5) {
|
|
|
-this.curLeftTime = o;
|
|
|
-this.startCountDown(this.curLeftTime);
|
|
|
+this.ifOpen = 0 != gData.gameData.configs.GlobalCfg.redBagLimitSwitch;
|
|
|
+console.log("===[v2.0.1] 初始化 switch", gData.gameData.configs.GlobalCfg.redBagLimitSwitch, gData.gameData.configs.GlobalCfg.levelRedBagSwitch);
|
|
|
+if (this.ifOpen) this.checkOfflineTime(); else {
|
|
|
+mk.storage.setStorage(this.storageKey_startCountEndTime, null);
|
|
|
+mk.storage.setStorage(this.storageKey_levelCountEndTime, null);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
-e.prototype.addRedBagItem = function(t) {
|
|
|
-this.redBagItemArr.push(t);
|
|
|
+e.prototype.addRedBagItem = function(t, e) {
|
|
|
+t == r.RedBagItemType.StartUI ? this.startRedBagItemArr.push(e) : t == r.RedBagItemType.LevelUI && this.levelRedBagItemArr.push(e);
|
|
|
};
|
|
|
-e.prototype.removeRedBagItem = function(t) {
|
|
|
-if (this.redBagItemArr.length >= 1) {
|
|
|
-var e = this.redBagItemArr.indexOf(t);
|
|
|
--1 != e && this.redBagItemArr.splice(e, 1);
|
|
|
+e.prototype.removeRedBagItem = function(t, e) {
|
|
|
+var n = [];
|
|
|
+t == r.RedBagItemType.StartUI ? n = this.startRedBagItemArr : t == r.RedBagItemType.LevelUI && (n = this.levelRedBagItemArr);
|
|
|
+if (n.length > 1) {
|
|
|
+var o = n.indexOf(e);
|
|
|
+-1 != o && n.splice(o, 1);
|
|
|
}
|
|
|
};
|
|
|
-e.prototype.startCountDown = function(t) {
|
|
|
-this.curLeftTime = t;
|
|
|
-mk.tip.pop("气泡红包数据开始倒计时");
|
|
|
-var e = new Date().getTime();
|
|
|
-mk.storage.setStorage(this.storageKey_startCountTime, e);
|
|
|
+e.prototype.checkOfflineTime = function() {
|
|
|
+var t = new Date().getTime(), e = mk.storage.getStorage(this.storageKey_startCountEndTime);
|
|
|
+e && (o = Math.floor(.001 * (e - t))) >= 5 && this.startCountDown(r.RedBagItemType.StartUI, o);
|
|
|
+var n = mk.storage.getStorage(this.storageKey_levelCountEndTime);
|
|
|
+if (n) {
|
|
|
+console.log("==[ levelCountEndDate", n, n - t);
|
|
|
+var o;
|
|
|
+(o = Math.floor(.001 * (n - t))) >= 5 && this.startCountDown(r.RedBagItemType.LevelUI, o);
|
|
|
+}
|
|
|
+};
|
|
|
+e.prototype.startCountDown = function(t, e) {
|
|
|
+console.log("===[v2.0.1 type", r.RedBagItemType[t], e);
|
|
|
+if (t == r.RedBagItemType.StartUI) {
|
|
|
+this.curStartLeftTime = e;
|
|
|
+var n = new Date().getTime() + 1e3 * e;
|
|
|
+mk.storage.setStorage(this.storageKey_startCountEndTime, n);
|
|
|
+} else if (t == r.RedBagItemType.LevelUI) {
|
|
|
+this.curLevelLeftTime = e;
|
|
|
+n = new Date().getTime() + 1e3 * e;
|
|
|
+mk.storage.setStorage(this.storageKey_levelCountEndTime, n);
|
|
|
+}
|
|
|
+if (!this.isCounting) {
|
|
|
+this.isCounting = !0;
|
|
|
this.schedule(this.countDown, 1);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.countDown = function() {
|
|
|
-var t = --this.curLeftTime;
|
|
|
-if (t <= 0) {
|
|
|
-this.curLeftTime = 0;
|
|
|
-this.stopCountDown();
|
|
|
-} else for (var e = mk.time.format(t, "m:s"), n = 0; n < this.redBagItemArr.length; n++) this.redBagItemArr[n].countDown(e);
|
|
|
+if (this.curStartLeftTime > 0) {
|
|
|
+if ((n = --this.curStartLeftTime) <= 0) {
|
|
|
+this.curStartLeftTime = 0;
|
|
|
+this.stopCountDown(r.RedBagItemType.StartUI);
|
|
|
+return;
|
|
|
+}
|
|
|
+for (var t = mk.time.format(n, "m:s"), e = 0; e < this.startRedBagItemArr.length; e++) this.startRedBagItemArr[e].countDown(t);
|
|
|
+}
|
|
|
+if (this.curLevelLeftTime > 0) {
|
|
|
+var n;
|
|
|
+if ((n = --this.curLevelLeftTime) <= 0) {
|
|
|
+this.curLevelLeftTime = 0;
|
|
|
+this.stopCountDown(r.RedBagItemType.LevelUI);
|
|
|
+return;
|
|
|
+}
|
|
|
+for (t = mk.time.format(n, "m:s"), e = 0; e < this.levelRedBagItemArr.length; e++) this.levelRedBagItemArr[e].countDown(t);
|
|
|
+}
|
|
|
};
|
|
|
-e.prototype.stopCountDown = function() {
|
|
|
+e.prototype.stopCountDown = function(t) {
|
|
|
+if (t == r.RedBagItemType.StartUI) {
|
|
|
+for (var e = 0; e < this.startRedBagItemArr.length; e++) this.startRedBagItemArr[e].stopCountDown();
|
|
|
+mk.storage.setStorage(this.storageKey_startCountEndTime, null);
|
|
|
+} else if (t == r.RedBagItemType.LevelUI) {
|
|
|
+for (e = 0; e < this.levelRedBagItemArr.length; e++) this.levelRedBagItemArr[e].stopCountDown();
|
|
|
+mk.storage.setStorage(this.storageKey_levelCountEndTime, null);
|
|
|
+}
|
|
|
+if (this.curStartLeftTime <= 0 && this.curLevelLeftTime <= 0) {
|
|
|
+this.isCounting = !1;
|
|
|
this.unschedule(this.countDown);
|
|
|
-for (var t = 0; t < this.redBagItemArr.length; t++) this.redBagItemArr[t].stopCountDown();
|
|
|
+}
|
|
|
+};
|
|
|
+e.prototype.reset = function() {
|
|
|
+for (var t = 0; t < this.startRedBagItemArr.length; t++) this.startRedBagItemArr[t].reset();
|
|
|
+for (t = 0; t < this.levelRedBagItemArr.length; t++) this.levelRedBagItemArr[t].reset();
|
|
|
+};
|
|
|
+e.prototype.showTip = function(t) {
|
|
|
+var e = [];
|
|
|
+t == r.RedBagItemType.StartUI ? e = this.startRedBagItemArr : t == r.RedBagItemType.LevelUI && (e = this.levelRedBagItemArr);
|
|
|
+var n = e.length;
|
|
|
+e[mk.math.random(0, n - 1)].showTip();
|
|
|
};
|
|
|
-e.prototype.showTip = function() {};
|
|
|
e.prototype.showNewTip = function() {};
|
|
|
-return i([ c ], e);
|
|
|
+return i([ s ], e);
|
|
|
}(cc.Component));
|
|
|
-n.default = s;
|
|
|
+n.default = l;
|
|
|
cc._RF.pop();
|
|
|
-}, {} ],
|
|
|
+}, {
|
|
|
+"../../module/redBagItem/RedBagItem": "RedBagItem"
|
|
|
+} ],
|
|
|
RedBagItem: [ function(t, e, n) {
|
|
|
"use strict";
|
|
|
cc._RF.push(e, "c9bb30R/BdEr6tpJ3Ssv0K4", "RedBagItem");
|
|
|
@@ -17326,13 +17390,20 @@ done: !0
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var s = t("../../../mk/system/UISystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
|
|
|
+n.RedBagItemType = void 0;
|
|
|
+var s, l = t("../../../mk/system/UISystem");
|
|
|
+(function(t) {
|
|
|
+t[t.StartUI = 0] = "StartUI";
|
|
|
+t[t.LevelUI = 1] = "LevelUI";
|
|
|
+})(s = n.RedBagItemType || (n.RedBagItemType = {}));
|
|
|
+var u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.label_tip = null;
|
|
|
e.node_qipaoBg = null;
|
|
|
e.node_tip = null;
|
|
|
+e.type = 0;
|
|
|
e.index = 0;
|
|
|
e.onComplete = [];
|
|
|
e.stroageKey = "";
|
|
|
@@ -17343,13 +17414,17 @@ this.node.on(cc.Node.EventType.TOUCH_START, this.onClick, this);
|
|
|
this.init();
|
|
|
};
|
|
|
e.prototype.init = function() {
|
|
|
+var t = this;
|
|
|
gData.redBagData.init();
|
|
|
this.stroageKey = "RedBagItem" + this.index;
|
|
|
-var t = mk.storage.getStorage(this.stroageKey);
|
|
|
-if (t && 1 == t) this.hide(); else {
|
|
|
-console.log("===[v2.0.1]", "RedBagItem active" + this.node.active + "inxdex:" + this.index);
|
|
|
-gData.redBagData.addRedBagItem(this);
|
|
|
-}
|
|
|
+var e = mk.time.getNowDayString(new Date().getTime()), n = mk.time.getNowDayString(1e3 * gData.gameData.gameData.lastTime);
|
|
|
+console.log("===[v2.0.1] curDate != lastDate", "curDate:" + e, "lastDate:" + n, "curDate != lastDate:" + e != n);
|
|
|
+e != n && mk.storage.setStorage(this.stroageKey, 0);
|
|
|
+var o = mk.storage.getStorage(this.stroageKey);
|
|
|
+o && 1 == o ? this.scheduleOnce(function() {
|
|
|
+t.hide();
|
|
|
+}, .01) : gData.redBagData.addRedBagItem(this.type, this);
|
|
|
+2 != this.index && 6 != this.index || gData.redBagData.showTip(this.type);
|
|
|
};
|
|
|
e.prototype.reset = function() {
|
|
|
mk.storage.setStorage(this.stroageKey, 0);
|
|
|
@@ -17359,8 +17434,7 @@ return r(this, void 0, void 0, function() {
|
|
|
return c(this, function(t) {
|
|
|
switch (t.label) {
|
|
|
case 0:
|
|
|
-console.log("===[v2.0.1] 点击点击");
|
|
|
-return gData.redBagData.ifOpen ? [ 3, 2 ] : [ 4, mk.ui.openPanel("module/reward/rewardLuck", s.OpenActionType.normal) ];
|
|
|
+return gData.redBagData.ifOpen ? [ 3, 2 ] : [ 4, mk.ui.openPanel("module/reward/rewardLuck", l.OpenActionType.normal) ];
|
|
|
|
|
|
case 1:
|
|
|
t.sent();
|
|
|
@@ -17368,19 +17442,25 @@ this.callBack();
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 2:
|
|
|
-if (gData.redBagData.curLeftTime >= 1) {
|
|
|
+if (this.type == s.StartUI) {
|
|
|
+if (gData.redBagData.curStartLeftTime >= 1) {
|
|
|
+mk.tip.pop("请等待倒计时结束之后领取红包");
|
|
|
+return [ 2 ];
|
|
|
+}
|
|
|
+} else if (this.type == s.LevelUI && gData.redBagData.curLevelLeftTime >= 1) {
|
|
|
mk.tip.pop("请等待倒计时结束之后领取红包");
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
-return [ 4, mk.ui.openPanel("module/reward/rewardLuck", s.OpenActionType.normal) ];
|
|
|
+return [ 4, mk.ui.openPanel("module/reward/rewardLuck", l.OpenActionType.normal) ];
|
|
|
|
|
|
case 3:
|
|
|
t.sent();
|
|
|
this.callBack();
|
|
|
this.hide();
|
|
|
mk.storage.setStorage(this.stroageKey, 1);
|
|
|
-gData.redBagData.removeRedBagItem(this);
|
|
|
-gData.redBagData.startCountDown(gData.redBagData.countTime);
|
|
|
+gData.redBagData.removeRedBagItem(this.type, this);
|
|
|
+gData.redBagData.startCountDown(this.type, gData.redBagData.countTotalTime);
|
|
|
+gData.redBagData.showTip(this.type);
|
|
|
t.label = 4;
|
|
|
|
|
|
case 4:
|
|
|
@@ -17389,6 +17469,9 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.callBack = function() {
|
|
|
+for (var t = this.onComplete.length, e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
|
|
|
+};
|
|
|
e.prototype.countDown = function(t) {
|
|
|
this.label_tip.string = t;
|
|
|
this.node.color = cc.Color.GRAY;
|
|
|
@@ -17400,24 +17483,29 @@ this.node.color = cc.Color.WHITE;
|
|
|
this.node_qipaoBg.color = cc.Color.WHITE;
|
|
|
};
|
|
|
e.prototype.hide = function() {
|
|
|
+console.log("==[v2.0.1 index :" + this.index, "隐藏");
|
|
|
this.node.active = !1;
|
|
|
this.node_tip.active && (this.node_tip.active = !1);
|
|
|
};
|
|
|
-e.prototype.callBack = function() {
|
|
|
-for (var t = this.onComplete.length, e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
|
|
|
+e.prototype.showTip = function() {
|
|
|
+this.node_tip.active = !0;
|
|
|
};
|
|
|
-i([ p(cc.Label) ], e.prototype, "label_tip", void 0);
|
|
|
-i([ p(cc.Node) ], e.prototype, "node_qipaoBg", void 0);
|
|
|
-i([ p(cc.Node) ], e.prototype, "node_tip", void 0);
|
|
|
-i([ p(cc.Integer) ], e.prototype, "index", void 0);
|
|
|
-i([ p({
|
|
|
+i([ d(cc.Label) ], e.prototype, "label_tip", void 0);
|
|
|
+i([ d(cc.Node) ], e.prototype, "node_qipaoBg", void 0);
|
|
|
+i([ d(cc.Node) ], e.prototype, "node_tip", void 0);
|
|
|
+i([ d({
|
|
|
+type: cc.Enum(s),
|
|
|
+displayName: "气泡红包类型"
|
|
|
+}) ], e.prototype, "type", void 0);
|
|
|
+i([ d(cc.Integer) ], e.prototype, "index", void 0);
|
|
|
+i([ d({
|
|
|
displayName: "点击回调",
|
|
|
tooltip: "点击时触发",
|
|
|
type: cc.Component.EventHandler
|
|
|
}) ], e.prototype, "onComplete", void 0);
|
|
|
-return i([ u ], e);
|
|
|
+return i([ p ], e);
|
|
|
}(cc.Component);
|
|
|
-n.default = d;
|
|
|
+n.default = h;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../../mk/system/UISystem": "UISystem"
|
|
|
@@ -18471,9 +18559,11 @@ mk.ui.closePanel(this.node.name);
|
|
|
mk.ui.openPanel("module/redBagCash/redBagCash");
|
|
|
};
|
|
|
e.prototype.clickNextMission = function() {
|
|
|
+this.checkIfClearLevelScore();
|
|
|
l.default.Inst.nextLevel();
|
|
|
};
|
|
|
e.prototype.clickBack = function() {
|
|
|
+this.checkIfClearLevelScore();
|
|
|
l.default.Inst.restart();
|
|
|
l.default.Inst.node.active = !1;
|
|
|
};
|
|
|
@@ -18481,6 +18571,12 @@ e.prototype.onDestroy = function() {
|
|
|
this.cur_stage === s.none && mk.audio.playEffect("rewardClose");
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
+this.checkIfClearLevelScore();
|
|
|
+l.default.Inst && l.default.Inst.ifPass ? l.default.Inst.gameCount() : mk.ad.checkShowInterByChance();
|
|
|
+this.hasWatchVideo || gData.adData.checkShowFullInter(2);
|
|
|
+mk.ad.destoryBanner();
|
|
|
+};
|
|
|
+e.prototype.checkIfClearLevelScore = function() {
|
|
|
if (2 == gData.reward.subType) {
|
|
|
console.log("清除积分啦啦啦啦啦阿拉拉拉啦--------------------------------", l.default.Inst.ifPass);
|
|
|
gData.gameData.setProp(p.GameProp.curTotalScore, 0);
|
|
|
@@ -18489,9 +18585,6 @@ l.default.Inst.curGetScore = 0;
|
|
|
l.default.Inst.finalGetScore = 0;
|
|
|
l.default.Inst.initScore();
|
|
|
}
|
|
|
-l.default.Inst && l.default.Inst.ifPass ? l.default.Inst.gameCount() : mk.ad.checkShowInterByChance();
|
|
|
-this.hasWatchVideo || gData.adData.checkShowFullInter(2);
|
|
|
-mk.ad.destoryBanner();
|
|
|
};
|
|
|
i([ f({
|
|
|
displayName: "红包类型",
|
|
|
@@ -23245,6 +23338,7 @@ e.perMinus = 0;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
+mk.ad.bannerOperOnlyFullScreen(0);
|
|
|
this.baozhaAni.node.active = !1;
|
|
|
this.initData();
|
|
|
};
|
|
|
@@ -23351,6 +23445,7 @@ this.playOver();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
+mk.ad.bannerOperOnlyFullScreen(1);
|
|
|
mk.ad.checkShowInterByChance();
|
|
|
};
|
|
|
i([ f(cc.Node) ], e.prototype, "node_turn", void 0);
|