Commit dd07eea8 authored by Tt's avatar Tt

视频播放完成

parent 4e0035fe
...@@ -81,40 +81,31 @@ ...@@ -81,40 +81,31 @@
"__id__": 9 "__id__": 9
}, },
{ {
"__id__": 25 "__id__": 23
},
{
"__id__": 27
},
{
"__id__": 31
},
{
"__id__": 33
}, },
{ {
"__id__": 56 "__id__": 59
}, },
{ {
"__id__": 65 "__id__": 68
}, },
{ {
"__id__": 67 "__id__": 70
}, },
{ {
"__id__": 87 "__id__": 90
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 107 "__id__": 110
}, },
{ {
"__id__": 108 "__id__": 111
}, },
{ {
"__id__": 109 "__id__": 112
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -458,18 +449,15 @@ ...@@ -458,18 +449,15 @@
}, },
{ {
"__id__": 18 "__id__": 18
},
{
"__id__": 21
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 21
}, },
{ {
"__id__": 24 "__id__": 22
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -986,100 +974,6 @@ ...@@ -986,100 +974,6 @@
"_originalHeight": 0, "_originalHeight": 0,
"_id": "8ferYZUeVPAbewmu0SBfEy" "_id": "8ferYZUeVPAbewmu0SBfEy"
}, },
{
"__type__": "cc.Node",
"_name": "img_question",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1065,
"height": 129
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-235.813,
-393.014,
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": "60MsKAQFJJYKJajxMKLkx3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4e53666b-ee48-43de-9e7e-c9644ddf82a3"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d3Ja9pgO1JEaGFNiecBqEg"
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
...@@ -1141,16 +1035,94 @@ ...@@ -1141,16 +1035,94 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "question_img", "_name": "layout_game",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [
{
"__id__": 24
},
{
"__id__": 26
},
{
"__id__": 30
},
{
"__id__": 32
},
{
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 58
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 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": "76D3MV611FqIIWpwBJbz33"
},
{
"__type__": "cc.Node",
"_name": "question_img",
"_objFlags": 0,
"_parent": {
"__id__": 23
},
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1206,7 +1178,7 @@ ...@@ -1206,7 +1178,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 24
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1238,17 +1210,17 @@ ...@@ -1238,17 +1210,17 @@
"_name": "img_kuang", "_name": "img_kuang",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 23
}, },
"_children": [ "_children": [
{ {
"__id__": 28 "__id__": 27
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1304,13 +1276,13 @@ ...@@ -1304,13 +1276,13 @@
"_name": "img_deng", "_name": "img_deng",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 27 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 28
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1366,7 +1338,7 @@ ...@@ -1366,7 +1338,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 28 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1398,7 +1370,7 @@ ...@@ -1398,7 +1370,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 27 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1430,13 +1402,13 @@ ...@@ -1430,13 +1402,13 @@
"_name": "label_title", "_name": "label_title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 23
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1492,7 +1464,7 @@ ...@@ -1492,7 +1464,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1520,32 +1492,130 @@ ...@@ -1520,32 +1492,130 @@
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "84Fjg8lBlGvax8Gy+7UAnc" "_id": "84Fjg8lBlGvax8Gy+7UAnc"
}, },
{
"__type__": "cc.Node",
"_name": "img_question",
"_objFlags": 0,
"_parent": {
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1065,
"height": 129
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-240.62099999999998,
-393.014,
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": "60MsKAQFJJYKJajxMKLkx3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4e53666b-ee48-43de-9e7e-c9644ddf82a3"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d3Ja9pgO1JEaGFNiecBqEg"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "layout_record", "_name": "layout_record",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 23
}, },
"_children": [ "_children": [
{ {
"__id__": 34 "__id__": 35
}, },
{ {
"__id__": 39 "__id__": 40
}, },
{ {
"__id__": 46 "__id__": 47
}, },
{ {
"__id__": 48 "__id__": 49
}, },
{ {
"__id__": 50 "__id__": 51
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 57
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1599,14 +1669,14 @@ ...@@ -1599,14 +1669,14 @@
"_name": "btn_restart", "_name": "btn_restart",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 34
}, },
"_children": [ "_children": [
{ {
"__id__": 35 "__id__": 36
}, },
{ {
"__id__": 37 "__id__": 38
} }
], ],
"_active": true, "_active": true,
...@@ -1664,13 +1734,13 @@ ...@@ -1664,13 +1734,13 @@
"_name": "btn_restart", "_name": "btn_restart",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 34 "__id__": 35
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 37
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1726,7 +1796,7 @@ ...@@ -1726,7 +1796,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 35 "__id__": 36
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1758,13 +1828,13 @@ ...@@ -1758,13 +1828,13 @@
"_name": "New Label", "_name": "New Label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 34 "__id__": 35
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 38 "__id__": 39
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1820,7 +1890,7 @@ ...@@ -1820,7 +1890,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 37 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1853,20 +1923,20 @@ ...@@ -1853,20 +1923,20 @@
"_name": "btn_vioce", "_name": "btn_vioce",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 34
}, },
"_children": [ "_children": [
{ {
"__id__": 40 "__id__": 41
}, },
{ {
"__id__": 42 "__id__": 43
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 46
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1922,13 +1992,13 @@ ...@@ -1922,13 +1992,13 @@
"_name": "img_stop", "_name": "img_stop",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 40
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1984,7 +2054,7 @@ ...@@ -1984,7 +2054,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 41
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2016,16 +2086,16 @@ ...@@ -2016,16 +2086,16 @@
"_name": "img_ing", "_name": "img_ing",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 40
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 44
}, },
{ {
"__id__": 44 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2081,7 +2151,7 @@ ...@@ -2081,7 +2151,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2113,7 +2183,7 @@ ...@@ -2113,7 +2183,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -2174,7 +2244,7 @@ ...@@ -2174,7 +2244,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 42 "__id__": 43
}, },
"_id": "ecrPqC/gZDobH2MQs86M5z" "_id": "ecrPqC/gZDobH2MQs86M5z"
}, },
...@@ -2183,7 +2253,7 @@ ...@@ -2183,7 +2253,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 39 "__id__": 40
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2215,13 +2285,13 @@ ...@@ -2215,13 +2285,13 @@
"_name": "label_tip_wait", "_name": "label_tip_wait",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 34
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2277,7 +2347,7 @@ ...@@ -2277,7 +2347,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 46 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2310,13 +2380,13 @@ ...@@ -2310,13 +2380,13 @@
"_name": "label_tip_ing", "_name": "label_tip_ing",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 34
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 50
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2372,7 +2442,7 @@ ...@@ -2372,7 +2442,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 49
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2405,20 +2475,20 @@ ...@@ -2405,20 +2475,20 @@
"_name": "rich_content", "_name": "rich_content",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 34
}, },
"_children": [ "_children": [
{ {
"__id__": 51 "__id__": 52
}, },
{ {
"__id__": 53 "__id__": 54
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 55 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2474,13 +2544,13 @@ ...@@ -2474,13 +2544,13 @@
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 50 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 52 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2537,7 +2607,7 @@ ...@@ -2537,7 +2607,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2570,13 +2640,13 @@ ...@@ -2570,13 +2640,13 @@
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 50 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 54 "__id__": 55
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2633,7 +2703,7 @@ ...@@ -2633,7 +2703,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 54
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2662,25 +2732,79 @@ ...@@ -2662,25 +2732,79 @@
"_id": "36R9PPCXZOZLtRbcsCbpAx" "_id": "36R9PPCXZOZLtRbcsCbpAx"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_fontFamily": "Arial",
"_isSystemFontUsed": true,
"_N$string": "<color=#1D8B38>This is the build</c><color=#313131> tree</color>",
"_N$horizontalAlign": 0,
"_N$fontSize": 68,
"_N$font": null,
"_N$cacheMode": 0,
"_N$maxWidth": 900,
"_N$lineHeight": 60,
"_N$imageAtlas": null,
"_N$handleTouchEvent": true,
"_id": "81gZVF6wpG8ZYp8wKdAMKS"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": -762.645,
"_right": 762.645,
"_top": 398.618,
"_bottom": -398.618,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "6cJ2nPZ4tBx4JCBO5KzoxR"
},
{
"__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_fontFamily": "Arial", "alignMode": 1,
"_isSystemFontUsed": true, "_target": null,
"_N$string": "<color=#1D8B38>This is the build</c><color=#313131> tree</color>", "_alignFlags": 8,
"_N$horizontalAlign": 0, "_left": 960,
"_N$fontSize": 68, "_right": 0,
"_N$font": null, "_top": 0,
"_N$cacheMode": 0, "_bottom": 0,
"_N$maxWidth": 900, "_verticalCenter": 0,
"_N$lineHeight": 60, "_horizontalCenter": 0,
"_N$imageAtlas": null, "_isAbsLeft": true,
"_N$handleTouchEvent": true, "_isAbsRight": true,
"_id": "81gZVF6wpG8ZYp8wKdAMKS" "_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "6czEKQ3xxNN6X4QGVJHIKQ"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -2691,19 +2815,19 @@ ...@@ -2691,19 +2815,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 57 "__id__": 60
}, },
{ {
"__id__": 59 "__id__": 62
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 63 "__id__": 66
}, },
{ {
"__id__": 64 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2759,13 +2883,13 @@ ...@@ -2759,13 +2883,13 @@
"_name": "ani", "_name": "ani",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 59
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 61
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2821,7 +2945,7 @@ ...@@ -2821,7 +2945,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 57 "__id__": 60
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2861,17 +2985,17 @@ ...@@ -2861,17 +2985,17 @@
"_name": "btn_go", "_name": "btn_go",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 59
}, },
"_children": [ "_children": [
{ {
"__id__": 60 "__id__": 63
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 65
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2927,13 +3051,13 @@ ...@@ -2927,13 +3051,13 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 59 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 61 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2989,7 +3113,7 @@ ...@@ -2989,7 +3113,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 60 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3022,7 +3146,7 @@ ...@@ -3022,7 +3146,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 62
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3054,11 +3178,11 @@ ...@@ -3054,11 +3178,11 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"aniRole": { "aniRole": {
"__id__": 57 "__id__": 60
}, },
"_id": "e4RrOXSNJGd68Mq3UTYY0p" "_id": "e4RrOXSNJGd68Mq3UTYY0p"
}, },
...@@ -3067,7 +3191,7 @@ ...@@ -3067,7 +3191,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3100,7 +3224,7 @@ ...@@ -3100,7 +3224,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3156,7 +3280,7 @@ ...@@ -3156,7 +3280,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 65 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3192,7 +3316,7 @@ ...@@ -3192,7 +3316,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 68 "__id__": 71
} }
], ],
"_active": true, "_active": true,
...@@ -3250,11 +3374,11 @@ ...@@ -3250,11 +3374,11 @@
"_name": "Controls", "_name": "Controls",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 67 "__id__": 70
}, },
"_children": [ "_children": [
{ {
"__id__": 69 "__id__": 72
} }
], ],
"_active": true, "_active": true,
...@@ -3312,32 +3436,32 @@ ...@@ -3312,32 +3436,32 @@
"_name": "ProgressBar", "_name": "ProgressBar",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 68 "__id__": 71
}, },
"_children": [ "_children": [
{ {
"__id__": 70 "__id__": 73
}, },
{ {
"__id__": 74 "__id__": 77
}, },
{ {
"__id__": 76 "__id__": 79
}, },
{ {
"__id__": 78 "__id__": 81
}, },
{ {
"__id__": 82 "__id__": 85
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 85 "__id__": 88
}, },
{ {
"__id__": 86 "__id__": 89
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3393,17 +3517,17 @@ ...@@ -3393,17 +3517,17 @@
"_name": "bar", "_name": "bar",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 69 "__id__": 72
}, },
"_children": [ "_children": [
{ {
"__id__": 71 "__id__": 74
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 73 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3459,13 +3583,13 @@ ...@@ -3459,13 +3583,13 @@
"_name": "bar_tag", "_name": "bar_tag",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 70 "__id__": 73
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 72 "__id__": 75
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3521,7 +3645,7 @@ ...@@ -3521,7 +3645,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 71 "__id__": 74
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3553,7 +3677,7 @@ ...@@ -3553,7 +3677,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 70 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3585,13 +3709,13 @@ ...@@ -3585,13 +3709,13 @@
"_name": "Play", "_name": "Play",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 69 "__id__": 72
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3647,7 +3771,7 @@ ...@@ -3647,7 +3771,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3679,13 +3803,13 @@ ...@@ -3679,13 +3803,13 @@
"_name": "Pause", "_name": "Pause",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 69 "__id__": 72
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 80
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3741,7 +3865,7 @@ ...@@ -3741,7 +3865,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 76 "__id__": 79
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3773,19 +3897,19 @@ ...@@ -3773,19 +3897,19 @@
"_name": "CurrentLabel", "_name": "CurrentLabel",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 69 "__id__": 72
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 79 "__id__": 82
}, },
{ {
"__id__": 80 "__id__": 83
}, },
{ {
"__id__": 81 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3841,7 +3965,7 @@ ...@@ -3841,7 +3965,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 81
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3874,7 +3998,7 @@ ...@@ -3874,7 +3998,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 81
}, },
"_enabled": false, "_enabled": false,
"_color": { "_color": {
...@@ -3892,7 +4016,7 @@ ...@@ -3892,7 +4016,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 81
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3919,16 +4043,16 @@ ...@@ -3919,16 +4043,16 @@
"_name": "TimeLabel", "_name": "TimeLabel",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 69 "__id__": 72
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 83 "__id__": 86
}, },
{ {
"__id__": 84 "__id__": 87
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3984,7 +4108,7 @@ ...@@ -3984,7 +4108,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 85
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4017,7 +4141,7 @@ ...@@ -4017,7 +4141,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 85
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -4044,7 +4168,7 @@ ...@@ -4044,7 +4168,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 72
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4076,12 +4200,12 @@ ...@@ -4076,12 +4200,12 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 72
}, },
"_enabled": true, "_enabled": true,
"_N$totalLength": 1, "_N$totalLength": 1,
"_N$barSprite": { "_N$barSprite": {
"__id__": 73 "__id__": 76
}, },
"_N$mode": 2, "_N$mode": 2,
"_N$progress": 0, "_N$progress": 0,
...@@ -4097,13 +4221,13 @@ ...@@ -4097,13 +4221,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 88 "__id__": 91
}, },
{ {
"__id__": 91 "__id__": 94
}, },
{ {
"__id__": 92 "__id__": 95
} }
], ],
"_active": false, "_active": false,
...@@ -4161,11 +4285,11 @@ ...@@ -4161,11 +4285,11 @@
"_name": "font", "_name": "font",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 90
}, },
"_children": [ "_children": [
{ {
"__id__": 89 "__id__": 92
} }
], ],
"_active": true, "_active": true,
...@@ -4223,13 +4347,13 @@ ...@@ -4223,13 +4347,13 @@
"_name": "BRLNSDB", "_name": "BRLNSDB",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 88 "__id__": 91
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 93
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4285,7 +4409,7 @@ ...@@ -4285,7 +4409,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 92
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4320,7 +4444,7 @@ ...@@ -4320,7 +4444,7 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 90
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
...@@ -4378,29 +4502,29 @@ ...@@ -4378,29 +4502,29 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 90
}, },
"_children": [ "_children": [
{ {
"__id__": 93 "__id__": 96
}, },
{ {
"__id__": 95 "__id__": 98
}, },
{ {
"__id__": 97 "__id__": 100
}, },
{ {
"__id__": 99 "__id__": 102
}, },
{ {
"__id__": 101 "__id__": 104
}, },
{ {
"__id__": 103 "__id__": 106
}, },
{ {
"__id__": 105 "__id__": 108
} }
], ],
"_active": true, "_active": true,
...@@ -4458,13 +4582,13 @@ ...@@ -4458,13 +4582,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 94 "__id__": 97
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4520,7 +4644,7 @@ ...@@ -4520,7 +4644,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 93 "__id__": 96
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4539,13 +4663,13 @@ ...@@ -4539,13 +4663,13 @@
"_name": "right", "_name": "right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 96 "__id__": 99
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4601,7 +4725,7 @@ ...@@ -4601,7 +4725,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 95 "__id__": 98
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4620,13 +4744,13 @@ ...@@ -4620,13 +4744,13 @@
"_name": "bettery", "_name": "bettery",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 98 "__id__": 101
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4682,7 +4806,7 @@ ...@@ -4682,7 +4806,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 100
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4701,13 +4825,13 @@ ...@@ -4701,13 +4825,13 @@
"_name": "error", "_name": "error",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 100 "__id__": 103
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4763,7 +4887,7 @@ ...@@ -4763,7 +4887,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 99 "__id__": 102
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4782,13 +4906,13 @@ ...@@ -4782,13 +4906,13 @@
"_name": "bgm", "_name": "bgm",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 102 "__id__": 105
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4844,7 +4968,7 @@ ...@@ -4844,7 +4968,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 101 "__id__": 104
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4863,13 +4987,13 @@ ...@@ -4863,13 +4987,13 @@
"_name": "opendoor", "_name": "opendoor",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 104 "__id__": 107
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4925,7 +5049,7 @@ ...@@ -4925,7 +5049,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 103 "__id__": 106
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4944,13 +5068,13 @@ ...@@ -4944,13 +5068,13 @@
"_name": "light", "_name": "light",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 92 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 106 "__id__": 109
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5006,7 +5130,7 @@ ...@@ -5006,7 +5130,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 105 "__id__": 108
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -5073,52 +5197,55 @@ ...@@ -5073,52 +5197,55 @@
}, },
"_enabled": true, "_enabled": true,
"xiaodi": { "xiaodi": {
"__id__": 63 "__id__": 66
}, },
"question_img": { "question_img": {
"__id__": 25 "__id__": 24
}, },
"label_title": { "label_title": {
"__id__": 31 "__id__": 30
}, },
"btn_vioce": { "btn_vioce": {
"__id__": 39 "__id__": 40
}, },
"btn_restart": { "btn_restart": {
"__id__": 34 "__id__": 35
}, },
"label_tip_wait": { "label_tip_wait": {
"__id__": 46 "__id__": 47
}, },
"label_tip_ing": { "label_tip_ing": {
"__id__": 48 "__id__": 49
}, },
"rich_content": { "rich_content": {
"__id__": 50 "__id__": 51
}, },
"btn_go": { "btn_go": {
"__id__": 59 "__id__": 62
}, },
"barTag": { "barTag": {
"__id__": 71 "__id__": 74
}, },
"ProgressBar": { "ProgressBar": {
"__id__": 69 "__id__": 72
}, },
"videoPlayer": { "videoPlayer": {
"__id__": 6 "__id__": 6
}, },
"currentTimeLabel": { "currentTimeLabel": {
"__id__": 79 "__id__": 82
},
"layout_video": {
"__id__": 70
}, },
"videoControls": { "videoControls": {
"__id__": 68 "__id__": 71
}, },
"pauseButton": { "pauseButton": {
"__id__": 76 "__id__": 79
}, },
"playButton": { "playButton": {
"__id__": 74 "__id__": 77
}, },
"_id": "6eW7M4ET1L4KOTzIOVRmf8" "_id": "6eW7M4ET1L4KOTzIOVRmf8"
} }
......
import macro from '../script/A_Macro_dg18_tianci' import macro from '../script/A_Macro_dg18_tianci'
import { asyncDelay, onHomeworkFinish } from "../script/util_dg18_tianci"; import { asyncDelay, onHomeworkFinish } from "../script/util_dg18_tianci";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_dg18_tianci"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_dg18_tianci";
import pg from "./pg_dg18_tianci"; import pg, { TimeCtrl } from "./pg_dg18_tianci";
import dg_xiaodi from "./dg18_tianci_xiaodi"; import dg_xiaodi from "./dg18_tianci_xiaodi";
let win: any = window; let win: any = window;
...@@ -28,15 +28,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -28,15 +28,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(dg_xiaodi) xiaodi: dg_xiaodi = null; @property(dg_xiaodi) xiaodi: dg_xiaodi = null;
async onLoadEnd() { async onLoadEnd() {
this.initVideoPlayer();
this.showVideoPlayer();
return;
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考 // TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData(); this.initData();
this.initView(); this.initView();
this.initEvent(); this.initEvent();
this.initVideoPlayer();
this.showVideoPlayer();
this.xiaodi.playEnter(this.data.npcAudio).then(() => { this.xiaodi.playEnter(this.data.npcAudio).then(() => {
this.initGame(); this.initGame();
...@@ -80,6 +76,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -80,6 +76,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.label_tip_wait.active = false; this.label_tip_wait.active = false;
this.label_tip_ing.active = false; this.label_tip_ing.active = false;
this.rich_content.active = false; this.rich_content.active = false;
this.layout_video.active = false;
} }
// 事件监听 // 事件监听
initEvent() { initEvent() {
...@@ -244,11 +241,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -244,11 +241,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
showNextBtn() { showNextBtn() {
}
showVideo() {
return new Promise(reslove => {
reslove('')
})
} }
onTouchRestart() { onTouchRestart() {
// 处理展示视频内容 // 处理展示视频内容
...@@ -262,6 +254,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -262,6 +254,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
onTouchNext() { onTouchNext() {
if (this.recording) return; if (this.recording) return;
if (!this.nextQuestion) { if (!this.nextQuestion) {
pg.view.find(this, 'layout_game/img_question').active = false;
this.btn_vioce.active = false;
this.label_tip_wait.active = false;
this.label_tip_ing.active = false;
// 处理展示视频内容 // 处理展示视频内容
this.showVideo().then(() => { this.showVideo().then(() => {
// 底部显示为重新查看 // 底部显示为重新查看
...@@ -283,6 +280,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -283,6 +280,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Label) currentTimeLabel: cc.Label = null; @property(cc.Label) currentTimeLabel: cc.Label = null;
@property(cc.Node) layout_video: cc.Node = null;
@property(cc.Node) videoControls: cc.Node = null; @property(cc.Node) videoControls: cc.Node = null;
@property(cc.Node) pauseButton: cc.Node = null; @property(cc.Node) pauseButton: cc.Node = null;
@property(cc.Node) playButton: cc.Node = null; @property(cc.Node) playButton: cc.Node = null;
...@@ -290,41 +288,59 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -290,41 +288,59 @@ export default class SceneComponent extends MyCocosSceneComponent {
showUI() { showUI() {
pg.view.visible(pg.view.find(this, 'bg'), true) pg.view.visible(pg.view.find(this, 'bg'), true)
pg.view.visible(pg.view.find(this, 'question_img'), true) pg.view.visible(pg.view.find(this, 'layout_game'), true)
pg.view.visible(pg.view.find(this, 'img_kuang'), true)
pg.view.visible(pg.view.find(this, 'label_title'), true)
pg.view.visible(pg.view.find(this, 'layout_record'), true)
pg.view.visible(pg.view.find(this, 'layout_xiaodi'), true) pg.view.visible(pg.view.find(this, 'layout_xiaodi'), true)
this.xiaodi.showAll();
} }
hideUI() { hideUI() {
pg.view.visible(pg.view.find(this, 'bg'), false) pg.view.visible(pg.view.find(this, 'bg'), false)
pg.view.visible(pg.view.find(this, 'question_img'), false) pg.view.visible(pg.view.find(this, 'layout_game'), false)
pg.view.visible(pg.view.find(this, 'img_kuang'), false)
pg.view.visible(pg.view.find(this, 'label_title'), false)
pg.view.visible(pg.view.find(this, 'layout_record'), false)
pg.view.visible(pg.view.find(this, 'layout_xiaodi'), false) pg.view.visible(pg.view.find(this, 'layout_xiaodi'), false)
} this.xiaodi.hideAll();
playVideoEnd() {
} }
showVideoPlayer() { showVideoPlayer() {
this.layout_video.active = true;
this.videoPlayer.stayOnBottom = true; this.videoPlayer.stayOnBottom = true;
this._isReadyToPlay = false;
this.videoPlayer.node.x = 0; this.videoPlayer.node.x = 0;
this.videoPlayer.node.y = 0; this.videoPlayer.node.y = 0;
if (!this._isReadyToPlay) {
//首次播放
this._isReadyToPlay = false;
this.videoPlayer.remoteURL = this.data.video; this.videoPlayer.remoteURL = this.data.video;
this.hideUI();
pg.view.touchOn(this.playButton, this.play, this); pg.view.touchOn(this.playButton, this.play, this);
pg.view.touchOn(this.pauseButton, this.pause, this); pg.view.touchOn(this.pauseButton, this.pause, this);
} else {
//重复播放
this.videoPlayer.currentTime = 0;
this._isPlayComplated = false;
this.play();
}
this.hideUI();
setTimeout(() => { setTimeout(() => {
this.videoPlayer.stayOnBottom = true; this.videoPlayer.stayOnBottom = false;
}, 2000); this.videoControls.active = false;
}, 3000);
} }
private timeCtrl: TimeCtrl;
showVideo() {
return new Promise(async (reslove) => {
this.showVideoPlayer();
this.timeCtrl = pg.time.delayCtrl()
this.timeCtrl.fillTime(99999);
await this.timeCtrl.wait();
reslove('')
})
}
hideVideo() {
this.timeCtrl.reset();
this.videoPlayer.node.x = -10000;
this.videoPlayer.node.y = -10000;
this.layout_video.active = false;
this.showUI();
}
initVideoPlayer() { initVideoPlayer() {
this.videoPlayer.node.on('ready-to-play', () => { this.videoPlayer.node.on('ready-to-play', () => {
console.log('ready-to-play'); console.log('ready-to-play');
...@@ -378,7 +394,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -378,7 +394,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playButton.active = false; this.playButton.active = false;
this.pauseButton.active = false; this.pauseButton.active = false;
// 循环播放下一个 // 循环播放下一个
this.playVideoEnd(); this.hideVideo();
}); });
cc.view.setResizeCallback((params) => { cc.view.setResizeCallback((params) => {
console.log('Resize', params); console.log('Resize', params);
...@@ -578,7 +594,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -578,7 +594,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}, 0.5) }, 0.5)
} }
pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this); pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this);
pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/txt'), this.data.npcTitle) pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/text'), this.data.npcAudioText)
pg.view.find(this, 'layout_xiaodi').active = true; pg.view.find(this, 'layout_xiaodi').active = true;
pg.view.find(this, 'layout_xiaodi').getComponent(dg_xiaodi).playOver(this.data.npcAudioEnd) pg.view.find(this, 'layout_xiaodi').getComponent(dg_xiaodi).playOver(this.data.npcAudioEnd)
} }
......
...@@ -10,6 +10,14 @@ export default class dg_xiaodi extends cc.Component { ...@@ -10,6 +10,14 @@ export default class dg_xiaodi extends cc.Component {
onLoad() { onLoad() {
} }
hideAll() {
this.playEnterEnd();
this.playQuestionVoiceEnd();
this.node.active = false;
}
showAll() {
this.node.active = true;
}
private audioIdEnter: any; private audioIdEnter: any;
playEnter(audioUrl) { playEnter(audioUrl) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -102,7 +102,7 @@ class Signal<T = void> { ...@@ -102,7 +102,7 @@ class Signal<T = void> {
} }
} }
class TimeCtrl { export class TimeCtrl {
private current: number; private current: number;
constructor() { constructor() {
this.current = 0; this.current = 0;
......
...@@ -85,8 +85,6 @@ ...@@ -85,8 +85,6 @@
<div style="padding: 10px;background-color: #fff;"> <div style="padding: 10px;background-color: #fff;">
<div class="border-dashed" style="margin: 20px;width: 1300px;"> <div class="border-dashed" style="margin: 20px;width: 1300px;">
<span style="font-size: 20px;">小迪标题: </span>
<input type="text" nz-input [(ngModel)]="item.npcTitle" (blur)="save()">
<span style="font-size: 20px;">小迪开始音频: </span> <span style="font-size: 20px;">小迪开始音频: </span>
<div style="display:flex ;"> <div style="display:flex ;">
<div> <div>
...@@ -98,6 +96,8 @@ ...@@ -98,6 +96,8 @@
<span>{{ item.npcAudioName}}</span> <span>{{ item.npcAudioName}}</span>
</div> </div>
</div> </div>
<span style="font-size: 20px;">小迪结束按钮文字: </span>
<input type="text" nz-input [(ngModel)]="item.npcAudioText" (blur)="save()">
<span style="font-size: 20px;">小迪结束音频: </span> <span style="font-size: 20px;">小迪结束音频: </span>
<div style="display:flex ;"> <div style="display:flex ;">
<div> <div>
......
...@@ -15,7 +15,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O ...@@ -15,7 +15,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
// 储存数据用 // 储存数据用
saveKey = "dg29_museum_1"; saveKey = "dg29_museum_1";
item = { item = {
npcTitle: "", npcAudioText: "",
npcAudio: "", npcAudio: "",
npcAudioName: "", npcAudioName: "",
npcAudioEnd: "", npcAudioEnd: "",
......
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