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
e39d71a6
Commit
e39d71a6
authored
Jul 21, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
01b0d3b0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
17 deletions
+66
-17
output.js
output.js
+59
-10
output.js.map
output.js.map
+1
-1
PlayScene.ts
src/scene/PlayScene.ts
+6
-6
No files found.
output.js
View file @
e39d71a6
...
...
@@ -11415,7 +11415,7 @@ var Tools = (function () {
if (!data.isVisitSuccess) {
ctrls_2.showPanel(FailedPanel_1.FailedPanel, data);
}
else if (data.prize
|| data.tool
) {
else if (data.prize
.image || data.tool.type
) {
ctrls_2.showPanel(SuccessPrizePanel_1.SuccessPrizePanel, data);
}
else {
...
...
@@ -21369,6 +21369,56 @@ var FailedPanel = (function (_super) {
exports.FailedPanel = FailedPanel;
/***/ }),
/***/ "./src/panels/FreePowerPanel.ts":
/*!**************************************!*\
!*** ./src/panels/FreePowerPanel.ts ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = __webpack_require__(/*! ../../module/views/Panel */ "./module/views/Panel.ts");
var FreePowerPanel = (function (_super) {
__extends(FreePowerPanel, _super);
function FreePowerPanel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(FreePowerPanel.prototype, "groupNames", {
get: function () { return ["FreePowerPanel"]; },
enumerable: true,
configurable: true
});
Object.defineProperty(FreePowerPanel.prototype, "skinName", {
get: function () { return "FreePowerPanel"; },
enumerable: true,
configurable: true
});
Object.defineProperty(FreePowerPanel.prototype, "closeBtns", {
get: function () {
return [this.closeBtn, this.acceptBtn];
},
enumerable: true,
configurable: true
});
return FreePowerPanel;
}(Panel_1.Panel));
exports.FreePowerPanel = FreePowerPanel;
/***/ }),
/***/ "./src/panels/JoinPanel.ts":
...
...
@@ -22238,7 +22288,7 @@ var SuccessPrizePanel = (function (_super) {
this.starGroup.play(this.data.stars);
var propImg = this.prop.getChildByName('img');
var propLabel = this.prop.getChildByName('label');
if (this.data.tool) {
if (this.data.tool
&& this.data.tool.type
) {
this.againBtn.visible = false;
this.goPrizeBtn.visible = false;
this.prizeImg.visible = false;
...
...
@@ -22260,7 +22310,7 @@ var SuccessPrizePanel = (function (_super) {
break;
}
}
else if (this.data.prize) {
else if (this.data.prize
&& this.data.prize.image
) {
this.noPrizeAgainBtn.visible = false;
this.prop.visible = false;
this.prizeImg.texture = Texture.fromUrl(this.data.prize.image);
...
...
@@ -23139,10 +23189,8 @@ var PlayScene = (function (_super) {
this.settingBtn.position.set(618, 16);
};
PlayScene.prototype.start = function (data) {
var _this = this;
_super.prototype.start.call(this);
this.chapter = (data && data.chapter) ? data.chapter : 1;
this.chapter = 6;
this.chapterData = getChapter_1.getChapterData(this.chapter);
this.initTarget();
Tool_1.Tool.init(Tool_1.Tool.getColOddEven(this.chapterData.map.lattices), !!(this.passElements && this.passElements[ElementType_1.ElementType.LOLLIPOP]));
...
...
@@ -23173,11 +23221,6 @@ var PlayScene = (function (_super) {
}
this.initSvgas();
AiControl_1.AiControl.ins.init(this.lattices);
var fun = function () {
RectsWaveAni_1.RectsWaveAni(_this.lattices, _this.map, fun);
console.log(1);
};
fun();
};
PlayScene.prototype.initSvgas = function () {
return __awaiter(this, void 0, void 0, function () {
...
...
@@ -25783,6 +25826,8 @@ var Sprite = FYGE.Sprite;
var Texture = FYGE.Texture;
var Tween = FYGE.Tween;
var Ease = FYGE.Ease;
var ctrls_1 = __webpack_require__(/*! ../../../module/ctrls */ "./module/ctrls/index.ts");
var FreePowerPanel_1 = __webpack_require__(/*! ../../panels/FreePowerPanel */ "./src/panels/FreePowerPanel.ts");
var MapScene = (function (_super) {
__extends(MapScene, _super);
function MapScene() {
...
...
@@ -25816,6 +25861,10 @@ var MapScene = (function (_super) {
this.uiLayer = this.addChild(new MapUI_1.default());
this.initMap();
this.updateMapCheck();
if (Tools_1.Tools.gameData.loginAddPower && !Tools_1.Tools.gameData.isFristLogin) {
ctrls_1.showPanel(FreePowerPanel_1.FreePowerPanel);
Tools_1.Tools.gameData.loginAddPower = false;
}
};
MapScene.prototype.updateMapCheck = function () {
var _this = this;
output.js.map
View file @
e39d71a6
This diff is collapsed.
Click to expand it.
src/scene/PlayScene.ts
View file @
e39d71a6
...
...
@@ -275,7 +275,7 @@ export class PlayScene extends Scene {
// data = { chapter: 1 }
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
6
;
//
this.chapter = 6;
//关卡数据
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
// this.chapterData.stepCount = 4
...
...
@@ -327,11 +327,11 @@ export class PlayScene extends Scene {
AiControl
.
ins
.
init
(
this
.
lattices
);
//测试波纹
let
fun
=
()
=>
{
RectsWaveAni
(
this
.
lattices
,
this
.
map
,
fun
);
console
.
log
(
1
)
}
fun
()
//
let fun = ()=>{
//
RectsWaveAni(this.lattices,this.map,fun);
//
console.log(1)
//
}
//
fun()
}
/**
...
...
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