|
|
@@ -2019,7 +2019,7 @@ this.last_time_stamp = 0;
|
|
|
this.adSdk = t;
|
|
|
}
|
|
|
t.prototype.init = function() {
|
|
|
-cc.sys.os == cc.sys.OS_ANDROID ? this.ifShowAd = !0 : this.ifShowAd = !1;
|
|
|
+cc.sys.os, cc.sys.OS_ANDROID, this.ifShowAd = "1" == gData.gameData.configs.ServerConfig.ifShowAd;
|
|
|
this.adSdk.initSDK();
|
|
|
};
|
|
|
t.prototype.watchAd = function(t) {
|
|
|
@@ -7086,22 +7086,26 @@ e.btn5 = null;
|
|
|
e.btn6 = null;
|
|
|
e.btn7 = null;
|
|
|
e.btn8 = null;
|
|
|
-e.btn_redeem = null;
|
|
|
+e.btn9 = null;
|
|
|
+e.btn_pigbank = null;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
gData.gameData.funBtns = this;
|
|
|
};
|
|
|
-e.prototype.start = function() {};
|
|
|
+e.prototype.start = function() {
|
|
|
+this.init();
|
|
|
+};
|
|
|
e.prototype.init = function() {
|
|
|
for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
|
|
|
var n = this["btn" + (e + 1)];
|
|
|
n && (n.active = "1" == t[e]);
|
|
|
}
|
|
|
+this.btn_pigbank && (this.btn_pigbank.active = "1" == t[3]);
|
|
|
this.updateRedeem();
|
|
|
};
|
|
|
e.prototype.updateRedeem = function() {
|
|
|
-this.btn_redeem.active = gData.redeem.showBtn;
|
|
|
+this.btn9 && (this.btn9.active = gData.redeem.showBtn && "1" == gData.gameData.funOpenData[8]);
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.redeem.init_btnChange) {
|
|
|
@@ -7144,7 +7148,11 @@ displayName: "气泡红包组"
|
|
|
a([ s({
|
|
|
type: cc.Node,
|
|
|
displayName: "福利礼包"
|
|
|
-}) ], e.prototype, "btn_redeem", void 0);
|
|
|
+}) ], e.prototype, "btn9", void 0);
|
|
|
+a([ s({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "金猪币按钮"
|
|
|
+}) ], e.prototype, "btn_pigbank", void 0);
|
|
|
return a([ c ], e);
|
|
|
}(cc.Component);
|
|
|
n.default = l;
|
|
|
@@ -7453,6 +7461,7 @@ return [ 2 ];
|
|
|
}
|
|
|
mk.console.logSingle("getAllConfigInfo", e.data);
|
|
|
this.initConfigs(e.data);
|
|
|
+mk.ad.init();
|
|
|
t = {};
|
|
|
return [ 4, mk.http.sendData("getInfoCrypt", t) ];
|
|
|
|
|
|
@@ -8268,7 +8277,7 @@ this.spr_progress.fillRange = t;
|
|
|
if (t >= 1) {
|
|
|
gData.reward.subType = 2;
|
|
|
mk.ad.videoAdType = f.VideoAdType.LevelScoreRedBag;
|
|
|
-mk.ui.getCurOnPanel("rewardLuck") || mk.ui.openPanel("module/reward/rewardLuck");
|
|
|
+mk.ui.getCurOnPanel("rewardLuck") || "1" != gData.gameData.funOpenData[6] || mk.ui.openPanel("module/reward/rewardLuck");
|
|
|
}
|
|
|
};
|
|
|
e.prototype.initPropNum = function() {
|
|
|
@@ -8599,7 +8608,11 @@ 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 (!(mk.ui.getCurOnPanel("rewardLuck") || this.finalGetScore >= this.targetScore)) {
|
|
|
+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));
|
|
|
+} else {
|
|
|
this.gameCount();
|
|
|
console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(f.GameProp.levelNum));
|
|
|
}
|
|
|
@@ -9008,7 +9021,7 @@ e.prototype.initMusic = function() {
|
|
|
mk.audio.playMusic("bgm");
|
|
|
};
|
|
|
e.prototype.initBtns = function() {
|
|
|
-this.node_btn.getComponent(p.default).init();
|
|
|
+this.node_btn.getComponent(p.default);
|
|
|
};
|
|
|
e.prototype.initQiPaos = function() {
|
|
|
mk.tween.scale(this.btn_getRed1, .6, 0, 1, null, "backOut");
|
|
|
@@ -9778,7 +9791,7 @@ break;
|
|
|
};
|
|
|
t.prototype.openPanelByBtn = function() {
|
|
|
var t = gData.guideWeakData.cur_guide_id;
|
|
|
-gData.gameData.funBtns["btn" + t] && gData.gameData.funBtns["btn" + t].emit("click");
|
|
|
+gData.gameData.funBtns["btn" + t] && "1" == gData.gameData.funOpenData["" + t] && gData.gameData.funBtns["btn" + t].emit("click");
|
|
|
};
|
|
|
return t;
|
|
|
}();
|
|
|
@@ -11526,7 +11539,6 @@ return i(this, function(i) {
|
|
|
switch (i.label) {
|
|
|
case 0:
|
|
|
console.log("uin ", gData.loginData.uin);
|
|
|
-mk.ad.init();
|
|
|
mk.console.logSingle("machineInfo", gData.appData.machineInfo);
|
|
|
return [ 4, mk.http.sendData("user/machine", gData.appData.machineInfo) ];
|
|
|
|
|
|
@@ -20453,7 +20465,10 @@ e = mk.math.randomByWeight(this.weights, 100, !1);
|
|
|
return "<outline color=#000000 width=1><color=#19F7FF>" + n + "</color>成功提现了<color=#FCE300>" + this.moneys[e] + "元</color></outline>";
|
|
|
};
|
|
|
e.prototype.onLoad = function() {
|
|
|
+if ("1" == gData.gameData.funOpenData[8]) {
|
|
|
+this.node.active = !0;
|
|
|
this.play();
|
|
|
+} else this.node.active = !1;
|
|
|
};
|
|
|
e.prototype.play = function() {
|
|
|
this.reset();
|