Commit d8c2ce50 authored by wildfirecode's avatar wildfirecode

1

parent f8b9d0c3
......@@ -1468,7 +1468,7 @@ var MConfigs;
});
}
MConfigs.updateConfig = updateConfig;
MConfigs.countDown = 300;
MConfigs.countDown = 60 * 1;
MConfigs.size = [0.3125, 0.5357, 0.7321, 1];
MConfigs.drop = [
{
......@@ -4283,7 +4283,7 @@ exports.ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/kickball-feile/1593518825/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/kickball-feile/1593521423/resource/"
};
......@@ -6033,6 +6033,37 @@ exports.getNewbieLink = function () {
};
/***/ }),
/***/ "./src/datas/musicFlag.ts":
/*!********************************!*\
!*** ./src/datas/musicFlag.ts ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var key = 'musicFlagKey';
exports.getMusicOpen = function () {
return my ?
my.getStorageSync({ key: key }).data != "false" :
localStorage.getItem(key) != "false";
};
exports.setMusicOpen = function (v) {
if (my) {
my.setStorageSync({
key: key,
data: v ? "true" : "false"
});
}
else {
localStorage.setItem(key, v ? "true" : "false");
}
};
/***/ }),
/***/ "./src/datas/rankFlag.ts":
......@@ -8950,7 +8981,6 @@ var PrizePanel = (function (_super) {
ctrls_1.showPanel(Tip2Panel_1.Tip2Panel);
}
};
PrizePanel.prototype.initEvents = function () {
this.closeBtn.addEventListener(FYGE.MouseEvent.CLICK, this.onclick_closeBtn, this);
this.btn.addEventListener(FYGE.MouseEvent.CLICK, this.onclick_btn, this);
......@@ -11114,13 +11144,13 @@ var Tools_1 = __webpack_require__(/*! ../Tools */ "./src/Tools.ts");
var InviteInfoPanel_1 = __webpack_require__(/*! ./../panels/InviteInfoPanel */ "./src/panels/InviteInfoPanel.ts");
var RecordScene_1 = __webpack_require__(/*! ./RecordScene */ "./src/scenes/RecordScene.ts");
var ShootPlanet_1 = __webpack_require__(/*! ./ShootPlanet */ "./src/scenes/ShootPlanet.ts");
var musicFlag_1 = __webpack_require__(/*! ../datas/musicFlag */ "./src/datas/musicFlag.ts");
exports.svgaPool = {};
var StartScene = (function (_super) {
__extends(StartScene, _super);
function StartScene() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.list = ['1000.png', '2000.png', '8000.png', 'revive.png'];
_this.isMusicPlay = true;
_this.onStartBtnClick = function () { return __awaiter(_this, void 0, void 0, function () {
var _a, success, code, id, message;
return __generator(this, function (_b) {
......@@ -11228,7 +11258,7 @@ var StartScene = (function (_super) {
adstr = Tools_1.Tool.getText("", 22, "#ffffff", FYGE.TEXT_ALIGN.CENTER, 384);
adstr.lineType = FYGE.TEXT_lINETYPE.MULTI;
adstr.textAlign = FYGE.TEXT_ALIGN.CENTER;
adstr.text = " \u8001\u7239\u978B\u3001T\u6064\u8D85\u591A\u597D\u793C\u7B49\u4F60\u62FF";
adstr.text = "\u8001\u7239\u978B\u3001T\u6064\u8D85\u591A\u597D\u793C\u7B49\u4F60\u62FF";
adstr.position.set(257, 810);
this.addChild(adstr);
this.times = Tools_1.Tool.getText("", 26, "#ffffff");
......@@ -11268,18 +11298,18 @@ var StartScene = (function (_super) {
});
musicBtn_Open = this._musicBtnOpen = new FYGE.Button(RES_1.RES.getRes("music_Open.png"));
musicBtn_Open.position.set(675, 235);
musicBtn_Open.visible = this.isMusicPlay;
musicBtn_Open.visible = musicFlag_1.getMusicOpen();
musicBtn_Open.addEventListener(FYGE.MouseEvent.CLICK, function () {
console.log("关闭音乐");
_this.isMusicPlay = false;
musicFlag_1.setMusicOpen(false);
_this.setMusicBtnState();
});
musicBtn_Close = this._musicBtnClose = new FYGE.Button(RES_1.RES.getRes("music_Close.png"));
musicBtn_Close.position.set(675, 235);
musicBtn_Close.visible = !this.isMusicPlay;
musicBtn_Close.visible = !musicFlag_1.getMusicOpen();
musicBtn_Close.addEventListener(FYGE.MouseEvent.CLICK, function () {
console.log("开启音乐");
_this.isMusicPlay = true;
musicFlag_1.setMusicOpen(true);
_this.setMusicBtnState();
});
this.setMusicBtnState();
......@@ -11311,6 +11341,9 @@ var StartScene = (function (_super) {
}
ctrls_1.showPanel(TaskPanel_1.TaskPanel);
});
if (musicFlag_1.getMusicOpen()) {
console.log('播放音乐');
}
return [4, getGameInfo_1.default()];
case 1:
result = _a.sent();
......@@ -11383,8 +11416,8 @@ var StartScene = (function (_super) {
this._timesCount = gameTimes;
};
StartScene.prototype.setMusicBtnState = function () {
this._musicBtnClose.visible = !this.isMusicPlay;
this._musicBtnOpen.visible = this.isMusicPlay;
this._musicBtnClose.visible = !musicFlag_1.getMusicOpen();
this._musicBtnOpen.visible = musicFlag_1.getMusicOpen();
};
StartScene.prototype.initEvents = function () {
FYGE.GDispatcher.addEventListener("signPrizeMoving", this.signPrizeMoving, this);
......
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