Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR_video
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
MRBR_video
Commits
bb6a3fd4
Commit
bb6a3fd4
authored
Nov 14, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加视频背景
parent
fccce5a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
269 additions
and
234 deletions
+269
-234
MRBR_video.fire
assets/MRBR_video/scene/MRBR_video.fire
+258
-226
MRBR_video.js
assets/MRBR_video/scene/MRBR_video.js
+11
-8
No files found.
assets/MRBR_video/scene/MRBR_video.fire
View file @
bb6a3fd4
...
@@ -72,31 +72,31 @@
...
@@ -72,31 +72,31 @@
"__id__": 3
"__id__": 3
},
},
{
{
"__id__":
7
"__id__":
6
},
},
{
{
"__id__": 1
0
"__id__": 1
1
},
},
{
{
"__id__": 1
2
"__id__": 1
3
},
},
{
{
"__id__": 1
4
"__id__": 1
5
},
},
{
{
"__id__": 4
3
"__id__": 4
4
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
"__id__": 69
},
{
{
"__id__": 70
"__id__": 70
},
},
{
{
"__id__": 71
"__id__": 71
},
{
"__id__": 72
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -149,20 +149,19 @@
...
@@ -149,20 +149,19 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
video_bg
",
"_name": "
Main Camera
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
"__id__": 2
},
},
"_children": [
"_children": [],
{
"__id__": 4
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
"__id__": 4
},
{
"__id__": 5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -176,8 +175,8 @@
...
@@ -176,8 +175,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
128
0,
"width": 0,
"height":
94
0
"height": 0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -211,20 +210,87 @@
...
@@ -211,20 +210,87 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "05K9heyf1A5aDb5SYhexfW"
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 640,
"_right": 640,
"_top": 470,
"_bottom": 470,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "a3W+F+0tFAFJzUnY+BaTiV"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
bg_video
",
"_name": "
video_bg
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
3
"__id__":
2
},
},
"_children": [],
"_children": [
{
"__id__": 7
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
5
"__id__":
10
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -238,8 +304,8 @@
...
@@ -238,8 +304,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
200
0,
"width": 0,
"height":
200
0
"height": 0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -273,66 +339,14 @@
...
@@ -273,66 +339,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "bf9K6uSIJLK6LC8Qyw6+eT"
"_id": "05K9heyf1A5aDb5SYhexfW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5509c4ec-1745-4fdd-9a1d-af63bae692a8"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "52rlpVhXVHLbhYxcLX3uSD"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": true,
"_id": "74zvqtP2JFya0y/suNoRwM"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
Main Camera
",
"_name": "
bg_video
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
2
"__id__":
6
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
...
@@ -355,8 +369,8 @@
...
@@ -355,8 +369,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 0,
"width":
128
0,
"height": 0
"height":
94
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -390,43 +404,39 @@
...
@@ -390,43 +404,39 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
e1WoFrQ79G7r4ZuQE3HlNb
"
"_id": "
bf9K6uSIJLK6LC8Qyw6+eT
"
},
},
{
{
"__type__": "cc.
Camera
",
"__type__": "cc.
Sprite
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
"__id__": 7
},
},
"_enabled": true,
"_enabled": true,
"_cullingMask": 4294967295,
"_materials": [
"_clearFlags": 7,
{
"_backgroundColor": {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__type__": "cc.Color",
}
"r": 0,
],
"g": 0,
"_srcBlendFactor": 1,
"b": 0,
"_dstBlendFactor": 771,
"a": 0
"_spriteFrame": {
"__uuid__": "5509c4ec-1745-4fdd-9a1d-af63bae692a8"
},
},
"_depth": -1,
"_type": 0,
"_zoomRatio": 1,
"_sizeMode": 0,
"_targetTexture": null,
"_fillType": 0,
"_fov": 60,
"_fillCenter": {
"_orthoSize": 10,
"__type__": "cc.Vec2",
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"x": 0,
"y": 0,
"y": 0
"width": 1,
"height": 1
},
},
"_renderStages": 1,
"_fillStart": 0,
"_alignWithScreen": true,
"_fillRange": 0,
"_id": "81GN3uXINKVLeW4+iKSlim"
"_isTrimmedMode": true,
"_atlas": null,
"_id": "52rlpVhXVHLbhYxcLX3uSD"
},
},
{
{
"__type__": "cc.Widget",
"__type__": "cc.Widget",
...
@@ -437,12 +447,14 @@
...
@@ -437,12 +447,14 @@
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
"_target": null,
"_target": {
"__id__": 2
},
"_alignFlags": 45,
"_alignFlags": 45,
"_left":
64
0,
"_left": 0,
"_right":
64
0,
"_right": 0,
"_top":
47
0,
"_top": 0,
"_bottom":
47
0,
"_bottom": 0,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
@@ -451,9 +463,29 @@
...
@@ -451,9 +463,29 @@
"_isAbsBottom": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalWidth": 2000,
"_originalHeight": 720,
"_originalHeight": 2000,
"_id": "a3W+F+0tFAFJzUnY+BaTiV"
"_id": "0c7QcJ1DpJ7rWllRE8Soto"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": true,
"_id": "74zvqtP2JFya0y/suNoRwM"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -466,7 +498,7 @@
...
@@ -466,7 +498,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 1
1
"__id__": 1
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -522,7 +554,7 @@
...
@@ -522,7 +554,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
0
"__id__": 1
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -568,7 +600,7 @@
...
@@ -568,7 +600,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 1
3
"__id__": 1
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -624,7 +656,7 @@
...
@@ -624,7 +656,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
2
"__id__": 1
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -668,32 +700,32 @@
...
@@ -668,32 +700,32 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
5
"__id__": 1
6
},
},
{
{
"__id__": 2
1
"__id__": 2
2
},
},
{
{
"__id__": 2
3
"__id__": 2
4
},
},
{
{
"__id__": 3
4
"__id__": 3
5
},
},
{
{
"__id__": 3
7
"__id__": 3
8
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
0
"__id__": 4
1
},
},
{
{
"__id__": 4
1
"__id__": 4
2
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 4
2
"__id__": 4
3
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -747,21 +779,21 @@
...
@@ -747,21 +779,21 @@
"_name": "progress",
"_name": "progress",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
4
"__id__": 1
5
},
},
"_children": [
"_children": [
{
{
"__id__": 1
6
"__id__": 1
7
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
19
"__id__":
20
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
0
"__id__": 2
1
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -815,17 +847,17 @@
...
@@ -815,17 +847,17 @@
"_name": "bar",
"_name": "bar",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
5
"__id__": 1
6
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
7
"__id__": 1
8
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
8
"__id__": 1
9
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -879,7 +911,7 @@
...
@@ -879,7 +911,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
6
"__id__": 1
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -909,7 +941,7 @@
...
@@ -909,7 +941,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -922,7 +954,7 @@
...
@@ -922,7 +954,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
5
"__id__": 1
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -952,7 +984,7 @@
...
@@ -952,7 +984,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -965,13 +997,13 @@
...
@@ -965,13 +997,13 @@
"_name": "markNode",
"_name": "markNode",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
4
"__id__": 1
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 2
2
"__id__": 2
3
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1023,7 +1055,7 @@
...
@@ -1023,7 +1055,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1036,23 +1068,23 @@
...
@@ -1036,23 +1068,23 @@
"_name": "controlButton",
"_name": "controlButton",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
4
"__id__": 1
5
},
},
"_children": [
"_children": [
{
{
"__id__": 2
4
"__id__": 2
5
},
},
{
{
"__id__": 2
7
"__id__": 2
8
},
},
{
{
"__id__": 3
0
"__id__": 3
1
}
}
],
],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 3
3
"__id__": 3
4
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1106,17 +1138,17 @@
...
@@ -1106,17 +1138,17 @@
"_name": "play",
"_name": "play",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
3
"__id__": 2
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
5
"__id__": 2
6
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
6
"__id__": 2
7
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1170,7 +1202,7 @@
...
@@ -1170,7 +1202,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
4
"__id__": 2
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1200,7 +1232,7 @@
...
@@ -1200,7 +1232,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1213,17 +1245,17 @@
...
@@ -1213,17 +1245,17 @@
"_name": "pause",
"_name": "pause",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
3
"__id__": 2
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
8
"__id__": 2
9
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
29
"__id__":
30
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1277,7 +1309,7 @@
...
@@ -1277,7 +1309,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
7
"__id__": 2
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1307,7 +1339,7 @@
...
@@ -1307,7 +1339,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1320,17 +1352,17 @@
...
@@ -1320,17 +1352,17 @@
"_name": "replay",
"_name": "replay",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
3
"__id__": 2
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
1
"__id__": 3
2
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 3
2
"__id__": 3
3
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1384,7 +1416,7 @@
...
@@ -1384,7 +1416,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
0
"__id__": 3
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1414,7 +1446,7 @@
...
@@ -1414,7 +1446,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1425,7 +1457,7 @@
...
@@ -1425,7 +1457,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1438,17 +1470,17 @@
...
@@ -1438,17 +1470,17 @@
"_name": "dragButton",
"_name": "dragButton",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
4
"__id__": 1
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
5
"__id__": 3
6
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 3
6
"__id__": 3
7
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1502,7 +1534,7 @@
...
@@ -1502,7 +1534,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
4
"__id__": 3
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1532,7 +1564,7 @@
...
@@ -1532,7 +1564,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1545,17 +1577,17 @@
...
@@ -1545,17 +1577,17 @@
"_name": "markPoint",
"_name": "markPoint",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
4
"__id__": 1
5
},
},
"_children": [],
"_children": [],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 3
8
"__id__": 3
9
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
39
"__id__":
40
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1609,7 +1641,7 @@
...
@@ -1609,7 +1641,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
7
"__id__": 3
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1639,7 +1671,7 @@
...
@@ -1639,7 +1671,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1652,7 +1684,7 @@
...
@@ -1652,7 +1684,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
4
"__id__": 1
5
},
},
"_enabled": true,
"_enabled": true,
"_id": "42XWQfk9tE94NY0efe9K5z"
"_id": "42XWQfk9tE94NY0efe9K5z"
...
@@ -1662,7 +1694,7 @@
...
@@ -1662,7 +1694,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
4
"__id__": 1
5
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1687,7 +1719,7 @@
...
@@ -1687,7 +1719,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
4
"__id__": 1
5
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1704,13 +1736,13 @@
...
@@ -1704,13 +1736,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 4
4
"__id__": 4
5
},
},
{
{
"__id__":
59
"__id__":
60
},
},
{
{
"__id__": 6
2
"__id__": 6
3
}
}
],
],
"_active": false,
"_active": false,
...
@@ -1768,29 +1800,29 @@
...
@@ -1768,29 +1800,29 @@
"_name": "img",
"_name": "img",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
3
"__id__": 4
4
},
},
"_children": [
"_children": [
{
{
"__id__": 4
5
"__id__": 4
6
},
},
{
{
"__id__": 4
7
"__id__": 4
8
},
},
{
{
"__id__":
49
"__id__":
50
},
},
{
{
"__id__": 5
1
"__id__": 5
2
},
},
{
{
"__id__": 5
3
"__id__": 5
4
},
},
{
{
"__id__": 5
5
"__id__": 5
6
},
},
{
{
"__id__": 5
7
"__id__": 5
8
}
}
],
],
"_active": true,
"_active": true,
...
@@ -1848,13 +1880,13 @@
...
@@ -1848,13 +1880,13 @@
"_name": "go_1",
"_name": "go_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
6
"__id__": 4
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1910,7 +1942,7 @@
...
@@ -1910,7 +1942,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 4
5
"__id__": 4
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -1938,13 +1970,13 @@
...
@@ -1938,13 +1970,13 @@
"_name": "black",
"_name": "black",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
8
"__id__": 4
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2000,7 +2032,7 @@
...
@@ -2000,7 +2032,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 4
7
"__id__": 4
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2028,13 +2060,13 @@
...
@@ -2028,13 +2060,13 @@
"_name": "go_3",
"_name": "go_3",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
0
"__id__": 5
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2090,7 +2122,7 @@
...
@@ -2090,7 +2122,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
49
"__id__":
50
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2118,13 +2150,13 @@
...
@@ -2118,13 +2150,13 @@
"_name": "go_2",
"_name": "go_2",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
2
"__id__": 5
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2180,7 +2212,7 @@
...
@@ -2180,7 +2212,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 5
1
"__id__": 5
2
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2208,13 +2240,13 @@
...
@@ -2208,13 +2240,13 @@
"_name": "start_title",
"_name": "start_title",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
4
"__id__": 5
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2270,7 +2302,7 @@
...
@@ -2270,7 +2302,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 5
3
"__id__": 5
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2298,13 +2330,13 @@
...
@@ -2298,13 +2330,13 @@
"_name": "go_0",
"_name": "go_0",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
6
"__id__": 5
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2360,7 +2392,7 @@
...
@@ -2360,7 +2392,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 5
5
"__id__": 5
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2388,13 +2420,13 @@
...
@@ -2388,13 +2420,13 @@
"_name": "light",
"_name": "light",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
8
"__id__": 5
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2450,7 +2482,7 @@
...
@@ -2450,7 +2482,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 5
7
"__id__": 5
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2478,11 +2510,11 @@
...
@@ -2478,11 +2510,11 @@
"_name": "font",
"_name": "font",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
3
"__id__": 4
4
},
},
"_children": [
"_children": [
{
{
"__id__": 6
0
"__id__": 6
1
}
}
],
],
"_active": true,
"_active": true,
...
@@ -2540,13 +2572,13 @@
...
@@ -2540,13 +2572,13 @@
"_name": "GOTHICB_1",
"_name": "GOTHICB_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
59
"__id__":
60
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
1
"__id__": 6
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2602,7 +2634,7 @@
...
@@ -2602,7 +2634,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
0
"__id__": 6
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -2637,17 +2669,17 @@
...
@@ -2637,17 +2669,17 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
3
"__id__": 4
4
},
},
"_children": [
"_children": [
{
{
"__id__": 6
3
"__id__": 6
4
},
},
{
{
"__id__": 6
5
"__id__": 6
6
},
},
{
{
"__id__": 6
7
"__id__": 6
8
}
}
],
],
"_active": true,
"_active": true,
...
@@ -2705,13 +2737,13 @@
...
@@ -2705,13 +2737,13 @@
"_name": "goodjob",
"_name": "goodjob",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
2
"__id__": 6
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
4
"__id__": 6
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2767,7 +2799,7 @@
...
@@ -2767,7 +2799,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
3
"__id__": 6
4
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -2786,13 +2818,13 @@
...
@@ -2786,13 +2818,13 @@
"_name": "ready",
"_name": "ready",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
2
"__id__": 6
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
6
"__id__": 6
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2848,7 +2880,7 @@
...
@@ -2848,7 +2880,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
5
"__id__": 6
6
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -2867,13 +2899,13 @@
...
@@ -2867,13 +2899,13 @@
"_name": "go",
"_name": "go",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
2
"__id__": 6
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
8
"__id__": 6
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2929,7 +2961,7 @@
...
@@ -2929,7 +2961,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
7
"__id__": 6
8
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -2998,7 +3030,7 @@
...
@@ -2998,7 +3030,7 @@
"baseWidth": 1280,
"baseWidth": 1280,
"baseHeight": 940,
"baseHeight": 940,
"videoControlBar": {
"videoControlBar": {
"__id__": 1
4
"__id__": 1
5
},
},
"_id": "7akLvWOt5IlbhsZJIcu0P1"
"_id": "7akLvWOt5IlbhsZJIcu0P1"
}
}
...
...
assets/MRBR_video/scene/MRBR_video.js
View file @
bb6a3fd4
...
@@ -512,7 +512,7 @@ cc.Class({
...
@@ -512,7 +512,7 @@ cc.Class({
console
.
log
(
"
in addServerListener
"
);
console
.
log
(
"
in addServerListener
"
);
const
c
=
window
.
courseware
;
const
c
=
window
.
courseware
;
//
this.loadEnd();
this
.
loadEnd
();
if
(
!
c
)
{
if
(
!
c
)
{
return
;
return
;
}
}
...
@@ -782,10 +782,11 @@ cc.Class({
...
@@ -782,10 +782,11 @@ cc.Class({
},
},
// 设置视频背景
// 设置视频背景
initVideoBg
(
width
,
height
)
{
initVideoBg
(
width
,
height
,
scale
)
{
const
maskNode
=
cc
.
find
(
'
Canvas/video_bg
'
).
getComponent
(
cc
.
Mask
);
console
.
log
(
"
视频尺寸
"
,
width
,
height
,
scale
);
maskNode
.
width
=
width
;
const
bgNode
=
cc
.
find
(
'
Canvas/video_bg
'
)
maskNode
.
height
=
height
;
bgNode
.
width
=
width
*
scale
;
bgNode
.
height
=
height
*
scale
;
},
},
getVideoUrl
(
callback
)
{
getVideoUrl
(
callback
)
{
...
@@ -1054,22 +1055,24 @@ cc.Class({
...
@@ -1054,22 +1055,24 @@ cc.Class({
console
.
log
(
"
in initVideoRemote url:
"
,
url
);
console
.
log
(
"
in initVideoRemote url:
"
,
url
);
const
videoConfigSize
=
this
.
data
.
videoType
.
s
o
lit
(
'
_
'
);
const
videoConfigSize
=
this
.
data
.
videoType
.
s
p
lit
(
'
_
'
);
let
videoSizeW
=
1920
;
let
videoSizeW
=
1920
;
let
videoSizeH
=
1080
;
let
videoSizeH
=
1080
;
if
(
videoConfigSize
.
length
==
2
&&
!
isNaN
(
Number
(
videoConfigSize
[
0
]))
&&
!
isNaN
(
Number
(
videoConfigSize
[
1
])))
{
if
(
videoConfigSize
.
length
==
2
&&
!
isNaN
(
Number
(
videoConfigSize
[
0
]))
&&
!
isNaN
(
Number
(
videoConfigSize
[
1
])))
{
videoSizeW
=
Number
(
videoConfigSize
[
0
]);
videoSizeW
=
Number
(
videoConfigSize
[
0
]);
videoSizeH
=
Number
(
videoConfigSize
[
1
]);
videoSizeH
=
Number
(
videoConfigSize
[
1
]);
}
}
this
.
initVideoBg
(
videoSizeW
,
videoSizeH
);
const
scale
=
this
.
canvas
.
height
/
videoSizeH
;
this
.
initVideoBg
(
videoSizeW
,
videoSizeH
,
scale
);
const
videoRemoteNode
=
new
cc
.
Node
();
const
videoRemoteNode
=
new
cc
.
Node
();
videoRemoteNode
.
width
=
videoSizeW
;
videoRemoteNode
.
width
=
videoSizeW
;
videoRemoteNode
.
height
=
videoSizeH
;
videoRemoteNode
.
height
=
videoSizeH
;
videoRemoteNode
.
parent
=
this
.
canvas
;
videoRemoteNode
.
parent
=
this
.
canvas
;
// videoRemoteNode.y = -this.canvas.height * 1.5;
// videoRemoteNode.y = -this.canvas.height * 1.5;
videoRemoteNode
.
scale
=
this
.
canvas
.
height
/
videoSizeH
;
videoRemoteNode
.
scale
=
scale
;
const
video
=
videoRemoteNode
.
addComponent
(
cc
.
VideoPlayer
);
const
video
=
videoRemoteNode
.
addComponent
(
cc
.
VideoPlayer
);
video
.
resourceType
=
cc
.
VideoPlayer
.
ResourceType
.
REMOTE
;
video
.
resourceType
=
cc
.
VideoPlayer
.
ResourceType
.
REMOTE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment