Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cartoon_main
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
cartoon_main
Commits
38b1d32c
Commit
38b1d32c
authored
Sep 05, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 封面
parent
f53e29a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
88 deletions
+53
-88
cartoon_main.fire
assets/cartoon_main/scene/cartoon_main.fire
+51
-86
cartoon_main.ts
assets/cartoon_main/scene/cartoon_main.ts
+2
-2
No files found.
assets/cartoon_main/scene/cartoon_main.fire
View file @
38b1d32c
...
...
@@ -78,22 +78,22 @@
"__id__": 7
},
{
"__id__": 2
3
"__id__": 2
2
},
{
"__id__": 3
4
"__id__": 3
3
}
],
"_active": true,
"_components": [
{
"__id__": 3
7
"__id__": 3
6
},
{
"__id__": 3
8
"__id__": 3
7
},
{
"__id__": 3
9
"__id__": 3
8
}
],
"_prefab": null,
...
...
@@ -351,13 +351,13 @@
"_active": true,
"_components": [
{
"__id__":
20
"__id__":
19
},
{
"__id__": 2
1
"__id__": 2
0
},
{
"__id__": 2
2
"__id__": 2
1
}
],
"_prefab": null,
...
...
@@ -423,7 +423,7 @@
"_active": true,
"_components": [
{
"__id__": 1
9
"__id__": 1
8
}
],
"_prefab": null,
...
...
@@ -489,10 +489,10 @@
"_active": true,
"_components": [
{
"__id__": 1
7
"__id__": 1
6
},
{
"__id__": 1
8
"__id__": 1
7
}
],
"_prefab": null,
...
...
@@ -507,7 +507,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 44
1
"height": 44
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -519,7 +519,7 @@
"ctor": "Float64Array",
"array": [
0,
0.0109999999999
956
8,
0.0109999999999
6725
8,
0,
0,
0,
...
...
@@ -562,9 +562,6 @@
"_components": [
{
"__id__": 15
},
{
"__id__": 16
}
],
"_prefab": null,
...
...
@@ -578,8 +575,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 3
38.5
,
"height": 42
1
"width": 3
40
,
"height": 42
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -590,7 +587,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-350
.75
,
-350,
0,
0,
0,
...
...
@@ -640,8 +637,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
23
0,
"height":
27
0
"width":
34
0,
"height":
38
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -653,7 +650,7 @@
"ctor": "Float64Array",
"array": [
0,
-2.023
,
20
,
0,
0,
0,
...
...
@@ -734,8 +731,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
73.4
,
"height": 3
7.8
"width":
340
,
"height": 3
5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -788,8 +785,8 @@
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 3
0
,
"_lineHeight": 3
0
,
"_fontSize": 3
5
,
"_lineHeight": 3
5
,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
...
...
@@ -800,42 +797,10 @@
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow":
0
,
"_N$overflow":
2
,
"_N$cacheMode": 0,
"_id": "6cNylW+UZCZKFsjihACnmT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "52491330-d32c-4de0-bc39-93aa80b2adc1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "09roGSXglLl7hGNwMCah62"
},
{
"__type__": "cc.Button",
"_name": "",
...
...
@@ -915,7 +880,7 @@
"_layoutSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 44
1
"height": 44
0
},
"_resize": 1,
"_N$layoutType": 3,
...
...
@@ -949,8 +914,8 @@
"_alignFlags": 5,
"_left": 0,
"_right": 0,
"_top": 139.
489
,
"_bottom": 1
39.511
,
"_top": 139.
98900000000003
,
"_bottom": 1
40.01099999999997
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -1075,16 +1040,16 @@
},
"_children": [
{
"__id__": 2
4
"__id__": 2
3
},
{
"__id__": 2
9
"__id__": 2
8
}
],
"_active": false,
"_components": [
{
"__id__": 3
3
"__id__": 3
2
}
],
"_prefab": null,
...
...
@@ -1140,20 +1105,20 @@
"_name": "bg_title",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [
{
"__id__": 2
5
"__id__": 2
4
}
],
"_active": true,
"_components": [
{
"__id__": 2
7
"__id__": 2
6
},
{
"__id__": 2
8
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -1209,13 +1174,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 2
4
"__id__": 2
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1271,7 +1236,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1304,7 +1269,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
3
},
"_enabled": true,
"_materials": [
...
...
@@ -1336,7 +1301,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1363,19 +1328,19 @@
"_name": "back",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
30
"__id__":
29
},
{
"__id__": 3
1
"__id__": 3
0
},
{
"__id__": 3
2
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1431,7 +1396,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
9
"__id__": 2
8
},
"_enabled": true,
"_materials": [
...
...
@@ -1463,7 +1428,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
9
"__id__": 2
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1490,7 +1455,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
9
"__id__": 2
8
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1558,7 +1523,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1589,7 +1554,7 @@
},
"_children": [
{
"__id__": 3
5
"__id__": 3
4
}
],
"_active": false,
...
...
@@ -1647,13 +1612,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
6
"__id__": 3
5
}
],
"_prefab": null,
...
...
@@ -1709,7 +1674,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
4
},
"_enabled": true,
"_clip": {
...
...
assets/cartoon_main/scene/cartoon_main.ts
View file @
38b1d32c
...
...
@@ -115,8 +115,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
spriteFrame
:
any
=
await
asyncGetSpriteFrimeByUrl
(
row
.
cover
);
const
coverNode
=
cc
.
find
(
`cover`
,
itemClone
);
coverNode
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
spriteFrame
;
const
sx
=
23
0
/
coverNode
.
width
;
const
sy
=
27
0
/
coverNode
.
height
;
const
sx
=
34
0
/
coverNode
.
width
;
const
sy
=
38
0
/
coverNode
.
height
;
coverNode
.
scale
=
Math
.
min
(
sx
,
sy
);
}
...
...
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