Commit e73c5be5 authored by 李维's avatar 李维

优化背景显示

parent 61c13b34
......@@ -93,31 +93,31 @@
"__id__": 81
},
{
"__id__": 139
"__id__": 143
},
{
"__id__": 177
"__id__": 181
},
{
"__id__": 188
"__id__": 192
},
{
"__id__": 191
"__id__": 195
},
{
"__id__": 193
"__id__": 197
}
],
"_active": true,
"_components": [
{
"__id__": 195
"__id__": 199
},
{
"__id__": 196
"__id__": 200
},
{
"__id__": 197
"__id__": 201
}
],
"_prefab": null,
......@@ -3626,19 +3626,19 @@
"__id__": 82
},
{
"__id__": 96
"__id__": 97
},
{
"__id__": 131
"__id__": 135
}
],
"_active": true,
"_components": [
{
"__id__": 137
"__id__": 141
},
{
"__id__": 138
"__id__": 142
}
],
"_prefab": null,
......@@ -3707,7 +3707,7 @@
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 96
}
],
"_prefab": null,
......@@ -3894,16 +3894,16 @@
"__id__": 87
},
{
"__id__": 91
"__id__": 92
}
],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 94
},
{
"__id__": 94
"__id__": 95
}
],
"_prefab": null,
......@@ -3961,12 +3961,75 @@
"_parent": {
"__id__": 86
},
"_children": [],
"_children": [
{
"__id__": 88
}
],
"_active": true,
"_components": [
{
"__id__": 88
},
"__id__": 90
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-110,
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": "5f88GdNytHMYO87S24QnR4"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 87
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 89
}
......@@ -3994,7 +4057,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-134,
0,
0,
0,
0,
......@@ -4017,14 +4080,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5f88GdNytHMYO87S24QnR4"
"_id": "20pdioRBBC06Y+z0NJ6yP+"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -4032,7 +4095,7 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e5fe1c4e-5b32-4284-887c-dec10747ae62"
......@@ -4049,7 +4112,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "068jNDcSNE05nZsovfoj6Q"
"_id": "01EepCKlRNCL9iJfjMpeIw"
},
{
"__type__": "cc.Button",
......@@ -4065,7 +4128,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 90
"__id__": 91
}
],
"_N$interactable": true,
......@@ -4144,7 +4207,7 @@
"_active": true,
"_components": [
{
"__id__": 92
"__id__": 93
}
],
"_prefab": null,
......@@ -4170,7 +4233,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-68,
-20,
0,
0,
0,
......@@ -4200,7 +4263,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 92
},
"_enabled": true,
"_materials": [
......@@ -4323,22 +4386,22 @@
},
"_children": [
{
"__id__": 97
"__id__": 98
},
{
"__id__": 100
"__id__": 101
},
{
"__id__": 111
"__id__": 114
},
{
"__id__": 123
"__id__": 126
}
],
"_active": true,
"_components": [
{
"__id__": 130
"__id__": 134
}
],
"_prefab": null,
......@@ -4394,16 +4457,16 @@
"_name": "bg_color",
"_objFlags": 0,
"_parent": {
"__id__": 96
"__id__": 97
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 99
},
{
"__id__": 99
"__id__": 100
}
],
"_prefab": null,
......@@ -4459,7 +4522,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 98
},
"_enabled": true,
"_materials": [
......@@ -4491,7 +4554,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 98
},
"_enabled": true,
"alignMode": 1,
......@@ -4518,23 +4581,23 @@
"_name": "left",
"_objFlags": 0,
"_parent": {
"__id__": 96
"__id__": 97
},
"_children": [
{
"__id__": 101
"__id__": 102
},
{
"__id__": 105
"__id__": 107
}
],
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 112
},
{
"__id__": 110
"__id__": 113
}
],
"_prefab": null,
......@@ -4548,7 +4611,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 95,
"width": 160,
"height": 150
},
"_anchorPoint": {
......@@ -4590,16 +4653,79 @@
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 100
"__id__": 101
},
"_children": [],
"_children": [
{
"__id__": 103
}
],
"_active": true,
"_components": [
{
"__id__": 102
},
"__id__": 105
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
40,
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": "8epJupjTtLYKGnR+bR6BSP"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 102
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 104
}
],
"_prefab": null,
......@@ -4618,7 +4744,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0.5,
"y": 0.5
},
"_trs": {
......@@ -4648,14 +4774,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8epJupjTtLYKGnR+bR6BSP"
"_id": "407ZdEy+NAUoOF89b/7DAv"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
"__id__": 103
},
"_enabled": true,
"_materials": [
......@@ -4663,7 +4789,7 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9e7fde01-7bf3-4d59-9d97-dd7c97cade8a"
......@@ -4680,14 +4806,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a2VCLGGEVKU5MDjwDZeUwp"
"_id": "abxW41glRL/KCIpdxO6JNX"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
"__id__": 102
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4696,7 +4822,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 104
"__id__": 106
}
],
"_N$interactable": true,
......@@ -4769,16 +4895,17 @@
"_name": "btn_pause",
"_objFlags": 0,
"_parent": {
"__id__": 100
"__id__": 101
},
"_children": [],
"_children": [
{
"__id__": 108
}
],
"_active": true,
"_components": [
{
"__id__": 106
},
{
"__id__": 107
"__id__": 110
}
],
"_prefab": null,
......@@ -4792,8 +4919,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
"height": 57
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4804,7 +4931,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
76,
120,
0,
0,
0,
......@@ -4830,43 +4957,105 @@
"_id": "c1YSjJPQVDEIrk+nZt+qYu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"node": {
"__id__": 105
"_parent": {
"__id__": 107
},
"_enabled": true,
"_materials": [
"_children": [],
"_active": true,
"_components": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__id__": 109
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1a63f689-d1cf-49cc-965d-9672f0f2c067"
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
"height": 57
},
"_fillStart": 0,
"_fillRange": 0,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
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": "6fLQvELypG1aWV2cgi0Dtd"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1a63f689-d1cf-49cc-965d-9672f0f2c067"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "03ttKP0N9BfY9FWIHl1ptw"
"_id": "21VitqS65PzaCEFuGMq2ol"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 107
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4875,7 +5064,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 108
"__id__": 111
}
],
"_N$interactable": true,
......@@ -4948,12 +5137,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
"__id__": 101
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 95,
"width": 160,
"height": 150
},
"_resize": 1,
......@@ -4980,7 +5169,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
"__id__": 101
},
"_enabled": true,
"alignMode": 1,
......@@ -5007,11 +5196,11 @@
"_name": "center",
"_objFlags": 0,
"_parent": {
"__id__": 96
"__id__": 97
},
"_children": [
{
"__id__": 112
"__id__": 115
}
],
"_active": true,
......@@ -5069,23 +5258,23 @@
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 111
"__id__": 114
},
"_children": [
{
"__id__": 113
"__id__": 116
},
{
"__id__": 115
"__id__": 118
},
{
"__id__": 117
"__id__": 120
},
{
"__id__": 119
"__id__": 122
},
{
"__id__": 121
"__id__": 124
}
],
"_active": true,
......@@ -5143,13 +5332,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 115
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 114
"__id__": 117
}
],
"_prefab": null,
......@@ -5205,7 +5394,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 113
"__id__": 116
},
"_enabled": true,
"_materials": [
......@@ -5237,13 +5426,13 @@
"_name": "current_bg",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 115
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 119
}
],
"_prefab": null,
......@@ -5299,7 +5488,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 118
},
"_enabled": true,
"_materials": [
......@@ -5331,13 +5520,13 @@
"_name": "dot",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 115
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
"__id__": 121
}
],
"_prefab": null,
......@@ -5393,7 +5582,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 120
},
"_enabled": true,
"_materials": [
......@@ -5425,13 +5614,13 @@
"_name": "time_s",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 115
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 120
"__id__": 123
}
],
"_prefab": null,
......@@ -5487,7 +5676,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
"__id__": 122
},
"_enabled": true,
"_materials": [
......@@ -5520,13 +5709,13 @@
"_name": "time_e",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 115
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 122
"__id__": 125
}
],
"_prefab": null,
......@@ -5582,7 +5771,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 121
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -5615,20 +5804,20 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 96
"__id__": 97
},
"_children": [
{
"__id__": 124
"__id__": 127
}
],
"_active": true,
"_components": [
{
"__id__": 128
"__id__": 132
},
{
"__id__": 129
"__id__": 133
}
],
"_prefab": null,
......@@ -5642,7 +5831,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 56,
"width": 80,
"height": 150
},
"_anchorPoint": {
......@@ -5684,16 +5873,79 @@
"_name": "btn_exit_fullscreen",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 126
},
"_children": [],
"_children": [
{
"__id__": 128
}
],
"_active": true,
"_components": [
{
"__id__": 125
},
"__id__": 130
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
40,
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": "27hF0adqNBH71Crh0MdxJi"
},
{
"__type__": "cc.Node",
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 129
}
],
"_prefab": null,
......@@ -5712,7 +5964,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0.5,
"y": 0.5
},
"_trs": {
......@@ -5742,14 +5994,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "27hF0adqNBH71Crh0MdxJi"
"_id": "d59hqYu9hInKGN7B/9tD1U"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 128
},
"_enabled": true,
"_materials": [
......@@ -5757,7 +6009,7 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ece9ff2a-0eed-41cc-acc9-a6253b0dec64"
......@@ -5774,14 +6026,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "07modpeilKXZ0Vu19br3/c"
"_id": "8bU5mGcUZMmb07a/XfCBBQ"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 127
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5790,7 +6042,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 127
"__id__": 131
}
],
"_N$interactable": true,
......@@ -5863,14 +6115,14 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 126
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 100,
"_right": 76,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
......@@ -5890,12 +6142,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 126
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 56,
"width": 80,
"height": 150
},
"_resize": 1,
......@@ -5922,7 +6174,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 97
},
"_enabled": true,
"alignMode": 1,
......@@ -5953,13 +6205,13 @@
},
"_children": [
{
"__id__": 132
"__id__": 136
},
{
"__id__": 135
"__id__": 139
}
],
"_active": true,
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
......@@ -6014,16 +6266,16 @@
"_name": "color_bg",
"_objFlags": 0,
"_parent": {
"__id__": 131
"__id__": 135
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 133
"__id__": 137
},
{
"__id__": 134
"__id__": 138
}
],
"_prefab": null,
......@@ -6079,7 +6331,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 136
},
"_enabled": true,
"_materials": [
......@@ -6111,7 +6363,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 136
},
"_enabled": true,
"alignMode": 1,
......@@ -6138,13 +6390,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 131
"__id__": 135
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 136
"__id__": 140
}
],
"_prefab": null,
......@@ -6200,7 +6452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 135
"__id__": 139
},
"_enabled": true,
"_materials": [
......@@ -6264,35 +6516,35 @@
},
"_enabled": true,
"btn_play": {
"__id__": 101
"__id__": 102
},
"btn_pause": {
"__id__": 105
"__id__": 107
},
"btn_fullscreen": {
"__id__": 124
"__id__": 127
},
"btn_exit_fullscreen": null,
"label_title": {
"__id__": 91
"__id__": 92
},
"progressBg": {
"__id__": 113
"__id__": 116
},
"progressCurrent": {
"__id__": 115
"__id__": 118
},
"progressDot": {
"__id__": 117
"__id__": 120
},
"startTime": {
"__id__": 119
"__id__": 122
},
"endTime": {
"__id__": 121
"__id__": 124
},
"centerInfo": {
"__id__": 131
"__id__": 135
},
"_id": "31vAPhl1xCbb7SgXfkJ5yi"
},
......@@ -6305,16 +6557,16 @@
},
"_children": [
{
"__id__": 140
"__id__": 144
}
],
"_active": true,
"_components": [
{
"__id__": 175
"__id__": 179
},
{
"__id__": 176
"__id__": 180
}
],
"_prefab": null,
......@@ -6370,17 +6622,17 @@
"_name": "view",
"_objFlags": 0,
"_parent": {
"__id__": 139
"__id__": 143
},
"_children": [
{
"__id__": 141
"__id__": 145
}
],
"_active": true,
"_components": [
{
"__id__": 174
"__id__": 178
}
],
"_prefab": null,
......@@ -6436,17 +6688,17 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 140
"__id__": 144
},
"_children": [
{
"__id__": 142
"__id__": 146
}
],
"_active": true,
"_components": [
{
"__id__": 173
"__id__": 177
}
],
"_prefab": null,
......@@ -6502,20 +6754,20 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 141
"__id__": 145
},
"_children": [
{
"__id__": 143
"__id__": 147
},
{
"__id__": 157
"__id__": 161
}
],
"_active": false,
"_components": [
{
"__id__": 171
"__id__": 175
}
],
"_prefab": null,
......@@ -6571,29 +6823,29 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 142
"__id__": 146
},
"_children": [
{
"__id__": 144
"__id__": 148
},
{
"__id__": 146
"__id__": 150
},
{
"__id__": 150
"__id__": 154
},
{
"__id__": 152
"__id__": 156
},
{
"__id__": 154
"__id__": 158
}
],
"_active": true,
"_components": [
{
"__id__": 156
"__id__": 160
}
],
"_prefab": null,
......@@ -6649,13 +6901,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 145
"__id__": 149
}
],
"_prefab": null,
......@@ -6711,7 +6963,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 148
},
"_enabled": true,
"_materials": [
......@@ -6743,17 +6995,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [
{
"__id__": 147
"__id__": 151
}
],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 153
}
],
"_prefab": null,
......@@ -6809,13 +7061,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 146
"__id__": 150
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 148
"__id__": 152
}
],
"_prefab": null,
......@@ -6871,7 +7123,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 147
"__id__": 151
},
"_enabled": true,
"_materials": [
......@@ -6903,7 +7155,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 146
"__id__": 150
},
"_enabled": true,
"_materials": [
......@@ -6925,13 +7177,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 151
"__id__": 155
}
],
"_prefab": null,
......@@ -6987,7 +7239,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 150
"__id__": 154
},
"_enabled": true,
"_materials": [
......@@ -7022,13 +7274,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 153
"__id__": 157
}
],
"_prefab": null,
......@@ -7084,7 +7336,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 152
"__id__": 156
},
"_enabled": true,
"_materials": [
......@@ -7117,13 +7369,13 @@
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 155
"__id__": 159
}
],
"_prefab": null,
......@@ -7179,7 +7431,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 158
},
"_enabled": true,
"_materials": [],
......@@ -7207,7 +7459,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 143
"__id__": 147
},
"_enabled": true,
"_materials": [
......@@ -7239,29 +7491,29 @@
"_name": "item_active",
"_objFlags": 0,
"_parent": {
"__id__": 142
"__id__": 146
},
"_children": [
{
"__id__": 158
"__id__": 162
},
{
"__id__": 160
"__id__": 164
},
{
"__id__": 162
"__id__": 166
},
{
"__id__": 164
"__id__": 168
},
{
"__id__": 168
"__id__": 172
}
],
"_active": false,
"_components": [
{
"__id__": 170
"__id__": 174
}
],
"_prefab": null,
......@@ -7317,13 +7569,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 157
"__id__": 161
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 159
"__id__": 163
}
],
"_prefab": null,
......@@ -7379,7 +7631,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 158
"__id__": 162
},
"_enabled": true,
"_materials": [
......@@ -7411,13 +7663,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__": 157
"__id__": 161
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 161
"__id__": 165
}
],
"_prefab": null,
......@@ -7473,7 +7725,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 160
"__id__": 164
},
"_enabled": true,
"_materials": [
......@@ -7508,13 +7760,13 @@
"_name": "img_audio_ske",
"_objFlags": 0,
"_parent": {
"__id__": 157
"__id__": 161
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 163
"__id__": 167
}
],
"_prefab": null,
......@@ -7570,7 +7822,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 162
"__id__": 166
},
"_enabled": true,
"_materials": [
......@@ -7610,17 +7862,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 157
"__id__": 161
},
"_children": [
{
"__id__": 165
"__id__": 169
}
],
"_active": true,
"_components": [
{
"__id__": 167
"__id__": 171
}
],
"_prefab": null,
......@@ -7676,13 +7928,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 164
"__id__": 168
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 166
"__id__": 170
}
],
"_prefab": null,
......@@ -7738,7 +7990,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 165
"__id__": 169
},
"_enabled": true,
"_materials": [
......@@ -7770,7 +8022,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 164
"__id__": 168
},
"_enabled": true,
"_materials": [
......@@ -7792,13 +8044,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 157
"__id__": 161
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 169
"__id__": 173
}
],
"_prefab": null,
......@@ -7854,7 +8106,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 168
"__id__": 172
},
"_enabled": true,
"_materials": [
......@@ -7887,7 +8139,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 157
"__id__": 161
},
"_enabled": true,
"_materials": [
......@@ -7919,7 +8171,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 142
"__id__": 146
},
"_enabled": true,
"_normalMaterial": null,
......@@ -7928,7 +8180,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 172
"__id__": 176
}
],
"_N$interactable": true,
......@@ -7984,7 +8236,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 142
"__id__": 146
},
"_id": "7aTx3B2HJO6oViYBGBm/73"
},
......@@ -8003,7 +8255,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
"__id__": 145
},
"_enabled": true,
"_layoutSize": {
......@@ -8035,7 +8287,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 140
"__id__": 144
},
"_enabled": true,
"_materials": [
......@@ -8055,7 +8307,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 143
},
"_enabled": true,
"_materials": [
......@@ -8085,7 +8337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 143
},
"_enabled": true,
"horizontal": true,
......@@ -8097,10 +8349,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 141
"__id__": 145
},
"content": {
"__id__": 141
"__id__": 145
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
......@@ -8115,10 +8367,10 @@
},
"_children": [
{
"__id__": 178
"__id__": 182
},
{
"__id__": 183
"__id__": 187
}
],
"_active": true,
......@@ -8176,19 +8428,19 @@
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 177
"__id__": 181
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 179
"__id__": 183
},
{
"__id__": 180
"__id__": 184
},
{
"__id__": 182
"__id__": 186
}
],
"_prefab": null,
......@@ -8244,7 +8496,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 178
"__id__": 182
},
"_enabled": true,
"_materials": [
......@@ -8276,7 +8528,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 178
"__id__": 182
},
"_enabled": true,
"_normalMaterial": null,
......@@ -8285,7 +8537,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 181
"__id__": 185
}
],
"_N$interactable": true,
......@@ -8341,7 +8593,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 178
"__id__": 182
},
"_id": "63sqlR0bVEJrqaAhyT+FzF"
},
......@@ -8360,7 +8612,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 178
"__id__": 182
},
"_enabled": true,
"alignMode": 1,
......@@ -8389,19 +8641,19 @@
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 177
"__id__": 181
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 184
"__id__": 188
},
{
"__id__": 185
"__id__": 189
},
{
"__id__": 187
"__id__": 191
}
],
"_prefab": null,
......@@ -8457,7 +8709,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
"__id__": 187
},
"_enabled": true,
"_materials": [
......@@ -8489,7 +8741,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
"__id__": 187
},
"_enabled": true,
"_normalMaterial": null,
......@@ -8498,7 +8750,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 186
"__id__": 190
}
],
"_N$interactable": true,
......@@ -8554,7 +8806,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 183
"__id__": 187
},
"_id": "3aZJp/FzlONJO+/okrPRip"
},
......@@ -8573,7 +8825,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
"__id__": 187
},
"_enabled": true,
"alignMode": 1,
......@@ -8608,10 +8860,10 @@
"_active": true,
"_components": [
{
"__id__": 189
"__id__": 193
},
{
"__id__": 190
"__id__": 194
}
],
"_prefab": null,
......@@ -8667,7 +8919,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 188
"__id__": 192
},
"_enabled": true,
"_materials": [
......@@ -8700,7 +8952,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 188
"__id__": 192
},
"_enabled": true,
"alignMode": 1,
......@@ -8733,7 +8985,7 @@
"_active": false,
"_components": [
{
"__id__": 192
"__id__": 196
}
],
"_prefab": null,
......@@ -8789,7 +9041,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 191
"__id__": 195
},
"_enabled": true,
"_materials": [
......@@ -8827,7 +9079,7 @@
"_active": false,
"_components": [
{
"__id__": 194
"__id__": 198
}
],
"_prefab": null,
......@@ -8883,7 +9135,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 193
"__id__": 197
},
"_enabled": true,
"_materials": [
......@@ -9000,7 +9252,7 @@
"__id__": 39
},
"loadingSprite": {
"__id__": 193
"__id__": 197
},
"noPlayCover": {
"__id__": 33
......
......@@ -570,6 +570,8 @@ export default class VideoPlayerComponent extends cc.Component {
if (!this._isReadyToPlay) {
console.log("视频还未准备好")
return;
} else {
console.log("播放")
}
cc.find(`Canvas/text_tips`).active = false;
......
......@@ -93,12 +93,14 @@ export default class NewClass extends cc.Component {
this.node.emit("play")
this.btn_play.active = false;
this.btn_pause.active = true;
this.scheduleHideProgressBar();
}
onPauseClick() {
this.node.emit("pause")
this.btn_pause.active = false;
this.btn_play.active = true;
this.scheduleHideProgressBar();
}
onFuscreenClick() {
......@@ -131,10 +133,7 @@ export default class NewClass extends cc.Component {
show(){
this.node.opacity = 255;
this.node.x = 0;
this.cleanMyTimeout()
this.hideSetTimeoutId = setTimeout(() => {
this.hide()
}, 5000);
this.scheduleHideProgressBar();
}
hide(){
......@@ -156,6 +155,13 @@ export default class NewClass extends cc.Component {
}, 1000)
}
scheduleHideProgressBar() {
this.cleanMyTimeout()
this.hideSetTimeoutId = setTimeout(() => {
this.hide()
}, 5000);
}
cleanMyTimeout() {
if(this.hideSetTimeoutId) {
clearTimeout(this.hideSetTimeoutId);
......@@ -235,19 +241,27 @@ export default class NewClass extends cc.Component {
this.setProgress(percent, null, null);
this.show()
});
this.node.off(cc.Node.EventType.TOUCH_END);
this.node.on(cc.Node.EventType.TOUCH_END, (e) => {
this.draging = false;
this.node.emit("play")
this.centerInfo.active = false;
if(this.draging) {
this.draging = false;
this.node.emit("play")
this.btn_play.active = false;
this.btn_pause.active = true;
this.centerInfo.active = false;
}
});
this.node.off(cc.Node.EventType.MOUSE_UP);
this.node.on(cc.Node.EventType.MOUSE_UP, (e) => {
this.draging = false;
this.node.emit("play");
this.centerInfo.active = false;
if(this.draging) {
this.draging = false;
this.node.emit("play")
this.btn_play.active = false;
this.btn_pause.active = true;
this.centerInfo.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