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
8a60835d
Commit
8a60835d
authored
Feb 19, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
86ab2670
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
11 deletions
+37
-11
workspace.xml
.idea/workspace.xml
+13
-5
output.js
output.js
+20
-3
output.js.map
output.js.map
+1
-1
LoadingScene.ts
src/scene/LoadingScene.ts
+3
-2
No files found.
.idea/workspace.xml
View file @
8a60835d
...
...
@@ -3,7 +3,8 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/loadingScene/loadingBg.jpg"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/loadingScene/loadingBg.jpg"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js.map"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -63,7 +64,7 @@
<recent
name=
"$PROJECT_DIR$/lotties"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"npm.
dev
"
>
<component
name=
"RunManager"
selected=
"npm.
buildTS
"
>
<configuration
name=
"build"
type=
"js.build_tools.npm"
temporary=
"true"
nameIsGenerated=
"true"
>
<package-json
value=
"$PROJECT_DIR$/package.json"
/>
<command
value=
"run"
/>
...
...
@@ -116,8 +117,8 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.copyJs"
/>
...
...
@@ -135,7 +136,7 @@
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"11
457
000"
/>
<workItem
from=
"1613698993022"
duration=
"11
686
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
...
...
@@ -277,7 +278,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613707149083
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"21"
/>
<task
id=
"LOCAL-00021"
summary=
"m"
>
<created>
1613715814506
</created>
<option
name=
"number"
value=
"00021"
/>
<option
name=
"presentableId"
value=
"LOCAL-00021"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613715814506
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"22"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
output.js
View file @
8a60835d
...
...
@@ -12308,11 +12308,15 @@ var RES_1 = __webpack_require__(/*! ../../module/RES */ "./module/RES.ts");
var TaoBaoNet_1 = __webpack_require__(/*! ../TaoBaoNet */ "./src/TaoBaoNet.ts");
var layers_1 = __webpack_require__(/*! ../../module/views/layers */ "./module/views/layers.ts");
var ctrls_1 = __webpack_require__(/*! ../../module/ctrls */ "./module/ctrls/index.ts");
var MapScene_1 = __webpack_require__(/*! ./map/MapScene */ "./src/scene/map/MapScene.ts");
var TEXT_ALIGN = FYGE.TEXT_ALIGN;
var Tween = FYGE.Tween;
var LoadingScene = (function (_super) {
__extends(LoadingScene, _super);
function LoadingScene() {
return _super !== null && _super.apply(this, arguments) || this;
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.dotTween = null;
_this.dotCount = 0;
return _this;
}
Object.defineProperty(LoadingScene.prototype, "groupNames", {
get: function () {
...
...
@@ -12322,11 +12326,24 @@ var LoadingScene = (function (_super) {
configurable: true
});
LoadingScene.prototype.initUi = function () {
var _this = this;
this.y = -layers_1.layers.stageOffsetY;
this.addChild(FYGE.Sprite.fromFrame("loadingBg.jpg"));
var pro = this.addChild(Tools_1.Tools.getSprite('loadingPro.png'));
pro.position.set(80, 768);
this.progressBar = new ProgressBarS_1.ProgressBarS(pro);
this.loadingTxt = this.addChild(Tools_1.Tools.getText("loading...", 28, "#feeeea", TEXT_ALIGN.CENTER, 750, 0, 841));
this.dotTween = Tween.get(FYGE, { loop: true })
.to({}, 500)
.call(function () {
_this.dotCount = ++_this.dotCount % 3 || 3;
_this.loadingTxt.text = "loading" + _this.strMul('.', _this.dotCount);
});
};
LoadingScene.prototype.strMul = function (str, by) {
by = (by >> 0);
var t = (by > 1 ? this.strMul(str, by / 2) : '');
return t + (by % 2 ? t + str : t);
};
LoadingScene.prototype.start = function () {
return __awaiter(this, void 0, void 0, function () {
...
...
@@ -12369,12 +12386,12 @@ var LoadingScene = (function (_super) {
.call(function () {
if (pro >= 1) {
_this.removeEventListener(FYGE.Event.PROGRESS, _this.progressEvent, _this);
ctrls_1.changeScene(MapScene_1.MapScene, { from: "loading" });
}
});
};
LoadingScene.prototype.destroy = function () {
_super.prototype.destroy.call(this);
Tween.removeTweenSelf(this.dotTween);
};
return LoadingScene;
}(Scene_1.Scene));
output.js.map
View file @
8a60835d
This diff is collapsed.
Click to expand it.
src/scene/LoadingScene.ts
View file @
8a60835d
...
...
@@ -4,10 +4,11 @@ import { ProgressBarS } from "../common/ProgressBarS";
import
{
RES
}
from
"../../module/RES"
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
showToast
}
from
"../../module/ctrls"
;
import
{
changeScene
,
showToast
}
from
"../../module/ctrls"
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
TextField
=
FYGE
.
TextField
;
import
Tween
=
FYGE
.
Tween
;
import
{
MapScene
}
from
"./map/MapScene"
;
export
class
LoadingScene
extends
Scene
{
get
groupNames
()
{
...
...
@@ -97,7 +98,7 @@ export class LoadingScene extends Scene {
.
call
(()
=>
{
if
(
pro
>=
1
)
{
this
.
removeEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
);
//
changeScene(MapScene, {from: "loading"});
changeScene
(
MapScene
,
{
from
:
"loading"
});
// showPanel(LotteryPanel);
// changeScene(PlayScene, { chapter: 1 });
// changeScene(LotteryScene,{level:1});
...
...
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