Commit 616930ae authored by liujiangnan's avatar liujiangnan

feat

parent 325a3828
{
"ver": "1.1.2",
"uuid": "4f557179-a05f-4891-bac0-6a3d0275c8ce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{"ver":"1.1.2","uuid":"4f557179-a05f-4891-bac0-6a3d0275c8ce","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
......@@ -81,22 +81,19 @@
"__id__": 11
},
{
"__id__": 14
},
{
"__id__": 17
"__id__": 23
}
],
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 57
},
{
"__id__": 52
"__id__": 58
},
{
"__id__": 53
"__id__": 59
}
],
"_prefab": null,
......@@ -308,7 +305,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "addilquLRBDZBGWaFggTf1"
"_id": "bfUxDsKnpGqZGDy79qwcj3"
},
{
"__type__": "cc.Sprite",
......@@ -340,7 +337,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1eA4bfGG9E5axOtqogt55T"
"_id": "bcMnJPYg9HVoJuIfThhqJ7"
},
{
"__type__": "cc.Widget",
......@@ -367,7 +364,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "f3AOu8GUhM267nsrpUSJyU"
"_id": "58F4qORNBEXrbfjGlUeTRd"
},
{
"__type__": "cc.Node",
......@@ -495,19 +492,218 @@
},
{
"__type__": "cc.Node",
"_name": "bg_video_shadow",
"_name": "video_node",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_children": [
{
"__id__": 12
},
{
"__id__": 15
},
{
"__id__": 18
}
],
"_active": false,
"_components": [
{
"__id__": 12
"__id__": 21
},
{
"__id__": 22
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 896,
"height": 504
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
35,
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": "2eYgDBd01EZbiWfXtGxZk6"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-35,
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": "addilquLRBDZBGWaFggTf1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "82179df8-a8f0-4782-87fb-93835aa2425f"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1eA4bfGG9E5axOtqogt55T"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": -192,
"_right": -192,
"_top": -72.99999999999997,
"_bottom": -142.99999999999997,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "f3AOu8GUhM267nsrpUSJyU"
},
{
"__type__": "cc.Node",
"_name": "bg_video_shadow",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": null,
......@@ -534,7 +730,7 @@
"ctor": "Float64Array",
"array": [
0,
42.166,
20,
0,
0,
0,
......@@ -542,7 +738,7 @@
1,
0.5,
0.5,
1
0.5
]
},
"_eulerAngles": {
......@@ -563,7 +759,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 15
},
"_enabled": true,
"_materials": [
......@@ -595,7 +791,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
......@@ -622,16 +818,16 @@
"_name": "VideoNode",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 11
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 19
},
{
"__id__": 16
"__id__": 20
}
],
"_prefab": null,
......@@ -658,7 +854,7 @@
"ctor": "Float64Array",
"array": [
0,
57.701,
12.324,
0,
0,
0,
......@@ -666,7 +862,7 @@
1,
0.7,
0.7,
1
0.7
]
},
"_eulerAngles": {
......@@ -687,7 +883,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 18
},
"_enabled": true,
"_resourceType": 0,
......@@ -707,7 +903,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
......@@ -717,7 +913,7 @@
"_right": 0,
"_top": 0,
"_bottom": 145.72800000000004,
"_verticalCenter": 20,
"_verticalCenter": 12.324,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
......@@ -729,6 +925,53 @@
"_originalHeight": 0,
"_id": "1fqYsocEpLwaEFWHsef/gC"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 192,
"_right": 192,
"_top": 73.00000000000003,
"_bottom": 143,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "852CsUKyVL0p+WuJo3sexA"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": true,
"_id": "c4itMLHXBCxKR1uk46xIT4"
},
{
"__type__": "cc.Node",
"_name": "Controls",
......@@ -738,13 +981,13 @@
},
"_children": [
{
"__id__": 18
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 50
"__id__": 56
}
],
"_prefab": null,
......@@ -800,35 +1043,35 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 17
"__id__": 23
},
"_children": [
{
"__id__": 19
"__id__": 25
},
{
"__id__": 24
"__id__": 30
},
{
"__id__": 31
"__id__": 37
},
{
"__id__": 38
"__id__": 44
},
{
"__id__": 42
"__id__": 48
},
{
"__id__": 45
"__id__": 51
}
],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 54
},
{
"__id__": 49
"__id__": 55
}
],
"_prefab": null,
......@@ -884,20 +1127,20 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 24
},
"_children": [
{
"__id__": 20
"__id__": 26
}
],
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 28
},
{
"__id__": 23
"__id__": 29
}
],
"_prefab": null,
......@@ -953,13 +1196,13 @@
"_name": "bar_tag",
"_objFlags": 0,
"_parent": {
"__id__": 19
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 27
}
],
"_prefab": null,
......@@ -1015,7 +1258,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 26
},
"_enabled": true,
"_materials": [
......@@ -1047,7 +1290,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 25
},
"_enabled": true,
"_materials": [
......@@ -1079,7 +1322,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 25
},
"_enabled": true,
"alignMode": 1,
......@@ -1106,20 +1349,20 @@
"_name": "Play",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 24
},
"_children": [
{
"__id__": 25
"__id__": 31
}
],
"_active": true,
"_components": [
{
"__id__": 28
"__id__": 34
},
{
"__id__": 30
"__id__": 36
}
],
"_prefab": null,
......@@ -1175,16 +1418,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 24
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 32
},
{
"__id__": 27
"__id__": 33
}
],
"_prefab": null,
......@@ -1240,7 +1483,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 31
},
"_enabled": true,
"_materials": [
......@@ -1272,7 +1515,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 31
},
"_enabled": true,
"alignMode": 0,
......@@ -1299,7 +1542,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 30
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1308,7 +1551,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 29
"__id__": 35
}
],
"_N$interactable": true,
......@@ -1374,7 +1617,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 25
"__id__": 31
},
"_id": "a8bWaLdnFKA5ITxJunB2R2"
},
......@@ -1393,7 +1636,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 30
},
"_enabled": true,
"alignMode": 1,
......@@ -1420,20 +1663,20 @@
"_name": "Pause",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 24
},
"_children": [
{
"__id__": 32
"__id__": 38
}
],
"_active": false,
"_components": [
{
"__id__": 35
"__id__": 41
},
{
"__id__": 37
"__id__": 43
}
],
"_prefab": null,
......@@ -1489,16 +1732,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 31
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 39
},
{
"__id__": 34
"__id__": 40
}
],
"_prefab": null,
......@@ -1554,7 +1797,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 38
},
"_enabled": true,
"_materials": [
......@@ -1586,7 +1829,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 38
},
"_enabled": true,
"alignMode": 0,
......@@ -1613,7 +1856,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 37
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1622,7 +1865,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 36
"__id__": 42
}
],
"_N$interactable": true,
......@@ -1678,7 +1921,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 32
"__id__": 38
},
"_id": "94dhG7VhpIZZJp5e+IJuYc"
},
......@@ -1697,7 +1940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 37
},
"_enabled": true,
"alignMode": 1,
......@@ -1724,19 +1967,19 @@
"_name": "CurrentLabel",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
"__id__": 45
},
{
"__id__": 40
"__id__": 46
},
{
"__id__": 41
"__id__": 47
}
],
"_prefab": null,
......@@ -1792,7 +2035,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 44
},
"_enabled": true,
"_materials": [
......@@ -1825,7 +2068,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 44
},
"_enabled": false,
"_color": {
......@@ -1843,7 +2086,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 44
},
"_enabled": true,
"alignMode": 1,
......@@ -1870,16 +2113,16 @@
"_name": "TimeLabel",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 49
},
{
"__id__": 44
"__id__": 50
}
],
"_prefab": null,
......@@ -1935,7 +2178,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 48
},
"_enabled": true,
"_materials": [
......@@ -1968,7 +2211,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 48
},
"_enabled": true,
"alignMode": 1,
......@@ -1995,16 +2238,16 @@
"_name": "text_tips_left",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 52
},
{
"__id__": 47
"__id__": 53
}
],
"_prefab": null,
......@@ -2060,7 +2303,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 51
},
"_enabled": true,
"_materials": [
......@@ -2092,7 +2335,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 51
},
"_enabled": true,
"alignMode": 1,
......@@ -2119,7 +2362,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 24
},
"_enabled": true,
"_materials": [
......@@ -2151,7 +2394,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 24
},
"_enabled": true,
"alignMode": 1,
......@@ -2178,7 +2421,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 23
},
"_enabled": true,
"alignMode": 1,
......@@ -2253,31 +2496,31 @@
},
"_enabled": true,
"videoPlayer": {
"__id__": 15
"__id__": 19
},
"ProgressBar": {
"__id__": 18
"__id__": 24
},
"playButton": {
"__id__": 28
"__id__": 34
},
"pauseButton": {
"__id__": 35
"__id__": 41
},
"restartButton": null,
"backButton": null,
"forwardButton": null,
"durationLabel": {
"__id__": 43
"__id__": 49
},
"currentTimeLabel": {
"__id__": 39
"__id__": 45
},
"barTag": {
"__id__": 20
"__id__": 26
},
"bar": {
"__id__": 19
"__id__": 25
},
"_id": "ec0d87qy5Eoavi5EqUiZj3"
}
......
......@@ -146,8 +146,8 @@ cc.Class({
cc.debug.setDisplayStats(false);
this.initSize();
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
cc.find('Canvas/bg').scale = this._mapScaleMax;
cc.find('Canvas/video_node/bg').scale = this._mapScaleMax;
this._isReadyToPlay = false;
window['vv'] = this;
......@@ -389,9 +389,11 @@ cc.Class({
play(){
cc.find(`Canvas/Controls/ProgressBar/text_tips_left`).active = false;
cc.find(`Canvas/bg`).active = false;
cc.find(`Canvas/bg_empty`).active = false;
cc.find(`Canvas/bg_video_shadow`).active = true;
this.videoPlayer.node.active = true;
cc.find(`Canvas/video_node`).active = true;
// this.videoPlayer.node.active = true;
this.videoPlayer.play();
this.triggerInteractive()
},
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2560,
"height": 1440,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bg": {
......
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