Commit c659e3ab authored by Tt's avatar Tt

基础部分完成

parent ca76b9d7
...@@ -81,25 +81,37 @@ ...@@ -81,25 +81,37 @@
"__id__": 9 "__id__": 9
}, },
{ {
"__id__": 29 "__id__": 25
}, },
{ {
"__id__": 37 "__id__": 27
}, },
{ {
"__id__": 44 "__id__": 31
}, },
{ {
"__id__": 51 "__id__": 33
},
{
"__id__": 41
},
{
"__id__": 50
},
{
"__id__": 57
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 71 "__id__": 77
}, },
{ {
"__id__": 72 "__id__": 78
},
{
"__id__": 79
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -457,19 +469,16 @@ ...@@ -457,19 +469,16 @@
"__id__": 18 "__id__": 18
}, },
{ {
"__id__": 23 "__id__": 21
},
{
"__id__": 25
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 23
}, },
{ {
"__id__": 28 "__id__": 24
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -869,18 +878,14 @@ ...@@ -869,18 +878,14 @@
"_parent": { "_parent": {
"__id__": 9 "__id__": 9
}, },
"_children": [ "_children": [],
{
"__id__": 19
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 21 "__id__": 19
}, },
{ {
"__id__": 22 "__id__": 20
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -931,18 +936,77 @@ ...@@ -931,18 +936,77 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "d8v87UrzBDE6R8txgUJSSy" "_id": "d8v87UrzBDE6R8txgUJSSy"
}, },
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "972fff05-3a57-4d4c-a25a-d9a83fa157a5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6fkLksoB5Bf6g0l6EljFQd"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "8ferYZUeVPAbewmu0SBfEy"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img_kuang", "_name": "img_question",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 18 "__id__": 9
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 22
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -956,8 +1020,8 @@ ...@@ -956,8 +1020,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1114, "width": 1065,
"height": 815 "height": 129
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -968,8 +1032,8 @@ ...@@ -968,8 +1032,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-61.699, -235.813,
73.485, -393.014,
0, 0,
0, 0,
0, 0,
...@@ -991,14 +1055,14 @@ ...@@ -991,14 +1055,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "6fck0udtpCYYI4SAyEVA3L" "_id": "60MsKAQFJJYKJajxMKLkx3"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 21
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1009,7 +1073,7 @@ ...@@ -1009,7 +1073,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "7cdf3e61-fc33-452e-9152-343371ba31ba" "__uuid__": "4e53666b-ee48-43de-9e7e-c9644ddf82a3"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1023,14 +1087,14 @@ ...@@ -1023,14 +1087,14 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "d0P0EAgddCLYD3GgyGwFcL" "_id": "d3Ja9pgO1JEaGFNiecBqEg"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 18 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1041,10 +1105,10 @@ ...@@ -1041,10 +1105,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "972fff05-3a57-4d4c-a25a-d9a83fa157a5" "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1055,19 +1119,19 @@ ...@@ -1055,19 +1119,19 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "6fkLksoB5Bf6g0l6EljFQd" "_id": "95eN2RZM5Ag4ncz1PGHbHy"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 18 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 9, "_alignFlags": 45,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
...@@ -1080,22 +1144,22 @@ ...@@ -1080,22 +1144,22 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 0, "_originalWidth": 1920,
"_originalHeight": 0, "_originalHeight": 1080,
"_id": "8ferYZUeVPAbewmu0SBfEy" "_id": "199fxwZgxDhZXvZDRnCATr"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img_deng", "_name": "question_img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 9 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1109,8 +1173,8 @@ ...@@ -1109,8 +1173,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1112, "width": 1030,
"height": 64 "height": 720
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1121,8 +1185,8 @@ ...@@ -1121,8 +1185,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-251.185, -259.547,
506.438, 97.652,
0, 0,
0, 0,
0, 0,
...@@ -1144,14 +1208,14 @@ ...@@ -1144,14 +1208,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "eae6ts4NpPvqerfqafRASW" "_id": "b7se0aPAZAU5VlNC07t8+S"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 25
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1162,10 +1226,10 @@ ...@@ -1162,10 +1226,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "b0f47749-d6d8-4603-aaa7-616d23e86647" "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1176,20 +1240,86 @@ ...@@ -1176,20 +1240,86 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "b0z/w7Q1JKJLa0FOMV+ucG" "_id": "d9NPgj5NFALZAQrQO5YVQF"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img_question", "_name": "img_kuang",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 9 "__id__": 2
},
"_children": [
{
"__id__": 28
}
],
"_active": true,
"_components": [
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1114,
"height": 815
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-258.199,
93.985,
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": "6fck0udtpCYYI4SAyEVA3L"
},
{
"__type__": "cc.Node",
"_name": "img_deng",
"_objFlags": 0,
"_parent": {
"__id__": 27
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1203,8 +1333,8 @@ ...@@ -1203,8 +1333,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1065, "width": 1112,
"height": 129 "height": 64
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1215,8 +1345,8 @@ ...@@ -1215,8 +1345,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-235.813, 7.014,
-393.014, 412.453,
0, 0,
0, 0,
0, 0,
...@@ -1238,14 +1368,14 @@ ...@@ -1238,14 +1368,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "60MsKAQFJJYKJajxMKLkx3" "_id": "eae6ts4NpPvqerfqafRASW"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1256,7 +1386,7 @@ ...@@ -1256,7 +1386,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "4e53666b-ee48-43de-9e7e-c9644ddf82a3" "__uuid__": "b0f47749-d6d8-4603-aaa7-616d23e86647"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1270,14 +1400,14 @@ ...@@ -1270,14 +1400,14 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "d3Ja9pgO1JEaGFNiecBqEg" "_id": "b0z/w7Q1JKJLa0FOMV+ucG"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 9 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1288,10 +1418,10 @@ ...@@ -1288,10 +1418,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" "__uuid__": "7cdf3e61-fc33-452e-9152-343371ba31ba"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1302,34 +1432,102 @@ ...@@ -1302,34 +1432,102 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "95eN2RZM5Ag4ncz1PGHbHy" "_id": "d0P0EAgddCLYD3GgyGwFcL"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Node",
"_name": "label_title",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 152,
"g": 44,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 90
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-62.593,
-196.015,
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": "3cC1eTyjxJ5JMAGNN5QUO9"
},
{
"__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 9 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "_materials": [
"_target": null, {
"_alignFlags": 45, "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_left": 0, }
"_right": 0, ],
"_top": 0, "_srcBlendFactor": 770,
"_bottom": 0, "_dstBlendFactor": 771,
"_verticalCenter": 0, "_string": "",
"_horizontalCenter": 0, "_N$string": "",
"_isAbsLeft": true, "_fontSize": 40,
"_isAbsRight": true, "_lineHeight": 40,
"_isAbsTop": true, "_enableWrapText": true,
"_isAbsBottom": true, "_N$file": null,
"_isAbsHorizontalCenter": true, "_isSystemFontUsed": true,
"_isAbsVerticalCenter": true, "_spacingX": 0,
"_originalWidth": 1920, "_batchAsBitmap": false,
"_originalHeight": 1080, "_styleFlags": 1,
"_id": "199fxwZgxDhZXvZDRnCATr" "_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "84Fjg8lBlGvax8Gy+7UAnc"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -1340,16 +1538,16 @@ ...@@ -1340,16 +1538,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 30 "__id__": 34
}, },
{ {
"__id__": 32 "__id__": 36
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1405,13 +1603,13 @@ ...@@ -1405,13 +1603,13 @@
"_name": "ani", "_name": "ani",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 29 "__id__": 33
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 31 "__id__": 35
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1467,7 +1665,7 @@ ...@@ -1467,7 +1665,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1507,17 +1705,17 @@ ...@@ -1507,17 +1705,17 @@
"_name": "btn_go", "_name": "btn_go",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 29 "__id__": 33
}, },
"_children": [ "_children": [
{ {
"__id__": 33 "__id__": 37
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 35 "__id__": 39
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1573,13 +1771,13 @@ ...@@ -1573,13 +1771,13 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 32 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1635,7 +1833,7 @@ ...@@ -1635,7 +1833,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1668,7 +1866,7 @@ ...@@ -1668,7 +1866,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 32 "__id__": 36
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1700,31 +1898,34 @@ ...@@ -1700,31 +1898,34 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 33
}, },
"_enabled": true, "_enabled": true,
"aniRole": { "aniRole": {
"__id__": 30 "__id__": 34
}, },
"moveX": 500, "moveX": 500,
"_id": "e4RrOXSNJGd68Mq3UTYY0p" "_id": "e4RrOXSNJGd68Mq3UTYY0p"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "video", "_name": "layout_record",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 38 "__id__": 42
}, },
{ {
"__id__": 40 "__id__": 44
}, },
{ {
"__id__": 42 "__id__": 46
},
{
"__id__": 48
} }
], ],
"_active": true, "_active": true,
...@@ -1752,10 +1953,72 @@ ...@@ -1752,10 +1953,72 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-762.645,
-398.618,
0, 0,
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": "00XMxwg7NIOJvf2n/Cchnu"
},
{
"__type__": "cc.Node",
"_name": "icon_restar",
"_objFlags": 0,
"_parent": {
"__id__": 41
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
6.126,
5.786,
0,
0,
0, 0,
0, 0,
1, 1,
...@@ -1775,20 +2038,52 @@ ...@@ -1775,20 +2038,52 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "d75JnDLRtH9ppMpN0p889r" "_id": "1foBDZ4NhEdKKeOFTW0HJo"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "01221e7a-2735-4689-b4cc-7ef2fef5b533"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b5PQvSCQFMNZ2Z4Mkm2JHK"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_return", "_name": "icon_vioce",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 37 "__id__": 41
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1802,8 +2097,8 @@ ...@@ -1802,8 +2097,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 121, "width": 158,
"height": 121 "height": 158
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1814,8 +2109,8 @@ ...@@ -1814,8 +2109,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-2138.884, 4.483,
253.509, 6.845,
0, 0,
0, 0,
0, 0,
...@@ -1837,14 +2132,14 @@ ...@@ -1837,14 +2132,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "070l7GU7ZMEphMqFYEk4DP" "_id": "a0YV9WCMlB1J1qpWj+U3Mh"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 44
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1855,7 +2150,7 @@ ...@@ -1855,7 +2150,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "34c04927-f89c-43bc-9379-695061093679" "__uuid__": "b3bc5756-e154-4507-9714-45cf77779e85"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1869,20 +2164,20 @@ ...@@ -1869,20 +2164,20 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "c1BqdR+I1BepL/D7bbpfuI" "_id": "c3VF+UD2lGcI/uuaRRfA63"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon_play", "_name": "img_voice_ing",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 37 "__id__": 41
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 47
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1896,8 +2191,8 @@ ...@@ -1896,8 +2191,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 57, "width": 158,
"height": 69 "height": 158
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1908,8 +2203,8 @@ ...@@ -1908,8 +2203,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-1954.559, 4.665,
241.018, 6.755,
0, 0,
0, 0,
0, 0,
...@@ -1931,14 +2226,14 @@ ...@@ -1931,14 +2226,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "61Cne3xINPwI0xbOGYXrkt" "_id": "de4+F7BwtAt5ow6WrgwyjM"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1949,7 +2244,7 @@ ...@@ -1949,7 +2244,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "bea0f980-acb2-4976-99b8-1279f167f703" "__uuid__": "51c85556-93eb-4774-8d44-0c6bbf044bda"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1963,35 +2258,35 @@ ...@@ -1963,35 +2258,35 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "d2UoDFVLpFTqwZoQUChUOB" "_id": "85HncTZY5AToqFa9LwH7//"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon_stop", "_name": "label_title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 37 "__id__": 41
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 49
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 44,
"g": 255, "g": 141,
"b": 255, "b": 218,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 44, "width": 288,
"height": 52 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2002,8 +2297,8 @@ ...@@ -2002,8 +2297,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-1853.951, 267.253,
236.361, 4.868,
0, 0,
0, 0,
0, 0,
...@@ -2025,14 +2320,14 @@ ...@@ -2025,14 +2320,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "a8W3EAoalBmK71toFBgo0/" "_id": "04f10LO3tGS7yENhTqswgL"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2042,39 +2337,40 @@ ...@@ -2042,39 +2337,40 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_string": "请录音回答吧",
"__uuid__": "e623838a-b18e-44ec-9afb-664e4bae0b72" "_N$string": "请录音回答吧",
}, "_fontSize": 48,
"_type": 0, "_lineHeight": 48,
"_sizeMode": 1, "_enableWrapText": true,
"_fillType": 0, "_N$file": null,
"_fillCenter": { "_isSystemFontUsed": true,
"__type__": "cc.Vec2", "_spacingX": 0,
"x": 0, "_batchAsBitmap": false,
"y": 0 "_styleFlags": 1,
}, "_underlineHeight": 0,
"_fillStart": 0, "_N$horizontalAlign": 0,
"_fillRange": 0, "_N$verticalAlign": 1,
"_isTrimmedMode": true, "_N$fontFamily": "Arial",
"_atlas": null, "_N$overflow": 0,
"_id": "5coT7j++VBQ7EDgbTEiCth" "_N$cacheMode": 0,
"_id": "7bC3Dz6a1E2q2tCpZdwoJ+"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "layout_record", "_name": "video",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 45 "__id__": 51
}, },
{ {
"__id__": 47 "__id__": 53
}, },
{ {
"__id__": 49 "__id__": 55
} }
], ],
"_active": true, "_active": true,
...@@ -2102,8 +2398,8 @@ ...@@ -2102,8 +2398,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-762.645, 0,
-398.618, 0,
0, 0,
0, 0,
0, 0,
...@@ -2125,20 +2421,20 @@ ...@@ -2125,20 +2421,20 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "00XMxwg7NIOJvf2n/Cchnu" "_id": "d75JnDLRtH9ppMpN0p889r"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon_restar", "_name": "btn_return",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 44 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 46 "__id__": 52
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2152,8 +2448,8 @@ ...@@ -2152,8 +2448,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 158, "width": 121,
"height": 158 "height": 121
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2164,8 +2460,8 @@ ...@@ -2164,8 +2460,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
6.126, -2138.884,
5.786, 253.509,
0, 0,
0, 0,
0, 0,
...@@ -2187,14 +2483,14 @@ ...@@ -2187,14 +2483,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1foBDZ4NhEdKKeOFTW0HJo" "_id": "070l7GU7ZMEphMqFYEk4DP"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 45 "__id__": 51
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2205,7 +2501,7 @@ ...@@ -2205,7 +2501,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "01221e7a-2735-4689-b4cc-7ef2fef5b533" "__uuid__": "34c04927-f89c-43bc-9379-695061093679"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2219,20 +2515,20 @@ ...@@ -2219,20 +2515,20 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "b5PQvSCQFMNZ2Z4Mkm2JHK" "_id": "c1BqdR+I1BepL/D7bbpfuI"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon_vioce", "_name": "icon_play",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 44 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2246,8 +2542,8 @@ ...@@ -2246,8 +2542,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 158, "width": 57,
"height": 158 "height": 69
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2258,8 +2554,8 @@ ...@@ -2258,8 +2554,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
4.483, -1954.559,
6.845, 241.018,
0, 0,
0, 0,
0, 0,
...@@ -2281,14 +2577,14 @@ ...@@ -2281,14 +2577,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "a0YV9WCMlB1J1qpWj+U3Mh" "_id": "61Cne3xINPwI0xbOGYXrkt"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 47 "__id__": 53
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2299,7 +2595,7 @@ ...@@ -2299,7 +2595,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "b3bc5756-e154-4507-9714-45cf77779e85" "__uuid__": "bea0f980-acb2-4976-99b8-1279f167f703"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2313,20 +2609,20 @@ ...@@ -2313,20 +2609,20 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "c3VF+UD2lGcI/uuaRRfA63" "_id": "d2UoDFVLpFTqwZoQUChUOB"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img_voice_ing", "_name": "icon_stop",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 44 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 50 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2340,8 +2636,8 @@ ...@@ -2340,8 +2636,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 158, "width": 44,
"height": 158 "height": 52
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2352,8 +2648,8 @@ ...@@ -2352,8 +2648,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
4.665, -1853.951,
6.755, 236.361,
0, 0,
0, 0,
0, 0,
...@@ -2375,14 +2671,14 @@ ...@@ -2375,14 +2671,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "de4+F7BwtAt5ow6WrgwyjM" "_id": "a8W3EAoalBmK71toFBgo0/"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 49 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2393,7 +2689,7 @@ ...@@ -2393,7 +2689,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "51c85556-93eb-4774-8d44-0c6bbf044bda" "__uuid__": "e623838a-b18e-44ec-9afb-664e4bae0b72"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2407,7 +2703,7 @@ ...@@ -2407,7 +2703,7 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "85HncTZY5AToqFa9LwH7//" "_id": "5coT7j++VBQ7EDgbTEiCth"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -2418,13 +2714,13 @@ ...@@ -2418,13 +2714,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 52 "__id__": 58
}, },
{ {
"__id__": 55 "__id__": 61
}, },
{ {
"__id__": 56 "__id__": 62
} }
], ],
"_active": true, "_active": true,
...@@ -2482,11 +2778,11 @@ ...@@ -2482,11 +2778,11 @@
"_name": "font", "_name": "font",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 51 "__id__": 57
}, },
"_children": [ "_children": [
{ {
"__id__": 53 "__id__": 59
} }
], ],
"_active": true, "_active": true,
...@@ -2544,13 +2840,13 @@ ...@@ -2544,13 +2840,13 @@
"_name": "BRLNSDB", "_name": "BRLNSDB",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 52 "__id__": 58
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 54 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2606,7 +2902,7 @@ ...@@ -2606,7 +2902,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2641,7 +2937,7 @@ ...@@ -2641,7 +2937,7 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 51 "__id__": 57
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
...@@ -2699,29 +2995,29 @@ ...@@ -2699,29 +2995,29 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 51 "__id__": 57
}, },
"_children": [ "_children": [
{ {
"__id__": 57 "__id__": 63
}, },
{ {
"__id__": 59 "__id__": 65
}, },
{ {
"__id__": 61 "__id__": 67
}, },
{ {
"__id__": 63 "__id__": 69
}, },
{ {
"__id__": 65 "__id__": 71
}, },
{ {
"__id__": 67 "__id__": 73
}, },
{ {
"__id__": 69 "__id__": 75
} }
], ],
"_active": true, "_active": true,
...@@ -2779,13 +3075,13 @@ ...@@ -2779,13 +3075,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2841,7 +3137,7 @@ ...@@ -2841,7 +3137,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 57 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2860,13 +3156,13 @@ ...@@ -2860,13 +3156,13 @@
"_name": "right", "_name": "right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 60 "__id__": 66
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2922,7 +3218,7 @@ ...@@ -2922,7 +3218,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2941,13 +3237,13 @@ ...@@ -2941,13 +3237,13 @@
"_name": "bettery", "_name": "bettery",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 68
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3003,7 +3299,7 @@ ...@@ -3003,7 +3299,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 61 "__id__": 67
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -3022,13 +3318,13 @@ ...@@ -3022,13 +3318,13 @@
"_name": "error", "_name": "error",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 64 "__id__": 70
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3084,7 +3380,7 @@ ...@@ -3084,7 +3380,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -3103,13 +3399,13 @@ ...@@ -3103,13 +3399,13 @@
"_name": "bgm", "_name": "bgm",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3165,7 +3461,7 @@ ...@@ -3165,7 +3461,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 65 "__id__": 71
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -3184,13 +3480,13 @@ ...@@ -3184,13 +3480,13 @@
"_name": "opendoor", "_name": "opendoor",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3246,7 +3542,7 @@ ...@@ -3246,7 +3542,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -3265,13 +3561,13 @@ ...@@ -3265,13 +3561,13 @@
"_name": "light", "_name": "light",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 70 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3327,7 +3623,7 @@ ...@@ -3327,7 +3623,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -3384,5 +3680,21 @@ ...@@ -3384,5 +3680,21 @@
"_originalWidth": 0, "_originalWidth": 0,
"_originalHeight": 0, "_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe" "_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "4592bSqPPRGd79nXmvOGwTQ",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"question_img": {
"__id__": 25
},
"label_title": {
"__id__": 31
},
"_id": "6eW7M4ET1L4KOTzIOVRmf8"
} }
] ]
\ No newline at end of file
...@@ -54,10 +54,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -54,10 +54,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
get nextQuestion() { return this.questions[this.current + 1] } get nextQuestion() { return this.questions[this.current + 1] }
@property(cc.Node) question_img: cc.Node = null;
@property(cc.Node) label_title: cc.Node = null;
// 初始化页面 // 初始化页面
initView() { initView() {
this.img_dengdai.opacity = 100;
this.img_dengpao.opacity = 100;
} }
// 事件监听 // 事件监听
initEvent() { initEvent() {
...@@ -68,284 +69,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -68,284 +69,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.nextStage(); this.nextStage();
} }
@property(cc.Node) layout_canvas: cc.Node = null;
@property(cc.Node) layout_items: cc.Node = null;
@property(cc.Node) layout_target: cc.Node = null;
@property(cc.Node) layout_battery_left: cc.Node = null;
@property(cc.Node) layout_battery_right: cc.Node = null;
@property(cc.Node) item_battery_text: cc.Node = null;
@property(cc.Node) item_battery_img: cc.Node = null;
@property(cc.Node) img_left: cc.Node = null;
@property(cc.Node) img_right: cc.Node = null;
@property(cc.Node) ani_star: cc.Node = null;
@property(cc.Node) img_dengpao: cc.Node = null;
@property(cc.Node) img_dengdai: cc.Node = null;
initCanvas() {
this.img_dengdai.opacity = 100;
this.img_dengpao.opacity = 100;
let img = pg.view.find(this.layout_canvas, 'img');
pg.view.setNetImg(img, this.currentQuestion.bgItem.url, { w: 1220, h: 790 }, false)
if (this.current == 0) {
this.playLocalAudio('opendoor')
let img_door_left = pg.view.find(this.layout_canvas, 'img_door_left')
let img_door_right = pg.view.find(this.layout_canvas, 'img_door_right')
this.img_left.active = true;
this.img_right.active = true;
cc.tween(img_door_left).to(1.6, { x: -1000 }).call(() => {
this.img_left.active = false;
this.img_right.active = false;
}).start();
cc.tween(img_door_right).to(1.6, { x: 1000 }).start();
}
this.initTargets();
}
initTargets() {
this.layout_target.removeAllChildren();
let item_color = pg.view.find(this, 'item_color');
let arr = this.changepoints(this.currentQuestion);
arr.forEach((ar) => {
let node = pg.view.clone(item_color);
node.x = ar.pos.x;
node.y = ar.pos.y;
node.data = ar;
node.removeComponent(cc.Sprite);
this.layout_target.addChild(node)
console.log(node.x, node.y)
})
}
initLayoutBattery() {
let color = 1;
let orgPosY = 500;
let spaceImgY = 300;
let spaceTextY = 200;
this.layout_battery_left.removeAllChildren();
this.layout_battery_right.removeAllChildren();
// 电池显示 左边4个 右边4个 如果是6个就是左三个 右三个
let hotZoneItemArr = this.currentQuestion.hotZoneItemArr
let lineNum = Math.ceil(hotZoneItemArr.length / 2)
let lastY = null;
let delayTime = 1.5;
if (this.current == 0) {
this.scheduleOnce(() => {
this.playLocalAudio('bettery').then(() => {
// pg.audio.playLocalBgm(pg.view.find(this, 'res/audio/bgm'))
})
}, delayTime)
} else {
this.playLocalAudio('bettery')
}
hotZoneItemArr.forEach((data, i) => {
let isleft = i + 1 <= lineNum
let layout = isleft ? this.layout_battery_left : this.layout_battery_right;
if (i + 1 - lineNum == 1) {
lastY = null;
}
if (data.itemType == 'text') {
let item = pg.view.clone(this.item_battery_text)
item.active = true;
item.x = 0;
let item_text = pg.view.find(item, 'item_text');
pg.view.setString(pg.view.find(item_text, 'text'), data.text)
pg.view.setColor(pg.view.find(item_text, 'text'), "#FEFE24")
for (let n = 1; n <= 6; n++) {
pg.view.visible(pg.view.find(item, 'bg/img_battery' + n), false)
}
if (isleft) {
// 左侧
let sid = (i + 1) % 4 + 1
pg.view.visible(pg.view.find(item, 'bg/img_battery' + sid), true)
item.x = -400;
if (this.current == 0) {
cc.tween(item).delay(delayTime).to(0.5, { x: 0 }).start();
} else {
cc.tween(item).to(0.5, { x: 0 }).start();
}
} else {
// 右侧
let sid = (i + 1 - lineNum) % 2 + 5
pg.view.visible(pg.view.find(item, 'bg/img_battery' + sid), true)
item_text.x = 20
item.x = 400;
if (this.current == 0) {
cc.tween(item).delay(delayTime).to(0.5, { x: 0 }).start();
} else {
cc.tween(item).to(0.5, { x: 0 }).start();
}
}
if (!lastY && lastY != 0) lastY = orgPosY;
item.y = lastY -= spaceTextY;
layout.addChild(item);
lastY = item.y;
item_text.data = data;
color++;
if (color > 6) color = 1;
item_text.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
item_text.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
item_text.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
item_text.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
} else if (data.itemType == 'pic') {
let item = pg.view.clone(this.item_battery_img)
let item_img = pg.view.find(item, 'item_img');
pg.view.setNetImg(pg.view.find(item_img, 'img'), data.pic_url, { w: 270, h: 180 }, true)
item.active = true;
item.x = 0;
if (!lastY && lastY != 0) lastY = orgPosY;
item.y = lastY -= spaceImgY;
if (isleft) {
// 左侧
item.x = -400;
if (this.current == 0) {
cc.tween(item).delay(delayTime).to(0.5, { x: 0 }).start();
} else {
cc.tween(item).to(0.5, { x: 0 }).start();
}
} else {
// 右侧
item.x = 400;
if (this.current == 0) {
cc.tween(item).delay(delayTime).to(0.5, { x: 0 }).start();
} else {
cc.tween(item).to(0.5, { x: 0 }).start();
}
}
layout.addChild(item);
lastY = item.y;
item_img.data = data;
item_img.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
item_img.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
item_img.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
item_img.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
}
console.log(data);
})
}
currentTouchNode: cc.Node;
onTouchStart(event) {
let node = event.target;
this.currentTouchNode = node;
node.cPos = cc.v2(node);
}
onTouchMove(event) {
let node = event.target;
if (!node || !node.data) return;
if (node != this.currentTouchNode) return;
node.opacity = 255;
let delta = event.touch.getDelta();
let pos = cc.v2(delta);
node.x += pos.x;
node.y += pos.y;
}
onTouchEnd(event) {
let node = event.target;
if (!node || !node.data) return;
if (node != this.currentTouchNode) return;
let x = node.x;
let y = node.y;
let isIn = this.rectCollect(node, this.layout_canvas);
if (!isIn) {
this.onMeetFail(node);
} else {
// 未碰撞到
// 判定碰撞坐标和区域
let targetData = this.checkSuccess(node)
if (!targetData) {
this.onMeetFail(node);
} else {
if (node.data.index != targetData.index) {
this.onMeetFail(node);
} else {
this.onMeetSuccess(node, targetData);
}
}
}
}
// 检测碰撞成功需要重新编写
checkSuccess(node) {
let question = this.currentQuestion
let arr = this.changepoints(question)
// 左上角坐标
let targetData = null;
let minDis = 999999;
let items = this.layout_target.children;
items.forEach((item, i) => {
let data = item.data;
let dis = this.getDistances(item, node);
if (dis < 100 && dis < minDis) {
minDis = dis;
targetData = data;
}
})
return targetData
}
private changepoints(data) {
let scX = 1220 / data.bgItem.rect.width;
let scY = 790 / data.bgItem.rect.height;
let px = data.bgItem.rect.x;
let py = data.bgItem.rect.y;
return data.hotZoneItemArr.map((item, idx) => {
let rect = item.rect;
item.pos = {
x: (rect.x + (rect.width / 2)) * scX,
y: -((rect.y + (rect.height / 2)) * scY)
}
item.width = rect.width * scX;
item.height = rect.height * scY;
return item;
})
}
onMeetSuccess(node, targetData) {
this.playLocalAudio('right')
node.off(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
node.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
node.off(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
node.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
node.x = targetData.pos.x;
node.y = targetData.pos.y;
pg.view.setColor(pg.view.find(node, 'text'), '#1D8B38')
let item = pg.view.clone(this.ani_star);
node.addChild(item);
item.x = -15;
item.y = -15;
item.active = true;
pg.view.playDBAnimation(item, 'normal', 1)
node.parent = this.layout_items;
// 处理完成就结束了
this.successArr.push(targetData);
// 处理完成
if (this.successArr.length == this.currentQuestion.hotZoneItemArr.length) {
cc.tween(this.img_dengdai).repeat(2, cc.tween().to(0.2, { opacity: 255 }).to(0.2, { opacity: 50 })).to(0.2, { opacity: 255 }).start();
cc.tween(this.img_dengpao).repeatForever(cc.tween().to(0.2, { opacity: 255 }).to(0.2, { opacity: 50 })).start();
this.playLocalAudio('light')
this.scheduleOnce(() => {
cc.Tween.stopAllByTarget(this.img_dengdai)
cc.Tween.stopAllByTarget(this.img_dengpao)
this.img_dengdai.opacity = 100;
this.img_dengpao.opacity = 100;
this.nextStage();
}, 2)
}
}
onMeetFail(node) {
this.playLocalAudio('error')
node.x = node.cPos.x;
node.y = node.cPos.y;
}
nextStage() { nextStage() {
// 处理下一个数 // 处理下一个数
if (!this.nextQuestion) { if (!this.nextQuestion) {
...@@ -354,9 +79,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -354,9 +79,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
this.current++ this.current++
this.successArr = []; this.successArr = [];
this.layout_items.removeAllChildren(); this.updateQuestion();
this.initCanvas(); }
this.initLayoutBattery(); updateQuestion() {
// 图片部分
pg.view.setNetImg(this.question_img, this.currentQuestion.img, { w: 1030, h: 720 })
pg.view.setString(this.label_title,this.currentQuestion.title);
} }
private waitTime: number; private waitTime: number;
...@@ -368,25 +97,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -368,25 +97,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
} }
private getDistances(node1, node2) {
//转换世界坐标查看距离
let p1 = node1.convertToWorldSpaceAR(cc.v2(0, 0));
let p2 = node2.convertToWorldSpaceAR(cc.v2(0, 0));
let temp = p1.sub(p2);
let dis = Math.abs(temp.mag());
console.log(`${p1.x},${p1.y}`, `${p2.x},${p2.y}`, dis);
return dis;
}
private rectCollect(A, B) {
let AP = A.convertToWorldSpaceAR(cc.v2(0, 0));
let BP = B.convertToWorldSpaceAR(cc.v2(0, 0));
if (Math.abs(AP.x - BP.x) < A.width / 2 + B.width / 2
&& Math.abs(AP.y - BP.y) < A.height / 2 + B.height / 2) return true;
return false;
}
showXiaodi() { showXiaodi() {
if (!this.data.npcAudioEnd) return; if (!this.data.npcAudioEnd) return;
pg.view.find(this, 'layout_xiaodi/btn_go').active = false; pg.view.find(this, 'layout_xiaodi/btn_go').active = false;
......
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