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
7b8fe466
Commit
7b8fe466
authored
Feb 24, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
38080c96
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
19 deletions
+35
-19
workspace.xml
.idea/workspace.xml
+10
-11
output.js
output.js
+18
-0
output.js.map
output.js.map
+1
-1
Tools.ts
src/Tools.ts
+1
-0
PlayScene.ts
src/scene/PlayScene.ts
+5
-7
No files found.
.idea/workspace.xml
View file @
7b8fe466
...
@@ -3,11 +3,10 @@
...
@@ -3,11 +3,10 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<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$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/aa.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/aa.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
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$/output.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js.map"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/
map/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI
.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/
PlayScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/PlayScene
.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -136,14 +135,7 @@
...
@@ -136,14 +135,7 @@
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613958457445"
duration=
"19850000"
/>
<workItem
from=
"1613958457445"
duration=
"19850000"
/>
<workItem
from=
"1614131869846"
duration=
"4308000"
/>
<workItem
from=
"1614131869846"
duration=
"4728000"
/>
</task>
<task
id=
"LOCAL-00007"
summary=
"NoStep"
>
<created>
1612602696160
</created>
<option
name=
"number"
value=
"00007"
/>
<option
name=
"presentableId"
value=
"LOCAL-00007"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1612602696160
</updated>
</task>
</task>
<task
id=
"LOCAL-00008"
summary=
"Failed"
>
<task
id=
"LOCAL-00008"
summary=
"Failed"
>
<created>
1612603219646
</created>
<created>
1612603219646
</created>
...
@@ -481,7 +473,14 @@
...
@@ -481,7 +473,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614135665220
</updated>
<updated>
1614135665220
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"56"
/>
<task
id=
"LOCAL-00056"
summary=
"m"
>
<created>
1614138351793
</created>
<option
name=
"number"
value=
"00056"
/>
<option
name=
"presentableId"
value=
"LOCAL-00056"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614138351793
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"57"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
output.js
View file @
7b8fe466
...
@@ -8064,6 +8064,19 @@ var Tools = (function () {
...
@@ -8064,6 +8064,19 @@ var Tools = (function () {
Tools.gameData.prizeLevels.push(+k.split('level')[1]);
Tools.gameData.prizeLevels.push(+k.split('level')[1]);
}
}
Tools.gameData.prizeLevels.sort(function (a, b) { return a - b; });
Tools.gameData.prizeLevels.sort(function (a, b) { return a - b; });
if (my && my.getServerTime) {
my.getServerTime({
success: function (t) {
Tools.actEnd = (+res.data.endTime <= +t.time);
},
failed: function () {
Tools.actEnd = (+res.data.endTime <= Date.now());
}
});
}
else {
Tools.actEnd = (+res.data.endTime <= Date.now());
}
}
}
r(s);
r(s);
});
});
...
@@ -8282,6 +8295,7 @@ var Tools = (function () {
...
@@ -8282,6 +8295,7 @@ var Tools = (function () {
Tools.addSteps = 5;
Tools.addSteps = 5;
Tools.maxLevel = 99;
Tools.maxLevel = 99;
Tools.cacheKey = "guideFLXXL";
Tools.cacheKey = "guideFLXXL";
Tools.actEnd = false;
return Tools;
return Tools;
}());
}());
exports.Tools = Tools;
exports.Tools = Tools;
...
@@ -15848,6 +15862,10 @@ var MapUI = (function (_super) {
...
@@ -15848,6 +15862,10 @@ var MapUI = (function (_super) {
}, true);
}, true);
break;
break;
case this.taskBtn:
case this.taskBtn:
if (Tools_1.Tools.actEnd) {
ctrls_1.showToast("活动已结束");
return;
}
Tools_1.Tools.openTask();
Tools_1.Tools.openTask();
break;
break;
case this.clearanceBtn:
case this.clearanceBtn:
output.js.map
View file @
7b8fe466
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/Tools.ts
View file @
7b8fe466
...
@@ -20,6 +20,7 @@ export class Tools {
...
@@ -20,6 +20,7 @@ export class Tools {
public
static
addSteps
=
5
;
public
static
addSteps
=
5
;
public
static
maxLevel
=
99
;
public
static
maxLevel
=
99
;
public
static
musicOn
=
true
;
/**
/**
* 缓存key
* 缓存key
...
...
src/scene/PlayScene.ts
View file @
7b8fe466
...
@@ -2884,17 +2884,15 @@ export class PlayScene extends Scene {
...
@@ -2884,17 +2884,15 @@ export class PlayScene extends Scene {
// }
// }
// return currentTarget
// return currentTarget
// }
// }
let
isOn
:
boolean
=
true
;
class
MusicBtn
extends
FYGE
.
Sprite
{
class
MusicBtn
extends
FYGE
.
Sprite
{
// private isOn: boolean;
constructor
()
{
constructor
()
{
var
t
=
RES
.
getRes
(
"musicOn.png"
)
var
t
=
RES
.
getRes
(
Tools
.
musicOn
?
"musicOn.png"
:
"musicOff.png"
);
super
(
t
)
super
(
t
)
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
isOn
=
!
is
On
;
Tools
.
musicOn
=
!
Tools
.
music
On
;
this
.
texture
=
RES
.
getRes
(
is
On
?
"musicOn.png"
:
"musicOff.png"
);
this
.
texture
=
RES
.
getRes
(
Tools
.
music
On
?
"musicOn.png"
:
"musicOff.png"
);
//播放或暂停音乐接口
//播放或暂停音乐接口
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
is
On
})
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
Tools
.
music
On
})
},
this
);
},
this
);
//默认开启
//默认开启
// this.isOn = true;
// this.isOn = true;
...
@@ -2903,7 +2901,7 @@ class MusicBtn extends FYGE.Sprite {
...
@@ -2903,7 +2901,7 @@ class MusicBtn extends FYGE.Sprite {
GDispatcher
.
addEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
onShow
,
this
)
GDispatcher
.
addEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
onShow
,
this
)
}
}
onShow
()
{
onShow
()
{
if
(
is
On
)
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
true
})
if
(
Tools
.
music
On
)
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
true
})
}
}
destroy
()
{
destroy
()
{
// sendTbNet(TbNetName.openMusic, { isOn: false })
// sendTbNet(TbNetName.openMusic, { isOn: false })
...
...
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