Commit d7663c95 authored by wjf's avatar wjf

l

parent 882d9054
...@@ -10218,7 +10218,7 @@ exports.ResJson = { ...@@ -10218,7 +10218,7 @@ exports.ResJson = {
} }
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596423352/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596433145/resource/"
}; };
...@@ -21171,6 +21171,7 @@ var PlayScene = (function (_super) { ...@@ -21171,6 +21171,7 @@ var PlayScene = (function (_super) {
return PlayScene; return PlayScene;
}(Scene_1.Scene)); }(Scene_1.Scene));
exports.PlayScene = PlayScene; exports.PlayScene = PlayScene;
var isOn = true;
var SettingBtn = (function (_super) { var SettingBtn = (function (_super) {
__extends(SettingBtn, _super); __extends(SettingBtn, _super);
function SettingBtn() { function SettingBtn() {
...@@ -21185,17 +21186,17 @@ var SettingBtn = (function (_super) { ...@@ -21185,17 +21186,17 @@ var SettingBtn = (function (_super) {
var t = RES_1.RES.getRes("musicOn.png"); var t = RES_1.RES.getRes("musicOn.png");
_this = _super.call(this, t) || this; _this = _super.call(this, t) || this;
_this.addEventListener(FYGE.MouseEvent.CLICK, function () { _this.addEventListener(FYGE.MouseEvent.CLICK, function () {
_this.isOn = !_this.isOn; isOn = !isOn;
_this.texture = RES_1.RES.getRes(_this.isOn ? "musicOn.png" : "musicOff.png"); _this.texture = RES_1.RES.getRes(isOn ? "musicOn.png" : "musicOff.png");
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: _this.isOn }); TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: isOn });
}, _this); }, _this);
_this.isOn = true; if (isOn)
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: _this.isOn }); TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: true });
Main_1.GDispatcher.addEventListener(G_EVENT_1.G_EVENT.ON_SHOW, _this.onShow, _this); Main_1.GDispatcher.addEventListener(G_EVENT_1.G_EVENT.ON_SHOW, _this.onShow, _this);
return _this; return _this;
} }
class_1.prototype.onShow = function () { class_1.prototype.onShow = function () {
if (this.isOn) if (isOn)
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: true }); TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: true });
}; };
class_1.prototype.destroy = function () { class_1.prototype.destroy = function () {
...@@ -22344,7 +22345,7 @@ var PrizeBox = (function (_super) { ...@@ -22344,7 +22345,7 @@ var PrizeBox = (function (_super) {
var _this = this; var _this = this;
this.position.set(558, 269); this.position.set(558, 269);
this.checkTip = this.addChild(Tools_1.Tools.getText('再闯XXX关', 22, '#ffffff', TEXT_ALIGN.CENTER, 158, 0, 64)); this.checkTip = this.addChild(Tools_1.Tools.getText('再闯XXX关', 22, '#ffffff', TEXT_ALIGN.CENTER, 158, 0, 64));
this.tip = this.addChild(Tools_1.Tools.getText('参与红包抽奖\n赢XXX优惠券', 17, '#ec5a5a', TEXT_ALIGN.CENTER, 158, 0, 115)); this.tip = this.addChild(Tools_1.Tools.getText('参与红包抽奖\n赢XXX优惠券', 17, '#ec5a5a', TEXT_ALIGN.CENTER, 158, 0, 116));
this.tip.lineSpacing = 0; this.tip.lineSpacing = 0;
this.prizeImg = this.addChild(Tools_1.Tools.getSprite('map_star_enable.png', 39, 150)); this.prizeImg = this.addChild(Tools_1.Tools.getSprite('map_star_enable.png', 39, 150));
this.prizeImg.width = 98; this.prizeImg.width = 98;
...@@ -22369,15 +22370,20 @@ var PrizeBox = (function (_super) { ...@@ -22369,15 +22370,20 @@ var PrizeBox = (function (_super) {
this.tip.text = '有机会获得'; this.tip.text = '有机会获得';
this.prizeImg.texture = Texture.fromUrl(Tools_1.Tools.baseInfo.levelPrize["level_" + upLevel_1]); this.prizeImg.texture = Texture.fromUrl(Tools_1.Tools.baseInfo.levelPrize["level_" + upLevel_1]);
this.addEventListener(FYGE.MouseEvent.CLICK, function () { this.addEventListener(FYGE.MouseEvent.CLICK, function () {
Tools_1.Tools.btnDelay(_this);
ctrls_1.showToast(_this.checkTip.text + "才可以抽奖哦"); ctrls_1.showToast(_this.checkTip.text + "才可以抽奖哦");
}, this); }, this);
} }
else if (prizes.length == 1 && +prizes[0].level == 120) { else if (prizes.length == 1 && +prizes[0].level == 120) {
this.checkTip.text = "\u7B49\u5F85\u5F00\u5956"; this.checkTip.text = Tools_1.Tools.gameData.topAward.openPrizeStatus
this.tip.text = "8\u670828\u65E510\u70B9\n\u5F00\u542F\u5927\u5956"; ? '已开奖' : '等待开奖';
this.tip.text = "8\u670828\u65E510\u70B9";
this.prizeImg.y += 4;
this.prizeImg.texture = Texture.fromUrl(Tools_1.Tools.baseInfo.levelPrize['level_120']); this.prizeImg.texture = Texture.fromUrl(Tools_1.Tools.baseInfo.levelPrize['level_120']);
this.addEventListener(FYGE.MouseEvent.CLICK, function () { this.addEventListener(FYGE.MouseEvent.CLICK, function () {
ctrls_1.showToast(_this.tip.text); Tools_1.Tools.btnDelay(_this);
ctrls_1.showToast(Tools_1.Tools.gameData.topAward.openPrizeStatus
? '已开奖' : _this.tip.text);
}, this); }, this);
} }
else { else {
...@@ -22391,6 +22397,7 @@ var PrizeBox = (function (_super) { ...@@ -22391,6 +22397,7 @@ var PrizeBox = (function (_super) {
this.tip.text = "\u62BD\u53D6" + lowerLevel_1 + "\u5173\u5956\u52B1"; this.tip.text = "\u62BD\u53D6" + lowerLevel_1 + "\u5173\u5956\u52B1";
this.prizeImg.texture = Texture.fromUrl(Tools_1.Tools.baseInfo.levelPrize["level_" + lowerLevel_1]); this.prizeImg.texture = Texture.fromUrl(Tools_1.Tools.baseInfo.levelPrize["level_" + lowerLevel_1]);
this.addEventListener(FYGE.MouseEvent.CLICK, function () { this.addEventListener(FYGE.MouseEvent.CLICK, function () {
Tools_1.Tools.btnDelay(_this);
ctrls_1.changeScene(LotteryScene_1.LotteryScene, { level: lowerLevel_1 }); ctrls_1.changeScene(LotteryScene_1.LotteryScene, { level: lowerLevel_1 });
}, this); }, this);
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -8398,5 +8398,5 @@ export const ResJson = { ...@@ -8398,5 +8398,5 @@ export const ResJson = {
} }
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596423352/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596433145/resource/"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment