Commit 93cd0443 authored by Tt's avatar Tt

退出按钮

parent 6427b047
......@@ -90,31 +90,34 @@
"__id__": 150
},
{
"__id__": 170
"__id__": 154
},
{
"__id__": 183
"__id__": 174
},
{
"__id__": 204
"__id__": 187
},
{
"__id__": 206
"__id__": 208
},
{
"__id__": 210
},
{
"__id__": 214
}
],
"_active": true,
"_components": [
{
"__id__": 236
"__id__": 240
},
{
"__id__": 237
"__id__": 241
},
{
"__id__": 238
"__id__": 242
}
],
"_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__": 151
"__id__": 155
},
{
"__id__": 154
"__id__": 158
},
{
"__id__": 159
"__id__": 163
},
{
"__id__": 164
"__id__": 168
}
],
"_active": false,
"_components": [
{
"__id__": 169
"__id__": 173
}
],
"_prefab": null,
......@@ -6953,16 +7151,16 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 150
"__id__": 154
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 152
"__id__": 156
},
{
"__id__": 153
"__id__": 157
}
],
"_prefab": null,
......@@ -7018,7 +7216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 151
"__id__": 155
},
"_enabled": true,
"alignMode": 1,
......@@ -7045,7 +7243,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 151
"__id__": 155
},
"_enabled": true,
"_normalMaterial": null,
......@@ -7113,14 +7311,14 @@
"_name": "img_gj",
"_objFlags": 0,
"_parent": {
"__id__": 150
"__id__": 154
},
"_children": [
{
"__id__": 155
"__id__": 159
},
{
"__id__": 157
"__id__": 161
}
],
"_active": false,
......@@ -7178,13 +7376,13 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 154
"__id__": 158
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 156
"__id__": 160
}
],
"_prefab": null,
......@@ -7240,7 +7438,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 155
"__id__": 159
},
"_enabled": true,
"_materials": [
......@@ -7270,13 +7468,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 154
"__id__": 158
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 158
"__id__": 162
}
],
"_prefab": null,
......@@ -7332,7 +7530,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 157
"__id__": 161
},
"_enabled": true,
"_materials": [
......@@ -7364,14 +7562,14 @@
"_name": "img_ta",
"_objFlags": 0,
"_parent": {
"__id__": 150
"__id__": 154
},
"_children": [
{
"__id__": 160
"__id__": 164
},
{
"__id__": 162
"__id__": 166
}
],
"_active": false,
......@@ -7429,13 +7627,13 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 159
"__id__": 163
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 161
"__id__": 165
}
],
"_prefab": null,
......@@ -7491,7 +7689,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 160
"__id__": 164
},
"_enabled": true,
"_materials": [
......@@ -7521,13 +7719,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 159
"__id__": 163
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 163
"__id__": 167
}
],
"_prefab": null,
......@@ -7583,7 +7781,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 162
"__id__": 166
},
"_enabled": true,
"_materials": [
......@@ -7615,14 +7813,14 @@
"_name": "img_co",
"_objFlags": 0,
"_parent": {
"__id__": 150
"__id__": 154
},
"_children": [
{
"__id__": 165
"__id__": 169
},
{
"__id__": 167
"__id__": 171
}
],
"_active": false,
......@@ -7680,13 +7878,13 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 164
"__id__": 168
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 166
"__id__": 170
}
],
"_prefab": null,
......@@ -7742,7 +7940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 165
"__id__": 169
},
"_enabled": true,
"_materials": [
......@@ -7772,13 +7970,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 164
"__id__": 168
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 168
"__id__": 172
}
],
"_prefab": null,
......@@ -7834,7 +8032,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 167
"__id__": 171
},
"_enabled": true,
"_materials": [
......@@ -7864,7 +8062,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 150
"__id__": 154
},
"_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__": 170
"__id__": 174
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 172
"__id__": 176
}
],
"_prefab": null,
......@@ -8030,7 +8228,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 171
"__id__": 175
},
"_enabled": true,
"_normalMaterial": null,
......@@ -8098,13 +8296,13 @@
"_name": "bg_instructions",
"_objFlags": 0,
"_parent": {
"__id__": 170
"__id__": 174
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 174
"__id__": 178
}
],
"_prefab": null,
......@@ -8160,7 +8358,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 173
"__id__": 177
},
"_enabled": true,
"_materials": [
......@@ -8192,13 +8390,13 @@
"_name": "text_1",
"_objFlags": 0,
"_parent": {
"__id__": 170
"__id__": 174
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 176
"__id__": 180
}
],
"_prefab": null,
......@@ -8254,7 +8452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 175
"__id__": 179
},
"_enabled": true,
"_materials": [
......@@ -8286,13 +8484,13 @@
"_name": "text_2",
"_objFlags": 0,
"_parent": {
"__id__": 170
"__id__": 174
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 178
"__id__": 182
}
],
"_prefab": null,
......@@ -8348,7 +8546,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
"__id__": 181
},
"_enabled": true,
"_materials": [
......@@ -8380,13 +8578,13 @@
"_name": "text_3",
"_objFlags": 0,
"_parent": {
"__id__": 170
"__id__": 174
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 180
"__id__": 184
}
],
"_prefab": null,
......@@ -8442,7 +8640,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 179
"__id__": 183
},
"_enabled": true,
"_materials": [
......@@ -8474,13 +8672,13 @@
"_name": "text_0",
"_objFlags": 0,
"_parent": {
"__id__": 170
"__id__": 174
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 182
"__id__": 186
}
],
"_prefab": null,
......@@ -8536,7 +8734,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 181
"__id__": 185
},
"_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__": 183
"__id__": 187
},
"_children": [
{
"__id__": 185
"__id__": 189
}
],
"_active": true,
......@@ -8704,11 +8902,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 184
"__id__": 188
},
"_children": [
{
"__id__": 186
"__id__": 190
}
],
"_active": true,
......@@ -8766,13 +8964,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 185
"__id__": 189
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 187
"__id__": 191
}
],
"_prefab": null,
......@@ -8828,7 +9026,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 186
"__id__": 190
},
"_enabled": true,
"_materials": [
......@@ -8858,11 +9056,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 183
"__id__": 187
},
"_children": [
{
"__id__": 189
"__id__": 193
}
],
"_active": true,
......@@ -8920,11 +9118,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 192
},
"_children": [
{
"__id__": 190
"__id__": 194
}
],
"_active": true,
......@@ -8982,13 +9180,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 189
"__id__": 193
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 191
"__id__": 195
}
],
"_prefab": null,
......@@ -9044,7 +9242,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
"__id__": 194
},
"_enabled": true,
"_materials": [
......@@ -9074,11 +9272,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 183
"__id__": 187
},
"_children": [
{
"__id__": 193
"__id__": 197
}
],
"_active": true,
......@@ -9136,11 +9334,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 192
"__id__": 196
},
"_children": [
{
"__id__": 194
"__id__": 198
}
],
"_active": true,
......@@ -9198,13 +9396,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 193
"__id__": 197
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 195
"__id__": 199
}
],
"_prefab": null,
......@@ -9260,7 +9458,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 194
"__id__": 198
},
"_enabled": true,
"_materials": [
......@@ -9290,11 +9488,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 183
"__id__": 187
},
"_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__": 183
"__id__": 187
},
"_children": [
{
"__id__": 201
"__id__": 205
}
],
"_active": true,
......@@ -9568,11 +9766,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 200
"__id__": 204
},
"_children": [
{
"__id__": 202
"__id__": 206
}
],
"_active": true,
......@@ -9630,13 +9828,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 201
"__id__": 205
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 203
"__id__": 207
}
],
"_prefab": null,
......@@ -9692,7 +9890,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 202
"__id__": 206
},
"_enabled": true,
"_materials": [
......@@ -9728,7 +9926,7 @@
"_active": false,
"_components": [
{
"__id__": 205
"__id__": 209
}
],
"_prefab": null,
......@@ -9784,7 +9982,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 204
"__id__": 208
},
"_enabled": true,
"_materials": [
......@@ -9820,13 +10018,13 @@
},
"_children": [
{
"__id__": 207
"__id__": 211
}
],
"_active": false,
"_components": [
{
"__id__": 209
"__id__": 213
}
],
"_prefab": null,
......@@ -9882,13 +10080,13 @@
"_name": "bg_record",
"_objFlags": 0,
"_parent": {
"__id__": 206
"__id__": 210
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 208
"__id__": 212
}
],
"_prefab": null,
......@@ -9944,7 +10142,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 207
"__id__": 211
},
"_enabled": true,
"_materials": [
......@@ -9976,7 +10174,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 206
"__id__": 210
},
"_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__": 235
"__id__": 239
}
],
"_prefab": null,
......@@ -10104,19 +10302,19 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 212
"__id__": 216
},
{
"__id__": 213
"__id__": 217
},
{
"__id__": 214
"__id__": 218
}
],
"_prefab": null,
......@@ -10172,7 +10370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 211
"__id__": 215
},
"_enabled": true,
"_materials": [
......@@ -10204,7 +10402,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 211
"__id__": 215
},
"_enabled": true,
"alignMode": 1,
......@@ -10231,7 +10429,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 211
"__id__": 215
},
"_enabled": true,
"_normalMaterial": null,
......@@ -10299,13 +10497,13 @@
"_name": "bg_congratulation",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 216
"__id__": 220
}
],
"_prefab": null,
......@@ -10361,7 +10559,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 215
"__id__": 219
},
"_enabled": true,
"_materials": [
......@@ -10393,13 +10591,13 @@
"_name": "bg_settle",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 218
"__id__": 222
}
],
"_prefab": null,
......@@ -10455,7 +10653,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 217
"__id__": 221
},
"_enabled": true,
"_materials": [
......@@ -10487,13 +10685,13 @@
"_name": "bg_settle",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 220
"__id__": 224
}
],
"_prefab": null,
......@@ -10549,7 +10747,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 219
"__id__": 223
},
"_enabled": true,
"_materials": [
......@@ -10581,13 +10779,13 @@
"_name": "btn_restart",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 222
"__id__": 226
}
],
"_prefab": null,
......@@ -10643,7 +10841,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 221
"__id__": 225
},
"_enabled": true,
"_materials": [
......@@ -10675,13 +10873,13 @@
"_name": "btn_close",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 224
"__id__": 228
}
],
"_prefab": null,
......@@ -10737,7 +10935,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 223
"__id__": 227
},
"_enabled": true,
"_materials": [
......@@ -10769,13 +10967,13 @@
"_name": "name",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 226
"__id__": 230
}
],
"_prefab": null,
......@@ -10831,7 +11029,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 225
"__id__": 229
},
"_enabled": true,
"_materials": [
......@@ -10866,13 +11064,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 228
"__id__": 232
}
],
"_prefab": null,
......@@ -10928,7 +11126,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 227
"__id__": 231
},
"_enabled": true,
"_materials": [
......@@ -10963,13 +11161,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 230
"__id__": 234
}
],
"_prefab": null,
......@@ -11025,7 +11223,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 229
"__id__": 233
},
"_enabled": true,
"_materials": [
......@@ -11060,13 +11258,13 @@
"_name": "count",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 232
"__id__": 236
}
],
"_prefab": null,
......@@ -11122,7 +11320,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 231
"__id__": 235
},
"_enabled": true,
"_materials": [
......@@ -11157,13 +11355,13 @@
"_name": "time",
"_objFlags": 0,
"_parent": {
"__id__": 210
"__id__": 214
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 234
"__id__": 238
}
],
"_prefab": null,
......@@ -11219,7 +11417,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 233
"__id__": 237
},
"_enabled": true,
"_materials": [
......@@ -11254,7 +11452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 210
"__id__": 214
},
"_enabled": true,
"alignMode": 1,
......@@ -11332,22 +11530,25 @@
"__id__": 96
},
"layout_tip": {
"__id__": 150
"__id__": 154
},
"btn_laba": {
"__id__": 145
},
"btn_return": {
"__id__": 150
},
"btn_record": {
"__id__": 204
"__id__": 208
},
"btn_recording": {
"__id__": 206
"__id__": 210
},
"label_time": {
"__id__": 88
},
"layout_final": {
"__id__": 210
"__id__": 214
},
"_id": "db3L+4L+FH/5MIRcKcfiq+"
}
......
......@@ -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", () => {
......
{
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment