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
988e7741
Commit
988e7741
authored
Dec 01, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加骨骼动画遮罩
parent
1cc8f2b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
25 deletions
+128
-25
ItemPage.prefab
play/assets/tmpGame/prefabs/ItemPage.prefab
+124
-25
ItemPage.js
play/assets/tmpGame/script/ItemPage.js
+4
-0
No files found.
play/assets/tmpGame/prefabs/ItemPage.prefab
View file @
988e7741
...
@@ -27,23 +27,23 @@
...
@@ -27,23 +27,23 @@
"__id__": 8
"__id__": 8
},
},
{
{
"__id__": 1
1
"__id__": 1
4
},
},
{
{
"__id__":
17
"__id__":
20
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
0
"__id__": 2
3
},
},
{
{
"__id__": 2
1
"__id__": 2
4
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
2
"__id__": 2
5
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -306,20 +306,88 @@
...
@@ -306,20 +306,88 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "dragon
Bone
",
"_name": "dragon
Mask
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
"__id__": 1
},
},
"_children": [
{
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 12
}
],
"_prefab": {
"__id__": 13
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "dragonBone",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
9
"__id__":
10
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
0
"__id__": 1
1
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -373,7 +441,7 @@
...
@@ -373,7 +441,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
8
"__id__":
9
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -412,7 +480,38 @@
...
@@ -412,7 +480,38 @@
"asset": {
"asset": {
"__uuid__": "d49720e9-3f1f-42ec-9b9b-dc90d989fee4"
"__uuid__": "d49720e9-3f1f-42ec-9b9b-dc90d989fee4"
},
},
"fileId": "07RHoj0MNAJZpDMbCSOJY0",
"fileId": "7e/PU22fZISqCMwNCrnDhJ",
"sync": false
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d49720e9-3f1f-42ec-9b9b-dc90d989fee4"
},
"fileId": "4eO6Y5ba5MXpoxUAGauH/A",
"sync": false
"sync": false
},
},
{
{
...
@@ -424,17 +523,17 @@
...
@@ -424,17 +523,17 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
2
"__id__": 1
5
}
}
],
],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 1
5
"__id__": 1
8
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
6
"__id__": 1
9
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -488,17 +587,17 @@
...
@@ -488,17 +587,17 @@
"_name": "labWord",
"_name": "labWord",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
1
"__id__": 1
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
3
"__id__": 1
6
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
4
"__id__": 1
7
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -552,7 +651,7 @@
...
@@ -552,7 +651,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
2
"__id__": 1
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -599,7 +698,7 @@
...
@@ -599,7 +698,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
1
"__id__": 1
4
},
},
"_enabled": true,
"_enabled": true,
"_layoutSize": {
"_layoutSize": {
...
@@ -648,11 +747,11 @@
...
@@ -648,11 +747,11 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
18
"__id__":
21
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
19
"__id__":
22
},
},
"_opacity": 0,
"_opacity": 0,
"_color": {
"_color": {
...
@@ -706,7 +805,7 @@
...
@@ -706,7 +805,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
17
"__id__":
20
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -753,19 +852,19 @@
...
@@ -753,19 +852,19 @@
},
},
"_enabled": true,
"_enabled": true,
"dragonBone": {
"dragonBone": {
"__id__":
9
"__id__":
10
},
},
"sprBg": {
"sprBg": {
"__id__": 6
"__id__": 6
},
},
"nodMask": {
"nodMask": {
"__id__":
17
"__id__":
20
},
},
"layoutText": {
"layoutText": {
"__id__": 1
1
"__id__": 1
4
},
},
"labWord": {
"labWord": {
"__id__": 1
3
"__id__": 1
6
},
},
"_id": ""
"_id": ""
},
},
...
...
play/assets/tmpGame/script/ItemPage.js
View file @
988e7741
...
@@ -146,6 +146,10 @@ cc.Class({
...
@@ -146,6 +146,10 @@ cc.Class({
this
.
dragonBone
.
node
.
scale
=
bgHeight
/
size
.
height
;
this
.
dragonBone
.
node
.
scale
=
bgHeight
/
size
.
height
;
}
}
}
}
let
mask
=
this
.
dragonBone
.
node
.
parent
;
mask
.
width
=
this
.
dragonBone
.
node
.
scale
*
size
.
width
;
mask
.
height
=
this
.
dragonBone
.
node
.
scale
*
size
.
height
;
},
},
// 初始化文本
// 初始化文本
...
...
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