Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_pinjuzi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
dfzx_cocos_pinjuzi
Commits
dfc9857d
Commit
dfc9857d
authored
Mar 24, 2021
by
Li MingZhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 居中bug
parent
bdcef3a7
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
5 additions
and
5 deletions
+5
-5
scene.js
play/assets/dfzx_cocos_pinjuzi/script/scene.js
+4
-4
.DS_Store
publish/.DS_Store
+0
-0
config.7387b.json
publish/publish/android/dfzx_cocos_pinjuzi/config.7387b.json
+0
-0
index.7387b.jsc
publish/publish/android/dfzx_cocos_pinjuzi/index.7387b.jsc
+0
-0
index.a38bb.jsc
publish/publish/android/dfzx_cocos_pinjuzi/index.a38bb.jsc
+0
-0
config.json
publish/publish/config.json
+1
-1
config.7387b.json
publish/publish/ios/dfzx_cocos_pinjuzi/config.7387b.json
+0
-0
index.7387b.jsc
publish/publish/ios/dfzx_cocos_pinjuzi/index.7387b.jsc
+0
-0
index.a38bb.jsc
publish/publish/ios/dfzx_cocos_pinjuzi/index.a38bb.jsc
+0
-0
No files found.
play/assets/dfzx_cocos_pinjuzi/script/scene.js
View file @
dfc9857d
...
...
@@ -924,16 +924,16 @@ cc.Class({
const
line1
=
lineArr
[
0
];
const
line1LastItem
=
line1
[
line1
.
length
-
1
];
const
totalLine1
=
line1LastItem
.
x
+
line1LastItem
.
width
/
2
;
const
offX1
=
(
maxW
-
totalLine1
)
/
2
const
offX1
=
(
answerNode
.
width
-
totalLine1
)
/
2
for
(
let
i
=
0
;
i
<
line1
.
length
;
i
++
)
{
line1
[
i
].
x
+=
offX1
;
}
const
line2
=
lineArr
[
1
];
if
(
line2
)
{
const
line2LastItem
=
line2
[
line2
.
length
-
1
];
if
(
line2LastItem
)
{
const
totalLine2
=
line2LastItem
.
x
+
line2LastItem
.
width
/
2
;
const
offX2
=
(
maxW
-
totalLine2
)
/
2
const
offX2
=
(
answerNode
.
width
-
totalLine2
)
/
2
for
(
let
i
=
0
;
i
<
line2
.
length
;
i
++
)
{
line2
[
i
].
x
+=
offX2
;
}
...
...
publish/.DS_Store
View file @
dfc9857d
No preview for this file type
publish/publish/android/dfzx_cocos_pinjuzi/config.
a38b
b.json
→
publish/publish/android/dfzx_cocos_pinjuzi/config.
7387
b.json
View file @
dfc9857d
File moved
publish/publish/android/dfzx_cocos_pinjuzi/index.7387b.jsc
0 → 100644
View file @
dfc9857d
File added
publish/publish/android/dfzx_cocos_pinjuzi/index.a38bb.jsc
deleted
100644 → 0
View file @
bdcef3a7
File deleted
publish/publish/config.json
View file @
dfc9857d
{
"ios"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"a38bb"
},
"android"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"a38bb"
}}
\ No newline at end of file
{
"ios"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"7387b"
},
"android"
:{
"sceneName"
:
"dfzx_cocos_pinjuzi"
,
"version"
:
"7387b"
}}
\ No newline at end of file
publish/publish/ios/dfzx_cocos_pinjuzi/config.
a38b
b.json
→
publish/publish/ios/dfzx_cocos_pinjuzi/config.
7387
b.json
View file @
dfc9857d
File moved
publish/publish/ios/dfzx_cocos_pinjuzi/index.7387b.jsc
0 → 100644
View file @
dfc9857d
File added
publish/publish/ios/dfzx_cocos_pinjuzi/index.a38bb.jsc
deleted
100644 → 0
View file @
bdcef3a7
File deleted
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