|
|
@@ -3108,6 +3108,7 @@ e.prototype.clickSheepBtn = function() {
|
|
|
var t = this;
|
|
|
if (this.sheepMoveEnd) {
|
|
|
mk.audio.playEffect("button");
|
|
|
+mk.ad.videoAdType = s.VideoAdType.video_init_10;
|
|
|
mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
this.sheepMoveEnd = !1;
|
|
|
this.hb_btn.active = !1;
|
|
|
@@ -3157,13 +3158,13 @@ a = Math.floor(n / 3);
|
|
|
i = n % 3;
|
|
|
mk.audio.playEffect("redmoney");
|
|
|
if ("bird_1" == t) {
|
|
|
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, a);
|
|
|
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, a);
|
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, i);
|
|
|
} else if ("bird_2" == t) {
|
|
|
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, a);
|
|
|
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, a);
|
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, i);
|
|
|
} else if ("dog" == t) {
|
|
|
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, a);
|
|
|
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, a);
|
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, i);
|
|
|
}
|
|
|
}
|
|
|
@@ -8082,7 +8083,7 @@ break;
|
|
|
case s.FactroyState.Sick:
|
|
|
mk.data.sendDataEvent(s.DataEventId.button_click, "停电icon");
|
|
|
gData.adClearSickData.openPanel(this.tab, this.configID);
|
|
|
-mk.console.log("停电icon");
|
|
|
+mk.console.logSingle("VVVV ", "停电icon");
|
|
|
}
|
|
|
return [ 2 ];
|
|
|
});
|
|
|
@@ -9340,11 +9341,6 @@ e = "";
|
|
|
e = gData.farmMapData.chooseType == l.ProductType.nzw ? "game/coregame/texture/plant_icons/plantIcon_" : "game/coregame/texture/factory_icons/factory_";
|
|
|
o = gData.farmMapData.maxUnluckValue;
|
|
|
if (!(t.picture <= o)) return [ 3, 2 ];
|
|
|
-n = this.sp_icon;
|
|
|
-return [ 4, mk.loader.load(e + t.picture, cc.SpriteFrame) ];
|
|
|
-
|
|
|
-case 1:
|
|
|
-n.spriteFrame = c.sent();
|
|
|
this.lbl_nameDes.node.active = !0;
|
|
|
this.lbl_nameDes.string = t.name + " " + t.time + "秒成熟";
|
|
|
this.lbl_des.string = "最高收获" + t.menuRedBagCoin / 100 + "红包币";
|
|
|
@@ -9359,38 +9355,43 @@ this.node_ungetBtn.active = !0;
|
|
|
this.node_unluckBtn.active = !1;
|
|
|
this.node_redPoint.active = !0;
|
|
|
}
|
|
|
+n = this.sp_icon;
|
|
|
+return [ 4, mk.loader.load(e + t.picture, cc.SpriteFrame) ];
|
|
|
+
|
|
|
+case 1:
|
|
|
+n.spriteFrame = c.sent();
|
|
|
return [ 3, 6 ];
|
|
|
|
|
|
case 2:
|
|
|
if (t.picture - 1 != o) return [ 3, 4 ];
|
|
|
-a = this.sp_icon;
|
|
|
-return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
-
|
|
|
-case 3:
|
|
|
-a.spriteFrame = c.sent();
|
|
|
-i = gData.gameData.getProductMakeTimesById(t.picture - 1);
|
|
|
-r = gData.gameData.getProductMap(t.picture - 1).name;
|
|
|
-s = this.getDesByType();
|
|
|
-this.lbl_des.string = "" + s + this.data.value + "次" + r + "后解锁\n(" + i + "/" + t.value + ")";
|
|
|
+a = gData.gameData.getProductMakeTimesById(t.picture - 1);
|
|
|
+i = gData.gameData.getProductMap(t.picture - 1).name;
|
|
|
+r = this.getDesByType();
|
|
|
+this.lbl_des.string = "" + r + this.data.value + "次" + i + "后解锁\n(" + a + "/" + t.value + ")";
|
|
|
this.node_getBtn.active = !1;
|
|
|
this.node_ungetBtn.active = !1;
|
|
|
this.node_unluckBtn.active = !0;
|
|
|
this.lbl_nameDes.node.active = !1;
|
|
|
this.node_redPoint.active = !1;
|
|
|
+s = this.sp_icon;
|
|
|
+return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
+
|
|
|
+case 3:
|
|
|
+s.spriteFrame = c.sent();
|
|
|
return [ 3, 6 ];
|
|
|
|
|
|
case 4:
|
|
|
-p = this.sp_icon;
|
|
|
-return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
-
|
|
|
-case 5:
|
|
|
-p.spriteFrame = c.sent();
|
|
|
this.lbl_des.string = "神秘物种,等待发现";
|
|
|
this.node_getBtn.active = !1;
|
|
|
this.node_ungetBtn.active = !1;
|
|
|
this.node_unluckBtn.active = !0;
|
|
|
this.lbl_nameDes.node.active = !1;
|
|
|
this.node_redPoint.active = !1;
|
|
|
+p = this.sp_icon;
|
|
|
+return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
+
|
|
|
+case 5:
|
|
|
+p.spriteFrame = c.sent();
|
|
|
c.label = 6;
|
|
|
|
|
|
case 6:
|
|
|
@@ -10061,10 +10062,10 @@ if (0 != (e = r.sent()).errcode) return [ 2 ];
|
|
|
o = e.data.redMoneyAddition;
|
|
|
console.log("addCoinByFarmer===============>", o);
|
|
|
if (o > 0) {
|
|
|
-n = Math.floor(o / 3);
|
|
|
-a = o % 3;
|
|
|
+n = Math.floor(o / 2);
|
|
|
+a = o % 2;
|
|
|
mk.audio.playEffect("redmoney");
|
|
|
-for (i = 0; 3 != i; ++i) mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
|
|
|
+if (n > 0) for (i = 0; 2 != i; ++i) mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
|
|
|
a > 0 && mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, a);
|
|
|
}
|
|
|
return [ 2 ];
|
|
|
@@ -10580,7 +10581,6 @@ c = this.node.convertToNodeSpaceAR(u);
|
|
|
cc.tween(e).to(r, {
|
|
|
position: cc.v3(c)
|
|
|
}, cc.easeSineOut()).call(function() {
|
|
|
-console.log("end_pos ", e.position);
|
|
|
-1 != a && i.showLabStrChange(a);
|
|
|
if (null != n) {
|
|
|
i.is_new_cb && n();
|
|
|
@@ -10855,15 +10855,12 @@ p = "Canvas/主界面层/game/node_ui/顶部个人信息/金猪币按钮/icon_zb
|
|
|
}
|
|
|
o = p;
|
|
|
}
|
|
|
-l = cc.find(o);
|
|
|
-mk.console.logSingle("end ", o);
|
|
|
-var u = l.parent.convertToWorldSpaceAR(l.getPosition());
|
|
|
+var u = (l = cc.find(o)).parent.convertToWorldSpaceAR(l.getPosition());
|
|
|
c = this.node.convertToNodeSpaceAR(u);
|
|
|
} else c = this.node.convertToNodeSpaceAR(o);
|
|
|
cc.tween(e).to(r, {
|
|
|
position: cc.v3(c)
|
|
|
}, cc.easeSineOut()).call(function() {
|
|
|
-console.log("end_pos ", e.position);
|
|
|
-1 != a && i.showLabStrChange(a);
|
|
|
if (null != n) {
|
|
|
i.is_new_cbArr[t] && n();
|
|
|
@@ -11423,7 +11420,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.Fun = void 0;
|
|
|
-var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), S = t("./module/RedeemData"), A = t("./module/MoreGameData"), P = t("./module/SettingData"), k = t("./module/GuideData"), O = t("./module/GuideWeakData"), I = t("./ConfigData"), T = t("./module/NewCashUIData"), R = t("../../before/view/data/ADUnlockData"), C = t("../../before/view/data/PlantData"), x = t("../../before/main/FarmSystem"), N = t("../../before/view/data/HarvestData"), F = t("../../before/view/data/ADClearSickData"), j = t("../../before/main/PastureSystem"), M = t("../../before/main/FactorySystem"), B = t("./module/FarmMapData"), L = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), G = t("./module/LineUpUIData"), U = function() {
|
|
|
+var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), S = t("./module/RedeemData"), A = t("./module/MoreGameData"), k = t("./module/SettingData"), P = t("./module/GuideData"), O = t("./module/GuideWeakData"), I = t("./ConfigData"), T = t("./module/NewCashUIData"), R = t("../../before/view/data/ADUnlockData"), C = t("../../before/view/data/PlantData"), x = t("../../before/main/FarmSystem"), N = t("../../before/view/data/HarvestData"), F = t("../../before/view/data/ADClearSickData"), M = t("../../before/main/PastureSystem"), j = t("../../before/main/FactorySystem"), B = t("./module/FarmMapData"), L = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), G = t("./module/LineUpUIData"), U = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -11436,7 +11433,7 @@ this.wechatData = new l.WechatData();
|
|
|
this.httpData = new r.HttpData();
|
|
|
this.adData = new y.AdData();
|
|
|
this.storageData = new s.StorageData();
|
|
|
-this.guideData = new k.GuideData();
|
|
|
+this.guideData = new P.GuideData();
|
|
|
this.guideWeakData = new O.default();
|
|
|
this.reward = new g.RewardData();
|
|
|
this.help = new p.HelpData();
|
|
|
@@ -11447,7 +11444,7 @@ this.sign = new h.SignData();
|
|
|
this.receiptNotice = new _.ReceiptNoticeData();
|
|
|
this.redBagCash = new D.RedBagCashData();
|
|
|
this.cashNormal = new m.CashNormalData();
|
|
|
-this.setting = new P.SettingData();
|
|
|
+this.setting = new k.SettingData();
|
|
|
this.moreGame = new A.MoreGameData();
|
|
|
this.blessingBag = new v.BlessingBagData();
|
|
|
this.cashPro = new b.default();
|
|
|
@@ -11458,8 +11455,8 @@ this.adUnlockData = new R.default();
|
|
|
this.plantData = new C.default();
|
|
|
this.harvestData = new N.default();
|
|
|
this.adClearSickData = new F.default();
|
|
|
-this.pastureSystem = new j.default();
|
|
|
-this.factorySystem = new M.default();
|
|
|
+this.pastureSystem = new M.default();
|
|
|
+this.factorySystem = new j.default();
|
|
|
this.farmSystem = new x.FarmSystem();
|
|
|
this.farmMapData = new B.FarmMapData();
|
|
|
this.farmGradeData = new L.GradeRewardData();
|
|
|
@@ -12401,20 +12398,22 @@ break;
|
|
|
case p.dw:
|
|
|
var c = 30001;
|
|
|
r = !1;
|
|
|
-for (var s = 0; s < n; s++) {
|
|
|
-if ((a = this.getPastureDataMap(c)).state == l.Lock && this.playerProp.gradeLevel >= o[s].value) {
|
|
|
+for (var s = 0, d = 0; d < n; d++) {
|
|
|
+if ((a = this.getPastureDataMap(c)).state == l.Lock && this.playerProp.gradeLevel >= o[d].value) {
|
|
|
a = {
|
|
|
id: c,
|
|
|
state: l.Empty,
|
|
|
-productID: o[s].picture,
|
|
|
+productID: o[d].picture,
|
|
|
growSpan: 0
|
|
|
};
|
|
|
this.setPastureDataMap(c, a, !1);
|
|
|
r = !0;
|
|
|
+s = o[d].picture;
|
|
|
}
|
|
|
c++;
|
|
|
}
|
|
|
if (r) {
|
|
|
+this.setMaxProduct(p.dw, s);
|
|
|
this.setProp(i.pastureData, this._pastureData);
|
|
|
this.setNextProduct();
|
|
|
}
|
|
|
@@ -12422,15 +12421,15 @@ break;
|
|
|
|
|
|
default:
|
|
|
r = !1;
|
|
|
-var d = this.getConfigIDByTab(e);
|
|
|
-if ((a = this.getFactoryDataMap(d)).state == u.Lock && this.playerProp.gradeLevel >= o[0].value) {
|
|
|
+var h = this.getConfigIDByTab(e);
|
|
|
+if ((a = this.getFactoryDataMap(h)).state == u.Lock && this.playerProp.gradeLevel >= o[0].value) {
|
|
|
a = {
|
|
|
id: c,
|
|
|
state: u.Empty,
|
|
|
productID: 0,
|
|
|
growSpan: 0
|
|
|
};
|
|
|
-this.setFactoryDataMap(d, a, !1);
|
|
|
+this.setFactoryDataMap(h, a, !1);
|
|
|
r = !0;
|
|
|
this.setMaxProduct(e, o[0].picture);
|
|
|
}
|
|
|
@@ -12551,6 +12550,7 @@ set: function(t) {
|
|
|
this._redMoney = t;
|
|
|
gData.gameData.init_coin = !0;
|
|
|
gData.gameData.init_wallet_redMoney = !0;
|
|
|
+mk.ui.invokeRefreshEventByName("refreshCoin");
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -13258,9 +13258,6 @@ mk.storage.setStorage("lastTimeSpan", this.lastTimeSpan);
|
|
|
gData.gameData.init_leftTimes = !1;
|
|
|
};
|
|
|
e.prototype.onCount = function() {};
|
|
|
-e.prototype.testFly = function() {
|
|
|
-mk.fly.PlayCoinAnim(1, 20, null, cc.v2(0, 0));
|
|
|
-};
|
|
|
e.prototype.onClickHuTui = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "互推icon");
|
|
|
};
|
|
|
@@ -13276,18 +13273,13 @@ mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
e.prototype.onClickRedBagCash = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "常规提现-提现icon");
|
|
|
};
|
|
|
-e.prototype.onClickGoldPigCash = function() {};
|
|
|
-e.prototype.onClickPigBank = function() {};
|
|
|
e.prototype.onClickTurntable = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "抽奖icon");
|
|
|
-mk.console.log("onClickTurntable");
|
|
|
+mk.console.logSingle("VVVV ", "onClickTurntable");
|
|
|
};
|
|
|
e.prototype.onClickSign = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "签到icon");
|
|
|
-mk.console.log("onClickSign");
|
|
|
-};
|
|
|
-e.prototype.onClickFudai = function() {
|
|
|
-mk.data.sendDataEvent(l.DataEventId.button_click, "福袋icon");
|
|
|
+mk.console.logSingle("VVVV ", "onClickSign");
|
|
|
};
|
|
|
e.prototype.onClickShare = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "互推icon");
|
|
|
@@ -17566,7 +17558,7 @@ cc._RF.push(e, "f0038hKHC9Nf5+ipaUV9rc5", "MKSystem");
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var n = t("../sdk/BuglySDK"), a = t("../utils/FileUtil"), i = t("../utils/TimeUtil"), r = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), p = t("../utils/EncryptUtil"), u = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), g = t("./AdSystem"), m = t("./JsbSystem"), _ = t("./AudioSystem"), v = t("./PoolSystem"), b = t("../utils/TweenUtil"), D = t("./GuideSystem"), w = t("../utils/StringUtil"), S = t("../../game/component/SetGray"), A = t("../../game/component/NumberAnim"), P = t("../sdk/aliRisk/AliRiskManager"), k = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), O = function() {
|
|
|
+var n = t("../sdk/BuglySDK"), a = t("../utils/FileUtil"), i = t("../utils/TimeUtil"), r = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), p = t("../utils/EncryptUtil"), u = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), g = t("./AdSystem"), m = t("./JsbSystem"), _ = t("./AudioSystem"), v = t("./PoolSystem"), b = t("../utils/TweenUtil"), D = t("./GuideSystem"), w = t("../utils/StringUtil"), S = t("../../game/component/SetGray"), A = t("../../game/component/NumberAnim"), k = t("../sdk/aliRisk/AliRiskManager"), P = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), O = function() {
|
|
|
function t() {}
|
|
|
Object.defineProperty(t.prototype, "time", {
|
|
|
get: function() {
|
|
|
@@ -17654,7 +17646,7 @@ configurable: !0
|
|
|
});
|
|
|
Object.defineProperty(t.prototype, "ad", {
|
|
|
get: function() {
|
|
|
-return this._ad || (this._ad = new g.default(k.default.getInstance()));
|
|
|
+return this._ad || (this._ad = new g.default(P.default.getInstance()));
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -17710,7 +17702,7 @@ configurable: !0
|
|
|
});
|
|
|
Object.defineProperty(t.prototype, "aliRiskManager", {
|
|
|
get: function() {
|
|
|
-return this._aliRiskManager || (this._aliRiskManager = new P.default());
|
|
|
+return this._aliRiskManager || (this._aliRiskManager = new k.default());
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -19505,7 +19497,6 @@ this.lbl_reward_value.string = (gData.receiptNotice.receip_rmb / 100).toFixed(2)
|
|
|
this.lbl_time.string = mk.time.getNowDayStringExtend();
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
gData.gameData.init_redBagTask = !0;
|
|
|
};
|
|
|
i([ s({
|
|
|
@@ -19682,6 +19673,7 @@ this.showElectUI();
|
|
|
}
|
|
|
this.showChangePart();
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
+mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
};
|
|
|
e.prototype.showElectUI = function() {
|
|
|
this.sendRecommendList();
|
|
|
@@ -19711,16 +19703,18 @@ gData.adData.checkPopInter(u.InterAdType.interstitial1_click_1);
|
|
|
mk.ad.showBanner(u.BannerAdType.banner_click_3);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
+mk.ui.removeRefreshEvent(this.node);
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
+0 == t && (t = gData.gameData.playerProp.redMoney);
|
|
|
t /= 100;
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
|
@@ -21116,7 +21110,7 @@ this.awardLabel.string = (t.menuRedBagCoin / 100).toString();
|
|
|
this.timeLabel.string = t.time;
|
|
|
i = !1;
|
|
|
r = 0;
|
|
|
-1 == t.unlock ? (r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0) : 2 == t.unlock && t.value >= gData.gameData.playerProp.gradeLevel && (i = !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);
|
|
|
this.mainNode.active = i;
|
|
|
this.lockNode.active = !i;
|
|
|
if (!i) {
|
|
|
@@ -23363,6 +23357,7 @@ this.initTaskProgressUI();
|
|
|
this.showChangePart();
|
|
|
}
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
+mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
}
|
|
|
};
|
|
|
e.prototype.showNewTaskUI = function() {
|
|
|
@@ -23376,6 +23371,7 @@ e.prototype.onEnable = function() {
|
|
|
mk.ad.showBanner(p.BannerAdType.banner_click_2);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
+mk.ui.removeRefreshEvent(this.node);
|
|
|
mk.ad.destoryBanner();
|
|
|
mk.guide.open(3);
|
|
|
};
|
|
|
@@ -23477,12 +23473,13 @@ t.lbl_value[o].string = "" + n;
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
+0 == t && (t = gData.gameData.playerProp.redMoney);
|
|
|
t /= 100;
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
|
@@ -24558,12 +24555,14 @@ this.watchVideoCall();
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
+mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
gData.adData.checkPopInter(l.InterAdType.interstitial1_click_2);
|
|
|
mk.ad.showBanner(l.BannerAdType.banner_click_1);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
+mk.ui.removeRefreshEvent(this.node);
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
@@ -24575,12 +24574,13 @@ gData.reward.adData = null;
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
+0 == t && (t = gData.gameData.playerProp.redMoney);
|
|
|
t /= 100;
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_cash.string = o.money / 100 + "元";
|
|
|
-this.lbl_cash_out.string = n + "/" + o.redMoney;
|
|
|
+this.lbl_cash_out.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
|
@@ -26357,11 +26357,13 @@ return e;
|
|
|
e.prototype.start = function() {
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
|
|
|
+mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
mk.ad.showBanner(s.BannerAdType.banner_click_5);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
+mk.ui.removeRefreshEvent(this.node);
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
@@ -26373,12 +26375,13 @@ this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerPro
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
+0 == t && (t = gData.gameData.playerProp.redMoney);
|
|
|
t /= 100;
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
|
@@ -28075,6 +28078,7 @@ if (this.canTouch) {
|
|
|
this.onInPolygon && this.onInPolygon.emit([]);
|
|
|
this.onTouchTap && this.onTouchTap.emit([]);
|
|
|
}
|
|
|
+mk.audio.playEffect("button");
|
|
|
if (this.isScaleAct) {
|
|
|
cc.tween(this.node).to(.1, {
|
|
|
scale: 1
|
|
|
@@ -28593,18 +28597,20 @@ e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
mk.ad.showBanner(r.BannerAdType.banner_click_9);
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
+mk.ui.registerRefreshEvent(this.node, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.playerProp.redMoney + gData.reward.add_redbag_value);
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
+0 == t && (t = gData.gameData.playerProp.redMoney);
|
|
|
t /= 100;
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
|
@@ -28617,6 +28623,9 @@ mk.audio.playEffect("button");
|
|
|
gData.reward.addReward();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
+e.prototype.onDisable = function() {
|
|
|
+mk.ui.removeRefreshEvent(this.node);
|
|
|
+};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
mk.audio.playEffect("closeButton");
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -29387,10 +29396,12 @@ e.isPanelOpeningArr = [];
|
|
|
e.isPanelClosingArr = [];
|
|
|
e.curOnPanelDic = {};
|
|
|
e.lastOpenPanelName = "";
|
|
|
+e.registerCallBack = new Map();
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
mk.ui = this;
|
|
|
+this.registerCallBack.clear();
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
this.panelParent || (this.panelParent = this.node);
|
|
|
@@ -29480,6 +29491,26 @@ mk.event.emit("close-panel", e);
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
+e.prototype.registerRefreshEvent = function(t, e, o) {
|
|
|
+void 0 === e && (e = null);
|
|
|
+void 0 === o && (o = "default");
|
|
|
+var n = this.registerCallBack.get(t);
|
|
|
+if (n) n.set(o, e); else {
|
|
|
+var a = new Map();
|
|
|
+a.set(o, e);
|
|
|
+this.registerCallBack.set(t, a);
|
|
|
+}
|
|
|
+};
|
|
|
+e.prototype.invokeRefreshEventByName = function(t) {
|
|
|
+this.registerCallBack.forEach(function(e) {
|
|
|
+e.forEach(function(e, o) {
|
|
|
+o == t && e && e();
|
|
|
+});
|
|
|
+});
|
|
|
+};
|
|
|
+e.prototype.removeRefreshEvent = function(t) {
|
|
|
+this.registerCallBack.get(t) && this.registerCallBack.delete(t);
|
|
|
+};
|
|
|
return i([ s ], e);
|
|
|
}(cc.Component));
|
|
|
o.default = l;
|
|
|
@@ -30273,7 +30304,7 @@ this.initTip();
|
|
|
};
|
|
|
e.prototype.initTip = function() {
|
|
|
this.lbl_redMoney.string = (gData.gameData.playerProp.redMoney / 100).toString();
|
|
|
-this.lbl_value.string = gData.gameData.playerProp.redMoney / 1e6 + "元";
|
|
|
+this.lbl_value.string = (gData.gameData.playerProp.redMoney / 1e6).toFixed(3) + "元";
|
|
|
if (-1 != this.curChooseIndex) {
|
|
|
var t = gData.gameData.configs.CashCfg[this.curChooseIndex];
|
|
|
if (gData.gameData.playerProp.redMoney - t.redMoney >= 0) {
|
|
|
@@ -30759,30 +30790,30 @@ var c = t[s = a + r];
|
|
|
t[s] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8);
|
|
|
}
|
|
|
r = this._hash.words;
|
|
|
-var s = t[a + 0], l = (c = t[a + 1], t[a + 2]), u = t[a + 3], d = t[a + 4], h = t[a + 5], f = t[a + 6], y = t[a + 7], g = t[a + 8], m = t[a + 9], _ = t[a + 10], v = t[a + 11], b = t[a + 12], D = t[a + 13], w = t[a + 14], S = t[a + 15], A = e(A = r[0], O = r[1], k = r[2], P = r[3], s, 7, p[0]), P = e(P, A, O, k, c, 12, p[1]), k = e(k, P, A, O, l, 17, p[2]), O = e(O, k, P, A, u, 22, p[3]);
|
|
|
-A = e(A, O, k, P, d, 7, p[4]), P = e(P, A, O, k, h, 12, p[5]), k = e(k, P, A, O, f, 17, p[6]),
|
|
|
-O = e(O, k, P, A, y, 22, p[7]), A = e(A, O, k, P, g, 7, p[8]), P = e(P, A, O, k, m, 12, p[9]),
|
|
|
-k = e(k, P, A, O, _, 17, p[10]), O = e(O, k, P, A, v, 22, p[11]), A = e(A, O, k, P, b, 7, p[12]),
|
|
|
-P = e(P, A, O, k, D, 12, p[13]), k = e(k, P, A, O, w, 17, p[14]), A = o(A, O = e(O, k, P, A, S, 22, p[15]), k, P, c, 5, p[16]),
|
|
|
-P = o(P, A, O, k, f, 9, p[17]), k = o(k, P, A, O, v, 14, p[18]), O = o(O, k, P, A, s, 20, p[19]),
|
|
|
-A = o(A, O, k, P, h, 5, p[20]), P = o(P, A, O, k, _, 9, p[21]), k = o(k, P, A, O, S, 14, p[22]),
|
|
|
-O = o(O, k, P, A, d, 20, p[23]), A = o(A, O, k, P, m, 5, p[24]), P = o(P, A, O, k, w, 9, p[25]),
|
|
|
-k = o(k, P, A, O, u, 14, p[26]), O = o(O, k, P, A, g, 20, p[27]), A = o(A, O, k, P, D, 5, p[28]),
|
|
|
-P = o(P, A, O, k, l, 9, p[29]), k = o(k, P, A, O, y, 14, p[30]), A = n(A, O = o(O, k, P, A, b, 20, p[31]), k, P, h, 4, p[32]),
|
|
|
-P = n(P, A, O, k, g, 11, p[33]), k = n(k, P, A, O, v, 16, p[34]), O = n(O, k, P, A, w, 23, p[35]),
|
|
|
-A = n(A, O, k, P, c, 4, p[36]), P = n(P, A, O, k, d, 11, p[37]), k = n(k, P, A, O, y, 16, p[38]),
|
|
|
-O = n(O, k, P, A, _, 23, p[39]), A = n(A, O, k, P, D, 4, p[40]), P = n(P, A, O, k, s, 11, p[41]),
|
|
|
-k = n(k, P, A, O, u, 16, p[42]), O = n(O, k, P, A, f, 23, p[43]), A = n(A, O, k, P, m, 4, p[44]),
|
|
|
-P = n(P, A, O, k, b, 11, p[45]), k = n(k, P, A, O, S, 16, p[46]), A = i(A, O = n(O, k, P, A, l, 23, p[47]), k, P, s, 6, p[48]),
|
|
|
-P = i(P, A, O, k, y, 10, p[49]), k = i(k, P, A, O, w, 15, p[50]), O = i(O, k, P, A, h, 21, p[51]),
|
|
|
-A = i(A, O, k, P, b, 6, p[52]), P = i(P, A, O, k, u, 10, p[53]), k = i(k, P, A, O, _, 15, p[54]),
|
|
|
-O = i(O, k, P, A, c, 21, p[55]), A = i(A, O, k, P, g, 6, p[56]), P = i(P, A, O, k, S, 10, p[57]),
|
|
|
-k = i(k, P, A, O, f, 15, p[58]), O = i(O, k, P, A, D, 21, p[59]), A = i(A, O, k, P, d, 6, p[60]),
|
|
|
-P = i(P, A, O, k, v, 10, p[61]), k = i(k, P, A, O, l, 15, p[62]), O = i(O, k, P, A, m, 21, p[63]);
|
|
|
+var s = t[a + 0], l = (c = t[a + 1], t[a + 2]), u = t[a + 3], d = t[a + 4], h = t[a + 5], f = t[a + 6], y = t[a + 7], g = t[a + 8], m = t[a + 9], _ = t[a + 10], v = t[a + 11], b = t[a + 12], D = t[a + 13], w = t[a + 14], S = t[a + 15], A = e(A = r[0], O = r[1], P = r[2], k = r[3], s, 7, p[0]), k = e(k, A, O, P, c, 12, p[1]), P = e(P, k, A, O, l, 17, p[2]), O = e(O, P, k, A, u, 22, p[3]);
|
|
|
+A = e(A, O, P, k, d, 7, p[4]), k = e(k, A, O, P, h, 12, p[5]), P = e(P, k, A, O, f, 17, p[6]),
|
|
|
+O = e(O, P, k, A, y, 22, p[7]), A = e(A, O, P, k, g, 7, p[8]), k = e(k, A, O, P, m, 12, p[9]),
|
|
|
+P = e(P, k, A, O, _, 17, p[10]), O = e(O, P, k, A, v, 22, p[11]), A = e(A, O, P, k, b, 7, p[12]),
|
|
|
+k = e(k, A, O, P, D, 12, p[13]), P = e(P, k, A, O, w, 17, p[14]), A = o(A, O = e(O, P, k, A, S, 22, p[15]), P, k, c, 5, p[16]),
|
|
|
+k = o(k, A, O, P, f, 9, p[17]), P = o(P, k, A, O, v, 14, p[18]), O = o(O, P, k, A, s, 20, p[19]),
|
|
|
+A = o(A, O, P, k, h, 5, p[20]), k = o(k, A, O, P, _, 9, p[21]), P = o(P, k, A, O, S, 14, p[22]),
|
|
|
+O = o(O, P, k, A, d, 20, p[23]), A = o(A, O, P, k, m, 5, p[24]), k = o(k, A, O, P, w, 9, p[25]),
|
|
|
+P = o(P, k, A, O, u, 14, p[26]), O = o(O, P, k, A, g, 20, p[27]), A = o(A, O, P, k, D, 5, p[28]),
|
|
|
+k = o(k, A, O, P, l, 9, p[29]), P = o(P, k, A, O, y, 14, p[30]), A = n(A, O = o(O, P, k, A, b, 20, p[31]), P, k, h, 4, p[32]),
|
|
|
+k = n(k, A, O, P, g, 11, p[33]), P = n(P, k, A, O, v, 16, p[34]), O = n(O, P, k, A, w, 23, p[35]),
|
|
|
+A = n(A, O, P, k, c, 4, p[36]), k = n(k, A, O, P, d, 11, p[37]), P = n(P, k, A, O, y, 16, p[38]),
|
|
|
+O = n(O, P, k, A, _, 23, p[39]), A = n(A, O, P, k, D, 4, p[40]), k = n(k, A, O, P, s, 11, p[41]),
|
|
|
+P = n(P, k, A, O, u, 16, p[42]), O = n(O, P, k, A, f, 23, p[43]), A = n(A, O, P, k, m, 4, p[44]),
|
|
|
+k = n(k, A, O, P, b, 11, p[45]), P = n(P, k, A, O, S, 16, p[46]), A = i(A, O = n(O, P, k, A, l, 23, p[47]), P, k, s, 6, p[48]),
|
|
|
+k = i(k, A, O, P, y, 10, p[49]), P = i(P, k, A, O, w, 15, p[50]), O = i(O, P, k, A, h, 21, p[51]),
|
|
|
+A = i(A, O, P, k, b, 6, p[52]), k = i(k, A, O, P, u, 10, p[53]), P = i(P, k, A, O, _, 15, p[54]),
|
|
|
+O = i(O, P, k, A, c, 21, p[55]), A = i(A, O, P, k, g, 6, p[56]), k = i(k, A, O, P, S, 10, p[57]),
|
|
|
+P = i(P, k, A, O, f, 15, p[58]), O = i(O, P, k, A, D, 21, p[59]), A = i(A, O, P, k, d, 6, p[60]),
|
|
|
+k = i(k, A, O, P, v, 10, p[61]), P = i(P, k, A, O, l, 15, p[62]), O = i(O, P, k, A, m, 21, p[63]);
|
|
|
r[0] = r[0] + A | 0;
|
|
|
r[1] = r[1] + O | 0;
|
|
|
-r[2] = r[2] + k | 0;
|
|
|
-r[3] = r[3] + P | 0;
|
|
|
+r[2] = r[2] + P | 0;
|
|
|
+r[3] = r[3] + k | 0;
|
|
|
},
|
|
|
_doFinalize: function() {
|
|
|
var e = this._data, o = e.words, n = 8 * this._nDataBytes, a = 8 * e.sigBytes;
|