Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg10_ty
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
dg10_ty
Commits
93cd0443
Commit
93cd0443
authored
Oct 31, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出按钮
parent
6427b047
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
413 additions
and
165 deletions
+413
-165
dg10_ty.fire
assets/dg10_ty/scene/dg10_ty.fire
+365
-164
dg10_ty.ts
assets/dg10_ty/scene/dg10_ty.ts
+12
-1
btn-return.png
assets/dg10_ty/textures/btn-return.png
+0
-0
btn-return.png.meta
assets/dg10_ty/textures/btn-return.png.meta
+36
-0
No files found.
assets/dg10_ty/scene/dg10_ty.fire
View file @
93cd0443
...
...
@@ -90,31 +90,34 @@
"__id__": 150
},
{
"__id__": 1
70
"__id__": 1
54
},
{
"__id__": 1
83
"__id__": 1
74
},
{
"__id__":
204
"__id__":
187
},
{
"__id__": 20
6
"__id__": 20
8
},
{
"__id__": 210
},
{
"__id__": 214
}
],
"_active": true,
"_components": [
{
"__id__": 2
36
"__id__": 2
40
},
{
"__id__": 2
37
"__id__": 2
41
},
{
"__id__": 2
38
"__id__": 2
42
}
],
"_prefab": null,
...
...
@@ -6873,6 +6876,201 @@
"_originalHeight": 0,
"_id": "5bY9wpP19LhaiU3Iln7e7z"
},
{
"__type__": "cc.Node",
"_name": "btn_return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 151
},
{
"__id__": 152
},
{
"__id__": 153
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 131,
"height": 131
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-854.5,
434.5,
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": "3bBoAMbbpO3rbeGaIKBij3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 150
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "0072fed4-a751-4c0f-a8fa-178862fd46d1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d6EHUj3x9Oqq3Db5Skq46K"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 150
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 40,
"_right": 0,
"_top": 40,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "2aVjqJh8tDeLc3j5Iu87Pz"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 150
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "c6QoGHSbtAwZdsqYdqXTP9"
},
{
"__type__": "cc.Node",
"_name": "layout_tip",
...
...
@@ -6882,22 +7080,22 @@
},
"_children": [
{
"__id__": 15
1
"__id__": 15
5
},
{
"__id__": 15
4
"__id__": 15
8
},
{
"__id__": 1
59
"__id__": 1
63
},
{
"__id__": 16
4
"__id__": 16
8
}
],
"_active": false,
"_components": [
{
"__id__": 1
69
"__id__": 1
73
}
],
"_prefab": null,
...
...
@@ -6953,16 +7151,16 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
2
"__id__": 15
6
},
{
"__id__": 15
3
"__id__": 15
7
}
],
"_prefab": null,
...
...
@@ -7018,7 +7216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
1
"__id__": 15
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -7045,7 +7243,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
1
"__id__": 15
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -7113,14 +7311,14 @@
"_name": "img_gj",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
4
},
"_children": [
{
"__id__": 15
5
"__id__": 15
9
},
{
"__id__": 1
57
"__id__": 1
61
}
],
"_active": false,
...
...
@@ -7178,13 +7376,13 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 15
4
"__id__": 15
8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
56
"__id__": 1
60
}
],
"_prefab": null,
...
...
@@ -7240,7 +7438,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
5
"__id__": 15
9
},
"_enabled": true,
"_materials": [
...
...
@@ -7270,13 +7468,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 15
4
"__id__": 15
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
58
"__id__": 1
62
}
],
"_prefab": null,
...
...
@@ -7332,7 +7530,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
57
"__id__": 1
61
},
"_enabled": true,
"_materials": [
...
...
@@ -7364,14 +7562,14 @@
"_name": "img_ta",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
4
},
"_children": [
{
"__id__": 16
0
"__id__": 16
4
},
{
"__id__": 16
2
"__id__": 16
6
}
],
"_active": false,
...
...
@@ -7429,13 +7627,13 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
63
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 16
1
"__id__": 16
5
}
],
"_prefab": null,
...
...
@@ -7491,7 +7689,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
0
"__id__": 16
4
},
"_enabled": true,
"_materials": [
...
...
@@ -7521,13 +7719,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 1
59
"__id__": 1
63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
3
"__id__": 16
7
}
],
"_prefab": null,
...
...
@@ -7583,7 +7781,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
2
"__id__": 16
6
},
"_enabled": true,
"_materials": [
...
...
@@ -7615,14 +7813,14 @@
"_name": "img_co",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
4
},
"_children": [
{
"__id__": 16
5
"__id__": 16
9
},
{
"__id__": 1
67
"__id__": 1
71
}
],
"_active": false,
...
...
@@ -7680,13 +7878,13 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 16
4
"__id__": 16
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
66
"__id__": 1
70
}
],
"_prefab": null,
...
...
@@ -7742,7 +7940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
5
"__id__": 16
9
},
"_enabled": true,
"_materials": [
...
...
@@ -7772,13 +7970,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 16
4
"__id__": 16
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
68
"__id__": 1
72
}
],
"_prefab": null,
...
...
@@ -7834,7 +8032,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
67
"__id__": 1
71
},
"_enabled": true,
"_materials": [
...
...
@@ -7864,7 +8062,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
0
"__id__": 15
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -7894,12 +8092,6 @@
"__id__": 2
},
"_children": [
{
"__id__": 171
},
{
"__id__": 173
},
{
"__id__": 175
},
...
...
@@ -7911,6 +8103,12 @@
},
{
"__id__": 181
},
{
"__id__": 183
},
{
"__id__": 185
}
],
"_active": true,
...
...
@@ -7968,13 +8166,13 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
2
"__id__": 17
6
}
],
"_prefab": null,
...
...
@@ -8030,7 +8228,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
1
"__id__": 17
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -8098,13 +8296,13 @@
"_name": "bg_instructions",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
4
"__id__": 17
8
}
],
"_prefab": null,
...
...
@@ -8160,7 +8358,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
3
"__id__": 17
7
},
"_enabled": true,
"_materials": [
...
...
@@ -8192,13 +8390,13 @@
"_name": "text_1",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
76
"__id__": 1
80
}
],
"_prefab": null,
...
...
@@ -8254,7 +8452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
5
"__id__": 17
9
},
"_enabled": true,
"_materials": [
...
...
@@ -8286,13 +8484,13 @@
"_name": "text_2",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
78
"__id__": 1
82
}
],
"_prefab": null,
...
...
@@ -8348,7 +8546,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
77
"__id__": 1
81
},
"_enabled": true,
"_materials": [
...
...
@@ -8380,13 +8578,13 @@
"_name": "text_3",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 18
0
"__id__": 18
4
}
],
"_prefab": null,
...
...
@@ -8442,7 +8640,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
79
"__id__": 1
83
},
"_enabled": true,
"_materials": [
...
...
@@ -8474,13 +8672,13 @@
"_name": "text_0",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 18
2
"__id__": 18
6
}
],
"_prefab": null,
...
...
@@ -8536,7 +8734,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
1
"__id__": 18
5
},
"_enabled": true,
"_materials": [
...
...
@@ -8571,9 +8769,6 @@
"__id__": 2
},
"_children": [
{
"__id__": 184
},
{
"__id__": 188
},
...
...
@@ -8585,6 +8780,9 @@
},
{
"__id__": 200
},
{
"__id__": 204
}
],
"_active": false,
...
...
@@ -8642,11 +8840,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 18
3
"__id__": 18
7
},
"_children": [
{
"__id__": 18
5
"__id__": 18
9
}
],
"_active": true,
...
...
@@ -8704,11 +8902,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 18
4
"__id__": 18
8
},
"_children": [
{
"__id__": 1
86
"__id__": 1
90
}
],
"_active": true,
...
...
@@ -8766,13 +8964,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 18
5
"__id__": 18
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
87
"__id__": 1
91
}
],
"_prefab": null,
...
...
@@ -8828,7 +9026,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
86
"__id__": 1
90
},
"_enabled": true,
"_materials": [
...
...
@@ -8858,11 +9056,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 18
3
"__id__": 18
7
},
"_children": [
{
"__id__": 1
89
"__id__": 1
93
}
],
"_active": true,
...
...
@@ -8920,11 +9118,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 1
88
"__id__": 1
92
},
"_children": [
{
"__id__": 19
0
"__id__": 19
4
}
],
"_active": true,
...
...
@@ -8982,13 +9180,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 1
89
"__id__": 1
93
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
1
"__id__": 19
5
}
],
"_prefab": null,
...
...
@@ -9044,7 +9242,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
0
"__id__": 19
4
},
"_enabled": true,
"_materials": [
...
...
@@ -9074,11 +9272,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 18
3
"__id__": 18
7
},
"_children": [
{
"__id__": 19
3
"__id__": 19
7
}
],
"_active": true,
...
...
@@ -9136,11 +9334,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 19
2
"__id__": 19
6
},
"_children": [
{
"__id__": 19
4
"__id__": 19
8
}
],
"_active": true,
...
...
@@ -9198,13 +9396,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 19
3
"__id__": 19
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
5
"__id__": 19
9
}
],
"_prefab": null,
...
...
@@ -9260,7 +9458,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
4
"__id__": 19
8
},
"_enabled": true,
"_materials": [
...
...
@@ -9290,11 +9488,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 18
3
"__id__": 18
7
},
"_children": [
{
"__id__":
197
"__id__":
201
}
],
"_active": true,
...
...
@@ -9352,11 +9550,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__":
196
"__id__":
200
},
"_children": [
{
"__id__":
198
"__id__":
202
}
],
"_active": true,
...
...
@@ -9414,13 +9612,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__":
197
"__id__":
201
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
199
"__id__":
203
}
],
"_prefab": null,
...
...
@@ -9476,7 +9674,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
198
"__id__":
202
},
"_enabled": true,
"_materials": [
...
...
@@ -9506,11 +9704,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 18
3
"__id__": 18
7
},
"_children": [
{
"__id__": 20
1
"__id__": 20
5
}
],
"_active": true,
...
...
@@ -9568,11 +9766,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 20
0
"__id__": 20
4
},
"_children": [
{
"__id__": 20
2
"__id__": 20
6
}
],
"_active": true,
...
...
@@ -9630,13 +9828,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 20
1
"__id__": 20
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
3
"__id__": 20
7
}
],
"_prefab": null,
...
...
@@ -9692,7 +9890,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
2
"__id__": 20
6
},
"_enabled": true,
"_materials": [
...
...
@@ -9728,7 +9926,7 @@
"_active": false,
"_components": [
{
"__id__": 20
5
"__id__": 20
9
}
],
"_prefab": null,
...
...
@@ -9784,7 +9982,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
4
"__id__": 20
8
},
"_enabled": true,
"_materials": [
...
...
@@ -9820,13 +10018,13 @@
},
"_children": [
{
"__id__": 2
07
"__id__": 2
11
}
],
"_active": false,
"_components": [
{
"__id__": 2
09
"__id__": 2
13
}
],
"_prefab": null,
...
...
@@ -9882,13 +10080,13 @@
"_name": "bg_record",
"_objFlags": 0,
"_parent": {
"__id__": 2
06
"__id__": 2
10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
08
"__id__": 2
12
}
],
"_prefab": null,
...
...
@@ -9944,7 +10142,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
07
"__id__": 2
11
},
"_enabled": true,
"_materials": [
...
...
@@ -9976,7 +10174,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
06
"__id__": 2
10
},
"_enabled": true,
"_materials": [
...
...
@@ -10011,15 +10209,9 @@
"__id__": 2
},
"_children": [
{
"__id__": 211
},
{
"__id__": 215
},
{
"__id__": 217
},
{
"__id__": 219
},
...
...
@@ -10043,12 +10235,18 @@
},
{
"__id__": 233
},
{
"__id__": 235
},
{
"__id__": 237
}
],
"_active": false,
"_components": [
{
"__id__": 23
5
"__id__": 23
9
}
],
"_prefab": null,
...
...
@@ -10104,19 +10302,19 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
2
"__id__": 21
6
},
{
"__id__": 21
3
"__id__": 21
7
},
{
"__id__": 21
4
"__id__": 21
8
}
],
"_prefab": null,
...
...
@@ -10172,7 +10370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
1
"__id__": 21
5
},
"_enabled": true,
"_materials": [
...
...
@@ -10204,7 +10402,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
1
"__id__": 21
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -10231,7 +10429,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
1
"__id__": 21
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -10299,13 +10497,13 @@
"_name": "bg_congratulation",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
16
"__id__": 2
20
}
],
"_prefab": null,
...
...
@@ -10361,7 +10559,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
5
"__id__": 21
9
},
"_enabled": true,
"_materials": [
...
...
@@ -10393,13 +10591,13 @@
"_name": "bg_settle",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
18
"__id__": 2
22
}
],
"_prefab": null,
...
...
@@ -10455,7 +10653,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
17
"__id__": 2
21
},
"_enabled": true,
"_materials": [
...
...
@@ -10487,13 +10685,13 @@
"_name": "bg_settle",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
0
"__id__": 22
4
}
],
"_prefab": null,
...
...
@@ -10549,7 +10747,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
19
"__id__": 2
23
},
"_enabled": true,
"_materials": [
...
...
@@ -10581,13 +10779,13 @@
"_name": "btn_restart",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
2
"__id__": 22
6
}
],
"_prefab": null,
...
...
@@ -10643,7 +10841,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
1
"__id__": 22
5
},
"_enabled": true,
"_materials": [
...
...
@@ -10675,13 +10873,13 @@
"_name": "btn_close",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 22
4
"__id__": 22
8
}
],
"_prefab": null,
...
...
@@ -10737,7 +10935,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
3
"__id__": 22
7
},
"_enabled": true,
"_materials": [
...
...
@@ -10769,13 +10967,13 @@
"_name": "name",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 2
26
"__id__": 2
30
}
],
"_prefab": null,
...
...
@@ -10831,7 +11029,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
5
"__id__": 22
9
},
"_enabled": true,
"_materials": [
...
...
@@ -10866,13 +11064,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
28
"__id__": 2
32
}
],
"_prefab": null,
...
...
@@ -10928,7 +11126,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
27
"__id__": 2
31
},
"_enabled": true,
"_materials": [
...
...
@@ -10963,13 +11161,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
0
"__id__": 23
4
}
],
"_prefab": null,
...
...
@@ -11025,7 +11223,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
29
"__id__": 2
33
},
"_enabled": true,
"_materials": [
...
...
@@ -11060,13 +11258,13 @@
"_name": "count",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
2
"__id__": 23
6
}
],
"_prefab": null,
...
...
@@ -11122,7 +11320,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
1
"__id__": 23
5
},
"_enabled": true,
"_materials": [
...
...
@@ -11157,13 +11355,13 @@
"_name": "time",
"_objFlags": 0,
"_parent": {
"__id__": 21
0
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
4
"__id__": 23
8
}
],
"_prefab": null,
...
...
@@ -11219,7 +11417,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
3
"__id__": 23
7
},
"_enabled": true,
"_materials": [
...
...
@@ -11254,7 +11452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
0
"__id__": 21
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -11332,22 +11530,25 @@
"__id__": 96
},
"layout_tip": {
"__id__": 15
0
"__id__": 15
4
},
"btn_laba": {
"__id__": 145
},
"btn_return": {
"__id__": 150
},
"btn_record": {
"__id__": 20
4
"__id__": 20
8
},
"btn_recording": {
"__id__": 2
06
"__id__": 2
10
},
"label_time": {
"__id__": 88
},
"layout_final": {
"__id__": 21
0
"__id__": 21
4
},
"_id": "db3L+4L+FH/5MIRcKcfiq+"
}
...
...
assets/dg10_ty/scene/dg10_ty.ts
View file @
93cd0443
...
...
@@ -81,6 +81,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
btn_laba
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_return
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_record
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_recording
:
cc
.
Node
=
null
;
...
...
@@ -121,9 +123,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
find
(
"
layout_info/label_title
"
,
this
.
node
).
getComponent
(
cc
.
Label
).
string
=
Game
.
getIns
().
title
;
}
}
exitGame
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
)?.
getComponent
(
'
middleLayer
'
);
if
(
middleLayer
)
{
// 有些模板需要在返回时上报数据,直接把数据作为参数传入就可以了
middleLayer
.
exitGame
(
null
);
//this.resData
}
else
{
console
.
log
(
"
==触发返回事件==
"
);
}
}
initEvent
()
{
this
.
btn_laba
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
playLaba
,
this
);
this
.
btn_return
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
exitGame
,
this
);
cc
.
find
(
"
btn_close
"
,
this
.
layout_final
).
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onCloseFinal
,
this
);
cc
.
find
(
"
btn_restart
"
,
this
.
layout_final
).
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onRestart
,
this
);
pg
.
event
.
on
(
"
game_start
"
,
()
=>
{
...
...
assets/dg10_ty/textures/btn-return.png
0 → 100644
View file @
93cd0443
8.53 KB
assets/dg10_ty/textures/btn-return.png.meta
0 → 100644
View file @
93cd0443
{
"ver": "2.3.5",
"uuid": "99d3450e-9cac-4fac-98c5-815a4f9b2b1f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 131,
"height": 131,
"platformSettings": {},
"subMetas": {
"btn-return": {
"ver": "1.0.4",
"uuid": "0072fed4-a751-4c0f-a8fa-178862fd46d1",
"rawTextureUuid": "99d3450e-9cac-4fac-98c5-815a4f9b2b1f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 131,
"height": 131,
"rawWidth": 131,
"rawHeight": 131,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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