Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
babycare_xiaoxiao
Commits
d7663c95
Commit
d7663c95
authored
Aug 03, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
882d9054
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
+20
-13
output.js
output.js
+18
-11
output.js.map
output.js.map
+1
-1
ResJson.ts
src/ResJson.ts
+1
-1
No files found.
output.js
View file @
d7663c95
...
@@ -10218,7 +10218,7 @@ exports.ResJson = {
...
@@ -10218,7 +10218,7 @@ exports.ResJson = {
}
}
}
}
],
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/15964
23352
/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/15964
33145
/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, 11
5
));
this.tip = this.addChild(Tools_1.Tools.getText('参与红包抽奖\n赢XXX优惠券', 17, '#ec5a5a', TEXT_ALIGN.CENTER, 158, 0, 11
6
));
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);
}
}
output.js.map
View file @
d7663c95
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/ResJson.ts
View file @
d7663c95
...
@@ -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/15964
23352
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/15964
33145
/resource/"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment