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
4b1cb842
Commit
4b1cb842
authored
Oct 31, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 跳转
parent
77b49669
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
360 additions
and
72 deletions
+360
-72
goodjob.meta
assets/MRBR_video/dragonBones/goodjob.meta
+12
-0
徽章动画_ske.json
assets/MRBR_video/dragonBones/goodjob/徽章动画_ske.json
+0
-0
徽章动画_ske.json.meta
assets/MRBR_video/dragonBones/goodjob/徽章动画_ske.json.meta
+6
-0
徽章动画_tex.json
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.json
+2
-0
徽章动画_tex.json.meta
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.json.meta
+6
-0
徽章动画_tex.png
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.png
+0
-0
徽章动画_tex.png.meta
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.png.meta
+37
-0
MRBR_video.fire
assets/MRBR_video/scene/MRBR_video.fire
+154
-49
MRBR_video.js
assets/MRBR_video/scene/MRBR_video.js
+138
-23
form.component.html
form/src/app/form/form.component.html
+5
-0
No files found.
assets/MRBR_video/dragonBones/goodjob.meta
0 → 100644
View file @
4b1cb842
{
"ver": "1.1.2",
"uuid": "7248bbf0-06a3-4a69-b9e7-f057b4461178",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/MRBR_video/dragonBones/goodjob/徽章动画_ske.json
0 → 100644
View file @
4b1cb842
This diff is collapsed.
Click to expand it.
assets/MRBR_video/dragonBones/goodjob/徽章动画_ske.json.meta
0 → 100644
View file @
4b1cb842
{
"ver": "1.0.1",
"uuid": "9d28773b-d69f-4fc8-b675-16fde99a4712",
"subMetas": {}
}
\ No newline at end of file
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.json
0 → 100644
View file @
4b1cb842
{
"name"
:
"徽章动画"
,
"height"
:
1024
,
"SubTexture"
:[{
"name"
:
"bg"
,
"x"
:
1009
,
"height"
:
10
,
"y"
:
505
,
"width"
:
10
},{
"name"
:
"图层_2"
,
"x"
:
1
,
"height"
:
700
,
"y"
:
1
,
"width"
:
700
},{
"name"
:
"G"
,
"x"
:
875
,
"height"
:
107
,
"y"
:
505
,
"width"
:
89
},{
"name"
:
"o"
,
"x"
:
948
,
"height"
:
84
,
"y"
:
832
,
"width"
:
70
},{
"name"
:
"o_0"
,
"x"
:
953
,
"height"
:
84
,
"y"
:
614
,
"width"
:
70
},{
"name"
:
"d"
,
"x"
:
875
,
"height"
:
107
,
"y"
:
723
,
"width"
:
76
},{
"name"
:
"j"
,
"x"
:
953
,
"height"
:
119
,
"y"
:
700
,
"width"
:
44
},{
"name"
:
"o_1"
,
"x"
:
875
,
"height"
:
84
,
"y"
:
832
,
"width"
:
71
},{
"name"
:
"b"
,
"x"
:
875
,
"height"
:
107
,
"y"
:
614
,
"width"
:
76
},{
"name"
:
"左侧领结"
,
"x"
:
703
,
"height"
:
175
,
"y"
:
505
,
"width"
:
170
},{
"name"
:
"右侧领结"
,
"x"
:
703
,
"height"
:
174
,
"y"
:
682
,
"width"
:
170
},{
"name"
:
"徽章"
,
"x"
:
703
,
"height"
:
250
,
"y"
:
1
,
"width"
:
274
},{
"name"
:
"星星1"
,
"x"
:
1
,
"height"
:
66
,
"y"
:
918
,
"width"
:
66
},{
"name"
:
"星星2"
,
"x"
:
966
,
"height"
:
41
,
"y"
:
505
,
"width"
:
41
},{
"name"
:
"徽章1"
,
"x"
:
703
,
"height"
:
250
,
"y"
:
253
,
"width"
:
274
}],
"imagePath"
:
"徽章动画_tex.png"
,
"width"
:
1024
}
\ No newline at end of file
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.json.meta
0 → 100644
View file @
4b1cb842
{
"ver": "1.0.1",
"uuid": "f615b7c8-a715-4f8d-88f6-c6b0765ede74",
"subMetas": {}
}
\ No newline at end of file
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.png
0 → 100644
View file @
4b1cb842
422 KB
assets/MRBR_video/dragonBones/goodjob/徽章动画_tex.png.meta
0 → 100644
View file @
4b1cb842
{
"ver": "2.3.5",
"uuid": "ad6b2c47-bec6-41c0-8fd8-7dca5c5a597a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"徽章动画_tex": {
"ver": "1.0.4",
"uuid": "25c6fcbf-e76b-4a52-bff2-8f2f1dea945a",
"rawTextureUuid": "ad6b2c47-bec6-41c0-8fd8-7dca5c5a597a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 19.5,
"trimX": 1,
"trimY": 1,
"width": 1022,
"height": 983,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/MRBR_video/scene/MRBR_video.fire
View file @
4b1cb842
...
@@ -76,18 +76,21 @@
...
@@ -76,18 +76,21 @@
},
},
{
{
"__id__": 8
"__id__": 8
},
{
"__id__": 10
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
4
"__id__": 3
6
},
},
{
{
"__id__": 3
5
"__id__": 3
7
},
},
{
{
"__id__": 3
6
"__id__": 3
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -368,6 +371,108 @@
...
@@ -368,6 +371,108 @@
"_N$enableBatch": false,
"_N$enableBatch": false,
"_id": "b5ZWY5+bFE3YNqJ+CrU6nq"
"_id": "b5ZWY5+bFE3YNqJ+CrU6nq"
},
},
{
"__type__": "cc.Node",
"_name": "goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 700,
"height": 700
},
"_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": "f23hV9mnBBYZ1OXVQg3VZs"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "9d28773b-d69f-4fc8-b675-16fde99a4712#f615b7c8-a715-4f8d-88f6-c6b0765ede74",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "9d28773b-d69f-4fc8-b675-16fde99a4712"
},
"_N$dragonAtlasAsset": {
"__uuid__": "f615b7c8-a715-4f8d-88f6-c6b0765ede74"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "66t644bDFDb73XispqPIHj"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "res",
"_name": "res",
...
@@ -377,13 +482,13 @@
...
@@ -377,13 +482,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
9
"__id__":
11
},
},
{
{
"__id__": 2
4
"__id__": 2
6
},
},
{
{
"__id__": 2
7
"__id__": 2
9
}
}
],
],
"_active": false,
"_active": false,
...
@@ -441,12 +546,9 @@
...
@@ -441,12 +546,9 @@
"_name": "img",
"_name": "img",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
8
"__id__":
10
},
},
"_children": [
"_children": [
{
"__id__": 10
},
{
{
"__id__": 12
"__id__": 12
},
},
...
@@ -464,6 +566,9 @@
...
@@ -464,6 +566,9 @@
},
},
{
{
"__id__": 22
"__id__": 22
},
{
"__id__": 24
}
}
],
],
"_active": true,
"_active": true,
...
@@ -521,13 +626,13 @@
...
@@ -521,13 +626,13 @@
"_name": "go_1",
"_name": "go_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
1
"__id__": 1
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -583,7 +688,7 @@
...
@@ -583,7 +688,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
0
"__id__": 1
2
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -611,13 +716,13 @@
...
@@ -611,13 +716,13 @@
"_name": "black",
"_name": "black",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
3
"__id__": 1
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -673,7 +778,7 @@
...
@@ -673,7 +778,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
2
"__id__": 1
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -701,13 +806,13 @@
...
@@ -701,13 +806,13 @@
"_name": "go_3",
"_name": "go_3",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
5
"__id__": 1
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -763,7 +868,7 @@
...
@@ -763,7 +868,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
4
"__id__": 1
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -791,13 +896,13 @@
...
@@ -791,13 +896,13 @@
"_name": "go_2",
"_name": "go_2",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
7
"__id__": 1
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -853,7 +958,7 @@
...
@@ -853,7 +958,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
6
"__id__": 1
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -881,13 +986,13 @@
...
@@ -881,13 +986,13 @@
"_name": "start_title",
"_name": "start_title",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
19
"__id__":
21
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -943,7 +1048,7 @@
...
@@ -943,7 +1048,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
18
"__id__":
20
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -971,13 +1076,13 @@
...
@@ -971,13 +1076,13 @@
"_name": "go_0",
"_name": "go_0",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
1
"__id__": 2
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1033,7 +1138,7 @@
...
@@ -1033,7 +1138,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
0
"__id__": 2
2
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -1061,13 +1166,13 @@
...
@@ -1061,13 +1166,13 @@
"_name": "light",
"_name": "light",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
11
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
3
"__id__": 2
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1123,7 +1228,7 @@
...
@@ -1123,7 +1228,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
2
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -1151,11 +1256,11 @@
...
@@ -1151,11 +1256,11 @@
"_name": "font",
"_name": "font",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
8
"__id__":
10
},
},
"_children": [
"_children": [
{
{
"__id__": 2
5
"__id__": 2
7
}
}
],
],
"_active": true,
"_active": true,
...
@@ -1213,13 +1318,13 @@
...
@@ -1213,13 +1318,13 @@
"_name": "GOTHICB_1",
"_name": "GOTHICB_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
4
"__id__": 2
6
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
6
"__id__": 2
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1275,7 +1380,7 @@
...
@@ -1275,7 +1380,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
5
"__id__": 2
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1310,17 +1415,17 @@
...
@@ -1310,17 +1415,17 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
8
"__id__":
10
},
},
"_children": [
"_children": [
{
"__id__": 28
},
{
{
"__id__": 30
"__id__": 30
},
},
{
{
"__id__": 32
"__id__": 32
},
{
"__id__": 34
}
}
],
],
"_active": true,
"_active": true,
...
@@ -1378,13 +1483,13 @@
...
@@ -1378,13 +1483,13 @@
"_name": "goodjob",
"_name": "goodjob",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
7
"__id__": 2
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
29
"__id__":
31
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1440,7 +1545,7 @@
...
@@ -1440,7 +1545,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
28
"__id__":
30
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -1459,13 +1564,13 @@
...
@@ -1459,13 +1564,13 @@
"_name": "ready",
"_name": "ready",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
7
"__id__": 2
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
1
"__id__": 3
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1521,7 +1626,7 @@
...
@@ -1521,7 +1626,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
0
"__id__": 3
2
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -1540,13 +1645,13 @@
...
@@ -1540,13 +1645,13 @@
"_name": "go",
"_name": "go",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
7
"__id__": 2
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
3
"__id__": 3
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1602,7 +1707,7 @@
...
@@ -1602,7 +1707,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
2
"__id__": 3
4
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
assets/MRBR_video/scene/MRBR_video.js
View file @
4b1cb842
...
@@ -335,19 +335,19 @@ cc.Class({
...
@@ -335,19 +335,19 @@ cc.Class({
checkIsFirst
()
{
checkIsFirst
()
{
return
tru
e
;
return
fals
e
;
},
},
checkIsLast
()
{
checkIsLast
()
{
return
fals
e
;
return
tru
e
;
},
},
checkPlayTimes
()
{
checkPlayTimes
()
{
return
0
;
return
1
;
},
},
getJumpData
()
{
getJumpData
()
{
return
//{step: 2
};
return
{
step
:
1
};
},
},
maskSpr
:
null
,
maskSpr
:
null
,
...
@@ -394,9 +394,11 @@ initMask() {
...
@@ -394,9 +394,11 @@ initMask() {
isFirstVideoPlayEnd
:
null
,
isFirstVideoPlayEnd
:
null
,
isLocal
:
null
,
initData
()
{
initData
()
{
this
.
isLocal
=
true
;
this
.
quesIndex
=
0
;
this
.
quesIndex
=
0
;
this
.
curEndTime
=
-
1
;
this
.
curEndTime
=
-
1
;
...
@@ -404,7 +406,7 @@ initMask() {
...
@@ -404,7 +406,7 @@ initMask() {
if
(
this
.
data
.
jumpTime
)
{
if
(
this
.
data
.
jumpTime
)
{
this
.
initQuesIndex
(
);
this
.
jumpTime
=
Number
(
this
.
data
.
jumpTime
);
}
}
...
@@ -412,10 +414,13 @@ initMask() {
...
@@ -412,10 +414,13 @@ initMask() {
this
.
initAudioEffect
();
this
.
initAudioEffect
();
},
},
initQuesIndex
()
{
resetQuesIndex
()
{
this
.
quesIndex
=
-
1
;
for
(
let
i
=
0
;
i
<
this
.
data
.
quesArr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data
.
quesArr
.
length
;
i
++
)
{
const
checkTime
=
this
.
data
.
quesArr
[
i
].
ques_start
;
const
checkTime
=
this
.
data
.
quesArr
[
i
].
ques_start
;
if
(
Number
(
this
.
data
.
jumpTime
)
>
Number
(
checkTime
))
{
if
(
Number
(
this
.
jumpTime
)
>=
Number
(
checkTime
))
{
this
.
quesIndex
=
i
;
this
.
quesIndex
=
i
;
}
else
{
}
else
{
return
;
return
;
...
@@ -502,12 +507,7 @@ initMask() {
...
@@ -502,12 +507,7 @@ initMask() {
this
.
initHotZone
();
this
.
initHotZone
();
if
(
this
.
isFirst
)
{
this
.
initStartView
();
return
;
}
},
},
...
@@ -864,7 +864,7 @@ showStartLight() {
...
@@ -864,7 +864,7 @@ showStartLight() {
}
}
},
},
startQuesVideo
()
{
startQuesVideo
(
currentTime
=
null
)
{
console
.
log
(
'
in startQuesVideo
'
)
console
.
log
(
'
in startQuesVideo
'
)
this
.
wrongTimes
=
0
;
this
.
wrongTimes
=
0
;
...
@@ -874,8 +874,19 @@ showStartLight() {
...
@@ -874,8 +874,19 @@ showStartLight() {
console
.
log
(
"
this.curQues:
"
,
this
.
curQues
);
console
.
log
(
"
this.curQues:
"
,
this
.
curQues
);
video
.
currentTime
=
Number
(
this
.
curQues
.
ques_start
);
if
(
currentTime
)
{
this
.
curEndTime
=
Number
(
this
.
curQues
.
ques_end
);
video
.
currentTime
=
currentTime
;
}
else
{
video
.
currentTime
=
Number
(
this
.
curQues
.
ques_start
);
}
if
(
this
.
playTimes
>
0
)
{
if
(
this
.
curQues
)
{
this
.
curEndTime
=
Number
(
this
.
curQues
.
ques_end
);
}
}
delayCall
(
0.01
,
()
=>
{
delayCall
(
0.01
,
()
=>
{
video
.
play
();
video
.
play
();
...
@@ -1083,11 +1094,9 @@ showStartLight() {
...
@@ -1083,11 +1094,9 @@ showStartLight() {
video
.
node
.
isLoadEnd
=
true
;
video
.
node
.
isLoadEnd
=
true
;
video
.
pause
();
video
.
pause
();
// this.startQuesVideo
();
this
.
videoLoadEnd
();
if
(
this
.
data
.
jumpTime
)
{
// this.startQuesVideo();
video
.
currentTime
=
Number
(
this
.
data
.
jumpTime
);
}
}
else
{
}
else
{
checkIsPlaying
();
checkIsPlaying
();
...
@@ -1098,13 +1107,49 @@ showStartLight() {
...
@@ -1098,13 +1107,49 @@ showStartLight() {
video
.
node
.
on
(
'
completed
'
,
()
=>
{
video
.
node
.
on
(
'
completed
'
,
()
=>
{
console
.
log
(
'
in completed!!!!
'
);
console
.
log
(
'
in completed!!!!
'
);
this
.
curVideoPlayEnd
();
if
(
this
.
isLast
&&
this
.
playTimes
>
0
)
{
this
.
showGoodjob
();
}
else
{
this
.
showMask
(()
=>
{
if
(
!
this
.
isLocal
)
{
callMiddleLayerFunction
(
'
PSQS_play_animate_over
'
,
null
,
()
=>
{})
}
})
}
// this.curVideoPlayEnd();
})
})
return
video
.
node
;
return
video
.
node
;
},
},
showGoodjob
()
{
const
goodjob
=
cc
.
find
(
"
Canvas/goodjob
"
);
goodjob
.
zIndex
=
15
;
goodjob
.
active
=
true
;
goodjob
.
scale
=
this
.
_mapScaleMin
;
const
dragonDisplay
=
goodjob
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
playAnimation
(
'
newAnimation
'
,
1
);
playAudio
(
this
.
goodjobClip
,
async
()
=>
{
await
asyncDelay
(
3
);
console
.
log
(
'
end .....
'
);
this
.
showMask
(()
=>
{
if
(
!
this
.
isLocal
)
{
callMiddleLayerFunction
(
'
PSQS_play_animate_over
'
,
null
,
()
=>
{})
}
})
});
},
getColorRect
(
w
,
h
)
{
getColorRect
(
w
,
h
)
{
const
node
=
new
cc
.
Node
();
const
node
=
new
cc
.
Node
();
const
ctx
=
node
.
addComponent
(
cc
.
Graphics
);
const
ctx
=
node
.
addComponent
(
cc
.
Graphics
);
...
@@ -1114,7 +1159,58 @@ showStartLight() {
...
@@ -1114,7 +1159,58 @@ showStartLight() {
return
node
;
return
node
;
},
},
videoLoadEnd
()
{
if
(
this
.
jumpData
)
{
this
.
setJumpTime
();
}
if
(
this
.
jumpTime
)
{
this
.
resetQuesIndex
();
this
.
initCurQues
();
}
else
if
(
this
.
isFirst
)
{
this
.
initStartView
();
return
;
}
this
.
startQuesVideo
(
this
.
jumpTime
);
},
setJumpTime
()
{
let
isFind
=
false
;
for
(
let
i
=
0
;
i
<
this
.
data
.
quesArr
.
length
;
i
++
)
{
const
id
=
i
;
if
(
id
==
this
.
jumpData
.
step
)
{
const
quesData
=
this
.
data
.
quesArr
[
i
];
this
.
jumpTime
=
Number
(
quesData
.
ques_start
);
isFind
=
true
;
break
;
}
}
if
(
!
isFind
)
{
const
lastQuesData
=
this
.
data
.
quesArr
[
this
.
data
.
quesArr
.
length
-
1
];
this
.
jumpTime
=
lastQuesData
.
ques_end
;
}
},
curVideoPlayEnd
()
{
curVideoPlayEnd
()
{
if
(
this
.
playTimes
==
0
)
{
return
;
}
switch
(
this
.
video
.
node
.
name
)
{
switch
(
this
.
video
.
node
.
name
)
{
case
"
ques_video
"
:
case
"
ques_video
"
:
this
.
startWaitVideo
();
this
.
startWaitVideo
();
...
@@ -1140,6 +1236,17 @@ showStartLight() {
...
@@ -1140,6 +1236,17 @@ showStartLight() {
},
},
showMask
(
cb
)
{
const
mask
=
this
.
maskSpr
;
mask
.
opacity
=
0
;
cc
.
tween
(
mask
)
.
to
(
0.2
,
{
opacity
:
255
},
{
easing
:
"
sineIn
"
})
.
call
(()
=>
{
cb
&&
cb
();
})
.
start
();
},
...
@@ -2552,7 +2659,7 @@ showStartLight() {
...
@@ -2552,7 +2659,7 @@ showStartLight() {
rectNode
.
anchorX
=
rectNode
.
anchorY
=
0
;
rectNode
.
anchorX
=
rectNode
.
anchorY
=
0
;
if
(
quesData
.
bgItem
.
isShowDebugLine
||
t
rue
)
{
if
(
quesData
.
bgItem
.
isShowDebugLine
||
t
his
.
data
.
isDebug
)
{
ctx
.
rect
(
0
,
0
,
rectNode
.
width
,
rectNode
.
height
);
ctx
.
rect
(
0
,
0
,
rectNode
.
width
,
rectNode
.
height
);
}
}
ctx
.
stroke
();
ctx
.
stroke
();
...
@@ -2592,8 +2699,16 @@ showStartLight() {
...
@@ -2592,8 +2699,16 @@ showStartLight() {
// this.startWrongVideo();
// this.startWrongVideo();
// }
// }
const
id
=
data
.
index
;
bg
.
active
=
false
;
bg
.
active
=
false
;
this
.
hand
.
active
=
false
;
this
.
hand
.
active
=
false
;
this
.
showMask
(()
=>
{
if
(
!
this
.
isLocal
)
{
callMiddleLayerFunction
(
'
PSQS_jump_to_question
'
,
{
step
:
id
},
null
)
}
})
});
});
return
rectNode
;
return
rectNode
;
...
...
form/src/app/form/form.component.html
View file @
4b1cb842
...
@@ -103,6 +103,11 @@
...
@@ -103,6 +103,11 @@
<div
style=
"margin-top: 30px"
>
<div
style=
"margin-top: 30px"
>
<span>
快速跳转到:
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
jumpTime
"
(
blur
)="
save
()"
style=
"width: 100px;"
>
秒
<span>
快速跳转到:
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
jumpTime
"
(
blur
)="
save
()"
style=
"width: 100px;"
>
秒
</div>
</div>
<div
style=
"margin-top: 30px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;"
>
<label
nz-checkbox
[(
ngModel
)]="
item
.
isDebug
"
(
ngModelChange
)="
save
()"
>
调试模式
</label>
</div>
</div>
</div>
...
...
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