Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbx_pageturn
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
Sbx_pageturn
Commits
211a47bc
Commit
211a47bc
authored
Nov 20, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
背景位置bug
parent
92fde8ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
ItemPage.prefab
play/assets/tmpGame/prefabs/ItemPage.prefab
+6
-6
ItemPage.js
play/assets/tmpGame/script/ItemPage.js
+5
-5
No files found.
play/assets/tmpGame/prefabs/ItemPage.prefab
View file @
211a47bc
...
...
@@ -427,7 +427,7 @@
"__id__": 12
}
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 15
...
...
@@ -446,7 +446,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
70.18
,
"width":
0
,
"height": 58
},
"_anchorPoint": {
...
...
@@ -510,7 +510,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
70.18
,
"width":
0
,
"height": 63
},
"_anchorPoint": {
...
...
@@ -562,8 +562,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "
123
",
"_N$string": "
123
",
"_string": "",
"_N$string": "",
"_fontSize": 42,
"_lineHeight": 50,
"_enableWrapText": true,
...
...
@@ -603,7 +603,7 @@
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width":
70.18
,
"width":
0
,
"height": 58
},
"_resize": 1,
...
...
play/assets/tmpGame/script/ItemPage.js
View file @
211a47bc
...
...
@@ -138,11 +138,11 @@ cc.Class({
// 初始化文本
initRichText
()
{
// this.data.text = 'I am flying';
this
.
sprBg
.
node
.
y
=
0
;
this
.
dragonBone
.
node
.
y
=
0
;
if
(
this
.
data
.
text
)
{
this
.
sprBg
.
node
.
y
=
4
0
;
this
.
dragonBone
.
node
.
y
=
4
0
;
this
.
sprBg
.
node
.
y
=
4
0
;
this
.
dragonBone
.
node
.
y
=
4
0
;
if
(
!
this
.
data
.
text
)
{
this
.
sprBg
.
node
.
y
=
0
;
this
.
dragonBone
.
node
.
y
=
0
;
return
;
}
this
.
data
.
text
=
this
.
data
.
text
.
replace
(
/ /g
,
"
|
"
);
...
...
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