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
d401f0a7
Commit
d401f0a7
authored
Mar 23, 2021
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e3444d18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
ItemPage.prefab
play/assets/tmpGame/prefabs/ItemPage.prefab
+1
-4
ItemPage.js
play/assets/tmpGame/script/ItemPage.js
+7
-5
No files found.
play/assets/tmpGame/prefabs/ItemPage.prefab
View file @
d401f0a7
...
...
@@ -412,7 +412,7 @@
"ctor": "Float64Array",
"array": [
0,
4
0,
0,
0,
0,
0,
...
...
@@ -860,9 +860,6 @@
"nodMask": {
"__id__": 20
},
"nodGroup": {
"__id__": 2
},
"layoutText": {
"__id__": 14
},
...
...
play/assets/tmpGame/script/ItemPage.js
View file @
d401f0a7
...
...
@@ -79,9 +79,10 @@ cc.Class({
var
imageUrl
=
this
.
data
.
tex_png
;
var
skeUrl
=
this
.
data
.
ske_json
;
var
atlasUrl
=
this
.
data
.
tex_json
;
// imageUrl = 'http://127.0.0.1/walkingfish_tex.png';
// skeUrl = 'http://127.0.0.1/walkingfish_ske.json';
// atlasUrl = 'http://127.0.0.1/walkingfish_tex.json';
// imageUrl = 'http://staging-teach.cdn.ireadabc.com/c81c13740a8ba7f43362c14f9925a5d7.png';
// skeUrl = 'http://staging-teach.cdn.ireadabc.com/b7fabe0d1eb1e34e36f506b2988edd69.json';
// atlasUrl = 'http://staging-teach.cdn.ireadabc.com/4a330f9f0146d2b53f58dca946895da6.json';
// if(this.index == 1){
// imageUrl = 'http://127.0.0.1/NewProject_2_tex.png';
// skeUrl = 'http://127.0.0.1/NewProject_2_ske.json';
...
...
@@ -169,6 +170,7 @@ cc.Class({
this
.
dragonBone
.
node
.
scale
=
bgHeight
/
size
.
height
;
}
}
console
.
log
(
this
.
dragonBone
.
node
.
scale
)
mask
.
width
=
this
.
dragonBone
.
node
.
scale
*
size
.
width
;
mask
.
height
=
this
.
dragonBone
.
node
.
scale
*
size
.
height
;
...
...
@@ -178,10 +180,10 @@ cc.Class({
initRichText
()
{
// this.data.text = 'I am flying';
this
.
sprBg
.
node
.
y
=
40
;
this
.
dragonBone
.
node
.
y
=
40
;
this
.
dragonBone
.
node
.
parent
.
y
=
40
;
if
(
!
this
.
data
.
text
)
{
this
.
sprBg
.
node
.
y
=
0
;
this
.
dragonBone
.
node
.
y
=
0
;
this
.
dragonBone
.
node
.
parent
.
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