Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
wildfirecode13
yyh
Commits
d7bd2972
Commit
d7bd2972
authored
Dec 07, 2019
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
75347933
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
507 additions
and
5 deletions
+507
-5
default.res.json
egret/resource/default.res.json
+501
-1
PKScene.ts
egret/src/yazuwei/PKScene.ts
+6
-4
No files found.
egret/resource/default.res.json
View file @
d7bd2972
This diff is collapsed.
Click to expand it.
egret/src/yazuwei/PKScene.ts
View file @
d7bd2972
...
...
@@ -39,19 +39,21 @@ export default class PKScene extends Scene{
this
.
myteamnum
.
text
=
data
.
myTeamSteps
;
this
.
otherteamnum
.
text
=
data
.
enemyTeamSteps
;
if
(
data
.
myTeamSteps
<
50000
){
this
.
myline
.
anchorOffsetY
=
this
.
myline
.
height
this
.
myline
.
height
=
200
+
data
.
myTeamSteps
*
0.016
}
else
{
this
.
myline
.
anchorOffsetY
=
this
.
myline
.
height
this
.
myline
.
height
=
1000
+
(
data
.
myTeamSteps
-
50000
)
*
0.01
}
if
(
data
.
enemyTeamSteps
<
50000
){
this
.
otherline
.
anchorOffsetY
=
this
.
otherline
.
height
this
.
otherline
.
height
=
200
+
data
.
enemyTeamSteps
*
0.016
}
else
{
this
.
otherline
.
anchorOffsetY
=
this
.
otherline
.
height
this
.
otherline
.
height
=
1000
+
(
data
.
enemyTeamSteps
-
50000
)
*
0.01
}
this
.
myline
.
anchorOffsetY
=
this
.
myline
.
height
this
.
otherline
.
anchorOffsetY
=
this
.
otherline
.
height
for
(
let
i
=
1
;
i
<
data
.
myTeamMembers
.
length
+
1
;
i
++
){
this
[
"team"
+
i
][
"onnum"
].
text
=
"+"
+
data
.
myTeamMembers
[
i
-
1
].
steps
;
this
[
"team"
+
i
][
"onphone"
].
text
=
data
.
myTeamMembers
[
i
-
1
].
phone
;
...
...
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