Commit 8c1224c7 authored by 范雪寒's avatar 范雪寒

fix: 标题声音与题目声音重合问题;右下角按钮优先级问题

parent 92fac489
......@@ -93,7 +93,7 @@
"__id__": 38
},
{
"__id__": 52
"__id__": 67
},
{
"__id__": 81
......@@ -946,7 +946,7 @@
"_N$string": "Label",
"_fontSize": 32,
"_lineHeight": 32,
"_enableWrapText": false,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "73588b7a-9fa6-4401-a693-8cb0a6c4e8e4"
},
......@@ -1675,7 +1675,7 @@
"array": [
0,
0,
702.7119569364013,
702.373665763048,
0,
0,
0,
......@@ -1736,7 +1736,7 @@
},
{
"__type__": "cc.Node",
"_name": "BtnNode",
"_name": "OptionPosListBase",
"_objFlags": 0,
"_parent": {
"__id__": 2
......@@ -1745,19 +1745,48 @@
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
}
],
"_active": true,
"_components": [
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
},
{
"__id__": 57
},
{
"__id__": 59
},
{
"__id__": 61
},
{
"__id__": 63
},
{
"__id__": 65
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1769,8 +1798,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 50
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1781,8 +1810,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
540,
-335,
0,
0,
0,
0,
0,
......@@ -1804,11 +1833,11 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d1GLPYuMpBjaY/DvfFKjPv"
"_id": "47Gd6RmnFIM4BiIjDkNqUl"
},
{
"__type__": "cc.Node",
"_name": "BtnBefore",
"_name": "Option_3_0",
"_objFlags": 0,
"_parent": {
"__id__": 38
......@@ -1818,16 +1847,10 @@
"_components": [
{
"__id__": 40
},
{
"__id__": 41
},
{
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -1837,8 +1860,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 45,
"height": 46
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1849,8 +1872,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-60,
2,
-436,
-230,
0,
0,
0,
......@@ -1872,7 +1895,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f1UyKjb9NNELTKB+QVVWjH"
"_id": "8eIpVJlxxNBbMc5V/4dmSx"
},
{
"__type__": "cc.Sprite",
......@@ -1890,10 +1913,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "922fee6b-64e5-4ba4-ae99-1ea3c0b2157d"
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -1904,106 +1927,11 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "43WW5KfeVE75GoQvA6eur8"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 17.500000000000007,
"_right": 137.5,
"_top": -3.818000000000001,
"_bottom": 4,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 45,
"_originalHeight": 46,
"_id": "f6FahJiIVBvZFS200YJ3nQ"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_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": "2eBweFcDFDppfbs1dT5HjJ"
"_id": "56mZ2cnINCbY/KWISJxBKC"
},
{
"__type__": "cc.Node",
"_name": "BtnRefresh",
"_name": "Option_3_1",
"_objFlags": 0,
"_parent": {
"__id__": 38
......@@ -2012,17 +1940,11 @@
"_active": true,
"_components": [
{
"__id__": 44
},
{
"__id__": 45
},
{
"__id__": 46
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -2032,8 +1954,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47,
"height": 57
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2044,8 +1966,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
7.5,
-28,
-241,
0,
0,
0,
......@@ -2067,14 +1989,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "4bQBeTXNFOZpK5+609I2xs"
"_id": "fa22EpUfFJkrC4uhzdaoPk"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -2085,10 +2007,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "01feed43-923a-4791-ae1f-9e4066aa3f25"
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -2099,136 +2021,35 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7aMDYETipJSoPf7XOEds+0"
"_id": "c5Izj+2SBCsp6gw6sowi4P"
},
{
"__type__": "cc.Widget",
"_name": "",
"__type__": "cc.Node",
"_name": "Option_3_2",
"_objFlags": 0,
"node": {
"__id__": 43
"_parent": {
"__id__": 38
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 76.5,
"_right": 76.5,
"_top": -14.463999999999999,
"_bottom": 4,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 47,
"_originalHeight": 57,
"_id": "04foc3RVJI7bEpSgAoTr4i"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_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": "0c95jTF8xLTL7usHrADoyd"
},
{
"__type__": "cc.Node",
"_name": "BtnNext",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
},
{
"__id__": 49
},
{
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
}
],
"_prefab": null,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 44,
"height": 46
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2239,8 +2060,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
60,
2,
377,
-241,
0,
0,
0,
......@@ -2262,14 +2083,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "68XKmWmmRJzqgRGBax6pBj"
"_id": "a8i53xfUZI5JCA7QFXSO21"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 43
},
"_enabled": true,
"_materials": [
......@@ -2280,10 +2101,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "16e86334-3345-46fd-aa00-629822491002"
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -2294,183 +2115,22 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "91/IESUVRJ1pMkqv5nKi+4"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 138,
"_right": 17.999999999999993,
"_top": -3.818000000000001,
"_bottom": 4,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 44,
"_originalHeight": 46,
"_id": "6a+JJvtBZEI4w150S7DCVL"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_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": "f4rYYbX5lKzYro5D30deUg"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 1080,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 200,
"_originalHeight": 0,
"_id": "99fXT4x5dFzrGDSu9J4su1"
"_id": "a7mCwQ/g1F65MAKXQ54epG"
},
{
"__type__": "cc.Node",
"_name": "OptionPosListBase",
"_name": "Option_4_0",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 38
},
"_children": [
{
"__id__": 53
},
{
"__id__": 55
},
{
"__id__": 57
},
{
"__id__": 59
},
{
"__id__": 61
},
{
"__id__": 63
},
{
"__id__": 65
},
{
"__id__": 67
},
{
"__id__": 69
},
{
"__id__": 71
},
{
"__id__": 73
},
{
"__id__": 75
},
{
"__id__": 77
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 79
"__id__": 46
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 0,
"_color": {
......@@ -2482,8 +2142,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2494,8 +2154,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-450,
-241,
0,
0,
0,
......@@ -2517,24 +2177,56 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "47Gd6RmnFIM4BiIjDkNqUl"
"_id": "220rZm+dpM940DpDv2bYrl"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a0+9BNI5JJupDypecZ1i/I"
},
{
"__type__": "cc.Node",
"_name": "Option_3_0",
"_name": "Option_4_1",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 48
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -2556,8 +2248,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-436,
-230,
-150,
-241,
0,
0,
0,
......@@ -2579,14 +2271,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8eIpVJlxxNBbMc5V/4dmSx"
"_id": "ceXAnvBHBG/aKDR4Kif1Gi"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 47
},
"_enabled": true,
"_materials": [
......@@ -2611,24 +2303,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "56mZ2cnINCbY/KWISJxBKC"
"_id": "9a/9dRJSVMQKr9DuzSxFCR"
},
{
"__type__": "cc.Node",
"_name": "Option_3_1",
"_name": "Option_4_2",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -2650,7 +2342,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-28,
150,
-241,
0,
0,
......@@ -2673,14 +2365,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "fa22EpUfFJkrC4uhzdaoPk"
"_id": "b39fK8XsVOV7wEADFA23WD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -2705,24 +2397,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c5Izj+2SBCsp6gw6sowi4P"
"_id": "462FrrEPxC2oNsZ9/1VR3n"
},
{
"__type__": "cc.Node",
"_name": "Option_3_2",
"_name": "Option_4_3",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 52
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -2744,7 +2436,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
377,
450,
-241,
0,
0,
......@@ -2767,14 +2459,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a8i53xfUZI5JCA7QFXSO21"
"_id": "899Oufe19GqZFszfHEN/eu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 51
},
"_enabled": true,
"_materials": [
......@@ -2799,24 +2491,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a7mCwQ/g1F65MAKXQ54epG"
"_id": "14wG0XVWBFsbXutzUOkHb9"
},
{
"__type__": "cc.Node",
"_name": "Option_4_0",
"_name": "OptionTarget_4_3",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 54
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -2838,8 +2530,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-450,
-241,
75,
-40,
0,
0,
0,
......@@ -2861,14 +2553,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "220rZm+dpM940DpDv2bYrl"
"_id": "61DfBHgGBD+YtSGfiatQsF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 53
},
"_enabled": true,
"_materials": [
......@@ -2893,24 +2585,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a0+9BNI5JJupDypecZ1i/I"
"_id": "1bbeCfsfZLvrzqca43h4SJ"
},
{
"__type__": "cc.Node",
"_name": "Option_4_1",
"_name": "OptionTarget_4_2",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 56
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -2932,8 +2624,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-150,
-241,
25,
-40,
0,
0,
0,
......@@ -2955,14 +2647,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ceXAnvBHBG/aKDR4Kif1Gi"
"_id": "61ZB2xuTZLI6A8hBmdkmAG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 55
},
"_enabled": true,
"_materials": [
......@@ -2987,24 +2679,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9a/9dRJSVMQKr9DuzSxFCR"
"_id": "767LBhh6BEoJrZNPKyTYg6"
},
{
"__type__": "cc.Node",
"_name": "Option_4_2",
"_name": "OptionTarget_4_1",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 58
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -3025,9 +2717,9 @@
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
150,
-241,
"array": [
-25,
-40,
0,
0,
0,
......@@ -3049,14 +2741,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b39fK8XsVOV7wEADFA23WD"
"_id": "e3VXxVg3NLNoq8QO7QWo3q"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
"__id__": 57
},
"_enabled": true,
"_materials": [
......@@ -3081,24 +2773,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "462FrrEPxC2oNsZ9/1VR3n"
"_id": "40Cpo9u8tBioUqLxntsbp0"
},
{
"__type__": "cc.Node",
"_name": "Option_4_3",
"_name": "OptionTarget_4_0",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -3120,8 +2812,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
450,
-241,
-75,
-40,
0,
0,
0,
......@@ -3143,14 +2835,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "899Oufe19GqZFszfHEN/eu"
"_id": "5dBmfYUk9E2YfDAr0d1QhL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 59
},
"_enabled": true,
"_materials": [
......@@ -3175,24 +2867,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "14wG0XVWBFsbXutzUOkHb9"
"_id": "39nkcYli9LFo7yjhEoyUi/"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_4_3",
"_name": "OptionTarget_3_2",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 68
"__id__": 62
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -3214,7 +2906,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
75,
50,
-40,
0,
0,
......@@ -3237,14 +2929,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "61DfBHgGBD+YtSGfiatQsF"
"_id": "92YZkEXYZGgZ7ToE3DY838"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 61
},
"_enabled": true,
"_materials": [
......@@ -3269,24 +2961,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1bbeCfsfZLvrzqca43h4SJ"
"_id": "1bok+NMhlDiJzDae9HQpdy"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_4_2",
"_name": "OptionTarget_3_1",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
"__id__": 64
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -3308,7 +3000,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
25,
0,
-40,
0,
0,
......@@ -3331,14 +3023,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "61ZB2xuTZLI6A8hBmdkmAG"
"_id": "6453pM4ARNj6eILo02Oip6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 63
},
"_enabled": true,
"_materials": [
......@@ -3363,24 +3055,24 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "767LBhh6BEoJrZNPKyTYg6"
"_id": "1d3jouNu5GQoMTwwpteJsr"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_4_1",
"_name": "OptionTarget_3_0",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 72
"__id__": 66
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -3402,7 +3094,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-25,
-50,
-40,
0,
0,
......@@ -3425,14 +3117,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e3VXxVg3NLNoq8QO7QWo3q"
"_id": "08fHG/ZVpAqqaILfviWk97"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
"__id__": 65
},
"_enabled": true,
"_materials": [
......@@ -3457,20 +3149,30 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "40Cpo9u8tBioUqLxntsbp0"
"_id": "5ctIMxaJpCPqDnXZ5q9xOm"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_4_0",
"_name": "BtnNode",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 2
},
"_children": [],
"_children": [
{
"__id__": 68
},
{
"__id__": 72
},
{
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 74
"__id__": 80
}
],
"_prefab": null,
......@@ -3484,8 +3186,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 200,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3496,8 +3198,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-75,
-40,
540,
-335,
0,
0,
0,
......@@ -3519,52 +3221,26 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5dBmfYUk9E2YfDAr0d1QhL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "39nkcYli9LFo7yjhEoyUi/"
"_id": "d1GLPYuMpBjaY/DvfFKjPv"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_3_2",
"_name": "BtnBefore",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 69
},
{
"__id__": 70
},
{
"__id__": 71
}
],
"_prefab": null,
......@@ -3578,8 +3254,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 45,
"height": 46
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3590,8 +3266,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
50,
-40,
-60,
2,
0,
0,
0,
......@@ -3613,14 +3289,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "92YZkEXYZGgZ7ToE3DY838"
"_id": "f1UyKjb9NNELTKB+QVVWjH"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 68
},
"_enabled": true,
"_materials": [
......@@ -3631,10 +3307,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
"__uuid__": "922fee6b-64e5-4ba4-ae99-1ea3c0b2157d"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -3645,20 +3321,121 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1bok+NMhlDiJzDae9HQpdy"
"_id": "43WW5KfeVE75GoQvA6eur8"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 17.500000000000007,
"_right": 137.5,
"_top": -3.818000000000001,
"_bottom": 4,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 45,
"_originalHeight": 46,
"_id": "f6FahJiIVBvZFS200YJ3nQ"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_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": "2eBweFcDFDppfbs1dT5HjJ"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_3_1",
"_name": "BtnRefresh",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 73
},
{
"__id__": 74
},
{
"__id__": 75
}
],
"_prefab": null,
......@@ -3672,8 +3449,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 47,
"height": 57
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3685,7 +3462,7 @@
"ctor": "Float64Array",
"array": [
0,
-40,
7.5,
0,
0,
0,
......@@ -3707,14 +3484,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6453pM4ARNj6eILo02Oip6"
"_id": "4bQBeTXNFOZpK5+609I2xs"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 72
},
"_enabled": true,
"_materials": [
......@@ -3725,10 +3502,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
"__uuid__": "01feed43-923a-4791-ae1f-9e4066aa3f25"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -3739,20 +3516,121 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1d3jouNu5GQoMTwwpteJsr"
"_id": "7aMDYETipJSoPf7XOEds+0"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 76.5,
"_right": 76.5,
"_top": -14.463999999999999,
"_bottom": 4,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 47,
"_originalHeight": 57,
"_id": "04foc3RVJI7bEpSgAoTr4i"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_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": "0c95jTF8xLTL7usHrADoyd"
},
{
"__type__": "cc.Node",
"_name": "OptionTarget_3_0",
"_name": "BtnNext",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 77
},
{
"__id__": 78
},
{
"__id__": 79
}
],
"_prefab": null,
......@@ -3766,8 +3644,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 44,
"height": 46
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3778,8 +3656,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-50,
-40,
60,
2,
0,
0,
0,
......@@ -3801,14 +3679,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "08fHG/ZVpAqqaILfviWk97"
"_id": "68XKmWmmRJzqgRGBax6pBj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 76
},
"_enabled": true,
"_materials": [
......@@ -3819,10 +3697,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
"__uuid__": "16e86334-3345-46fd-aa00-629822491002"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -3833,7 +3711,129 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5ctIMxaJpCPqDnXZ5q9xOm"
"_id": "91/IESUVRJ1pMkqv5nKi+4"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 138,
"_right": 17.999999999999993,
"_top": -3.818000000000001,
"_bottom": 4,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 44,
"_originalHeight": 46,
"_id": "6a+JJvtBZEI4w150S7DCVL"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
},
"_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": "f4rYYbX5lKzYro5D30deUg"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 1080,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 200,
"_originalHeight": 0,
"_id": "99fXT4x5dFzrGDSu9J4su1"
},
{
"__type__": "cc.Node",
......
......@@ -153,23 +153,24 @@ cc.Class({
async showQuestion() {
this.showOptions();
this.playIncomeAudio();
await this.questionBoardDown();
this.questionBoardDown();
await this.playIncomeAudio();
await asyncDelay(1);
this.playQuestionAudio();
},
playIncomeAudio() {
asyncPlayEffectByUrl(this.data.tittleAudio);
async playIncomeAudio() {
await asyncPlayEffectByUrl(this.data.tittleAudio);
},
playQuestionAudio() {
async playQuestionAudio() {
const audioUrl = this.data.questionList[this.status.currentQuestionIdx].questionAudio;
asyncPlayEffectByUrl(audioUrl);
await asyncPlayEffectByUrl(audioUrl);
},
showOptions() {
for (let i = 0; i < 4; i++) {
const optionNode = cc.find(`Canvas/optionNode_${i}`);
const optionNode = cc.find(`Canvas/OptionPosListBase/optionNode_${i}`);
if (optionNode) {
optionNode.removeFromParent();
}
......@@ -178,7 +179,7 @@ cc.Class({
optionList.forEach(async (data, idx) => {
const optionNode = cc.instantiate(cc.find(`OptionNodeBase_${optionList.length}`));
optionNode.name = `optionNode_${idx}`;
optionNode.parent = cc.find('Canvas');
optionNode.parent = cc.find('Canvas/OptionPosListBase');
optionNode.addComponent(cc.Button);
optionNode.canClick = true;
optionNode.on('click', () => {
......@@ -267,7 +268,7 @@ cc.Class({
.start();
optionList.forEach((data, idx) => {
const option = cc.find(`Canvas/optionNode_${idx}`);
const option = cc.find(`Canvas/OptionPosListBase/optionNode_${idx}`);
option.canClick = false;
if (option != optionNode) {
......
......@@ -111,9 +111,12 @@ export async function asyncPlayDragonBoneAnimation(node, animationName, time = 1
export async function asyncPlayEffectByUrl(url, loop = false) {
return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, clip) => {
console.log(clip);
cc.audioEngine.playEffect(clip, loop);
resolve();
setTimeout(() => {
resolve();
}, clip.duration * 1000);
});
});
}
......
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