Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg29_museum
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
dg29_museum
Commits
dd07eea8
Commit
dd07eea8
authored
Dec 22, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频播放完成
parent
4e0035fe
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
476 additions
and
325 deletions
+476
-325
dg18_tianci.fire
assets/dg18_tianci/scene/dg18_tianci.fire
+415
-288
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+49
-33
dg18_tianci_xiaodi.ts
assets/dg18_tianci/scene/dg18_tianci_xiaodi.ts
+8
-0
pg_dg18_tianci.ts
assets/dg18_tianci/scene/pg_dg18_tianci.ts
+1
-1
form.component.html
form/src/app/form/form.component.html
+2
-2
form.component.ts
form/src/app/form/form.component.ts
+1
-1
No files found.
assets/dg18_tianci/scene/dg18_tianci.fire
View file @
dd07eea8
...
...
@@ -81,40 +81,31 @@
"__id__": 9
},
{
"__id__": 25
},
{
"__id__": 27
},
{
"__id__": 31
},
{
"__id__": 33
"__id__": 23
},
{
"__id__": 5
6
"__id__": 5
9
},
{
"__id__": 6
5
"__id__": 6
8
},
{
"__id__":
67
"__id__":
70
},
{
"__id__":
87
"__id__":
90
}
],
"_active": true,
"_components": [
{
"__id__": 1
07
"__id__": 1
10
},
{
"__id__": 1
08
"__id__": 1
11
},
{
"__id__": 1
09
"__id__": 1
12
}
],
"_prefab": null,
...
...
@@ -458,18 +449,15 @@
},
{
"__id__": 18
},
{
"__id__": 21
}
],
"_active": true,
"_components": [
{
"__id__": 2
3
"__id__": 2
1
},
{
"__id__": 2
4
"__id__": 2
2
}
],
"_prefab": null,
...
...
@@ -986,100 +974,6 @@
"_originalHeight": 0,
"_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",
"_name": "",
...
...
@@ -1141,16 +1035,94 @@
},
{
"__type__": "cc.Node",
"_name": "
question_img
",
"_name": "
layout_game
",
"_objFlags": 0,
"_parent": {
"__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": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1206,7 +1178,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1238,17 +1210,17 @@
"_name": "img_kuang",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 2
3
},
"_children": [
{
"__id__": 2
8
"__id__": 2
7
}
],
"_active": true,
"_components": [
{
"__id__":
30
"__id__":
29
}
],
"_prefab": null,
...
...
@@ -1304,13 +1276,13 @@
"_name": "img_deng",
"_objFlags": 0,
"_parent": {
"__id__": 2
7
"__id__": 2
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
9
"__id__": 2
8
}
],
"_prefab": null,
...
...
@@ -1366,7 +1338,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
8
"__id__": 2
7
},
"_enabled": true,
"_materials": [
...
...
@@ -1398,7 +1370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1430,13 +1402,13 @@
"_name": "label_title",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 2
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
2
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1492,7 +1464,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
1
"__id__": 3
0
},
"_enabled": true,
"_materials": [
...
...
@@ -1520,32 +1492,130 @@
"_N$cacheMode": 0,
"_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",
"_name": "layout_record",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 2
3
},
"_children": [
{
"__id__": 3
4
"__id__": 3
5
},
{
"__id__":
39
"__id__":
40
},
{
"__id__": 4
6
"__id__": 4
7
},
{
"__id__": 4
8
"__id__": 4
9
},
{
"__id__": 5
0
"__id__": 5
1
}
],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 57
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -1599,14 +1669,14 @@
"_name": "btn_restart",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [
{
"__id__": 3
5
"__id__": 3
6
},
{
"__id__": 3
7
"__id__": 3
8
}
],
"_active": true,
...
...
@@ -1664,13 +1734,13 @@
"_name": "btn_restart",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
6
"__id__": 3
7
}
],
"_prefab": null,
...
...
@@ -1726,7 +1796,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1758,13 +1828,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
8
"__id__": 3
9
}
],
"_prefab": null,
...
...
@@ -1820,7 +1890,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
8
},
"_enabled": true,
"_materials": [
...
...
@@ -1853,20 +1923,20 @@
"_name": "btn_vioce",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [
{
"__id__": 4
0
"__id__": 4
1
},
{
"__id__": 4
2
"__id__": 4
3
}
],
"_active": true,
"_components": [
{
"__id__": 4
5
"__id__": 4
6
}
],
"_prefab": null,
...
...
@@ -1922,13 +1992,13 @@
"_name": "img_stop",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
40
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
1
"__id__": 4
2
}
],
"_prefab": null,
...
...
@@ -1984,7 +2054,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
0
"__id__": 4
1
},
"_enabled": true,
"_materials": [
...
...
@@ -2016,16 +2086,16 @@
"_name": "img_ing",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
40
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
3
"__id__": 4
4
},
{
"__id__": 4
4
"__id__": 4
5
}
],
"_prefab": null,
...
...
@@ -2081,7 +2151,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
3
},
"_enabled": true,
"_materials": [
...
...
@@ -2113,7 +2183,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
3
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2174,7 +2244,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 4
2
"__id__": 4
3
},
"_id": "ecrPqC/gZDobH2MQs86M5z"
},
...
...
@@ -2183,7 +2253,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
39
"__id__":
40
},
"_enabled": true,
"_materials": [
...
...
@@ -2215,13 +2285,13 @@
"_name": "label_tip_wait",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 4
7
"__id__": 4
8
}
],
"_prefab": null,
...
...
@@ -2277,7 +2347,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
6
"__id__": 4
7
},
"_enabled": true,
"_materials": [
...
...
@@ -2310,13 +2380,13 @@
"_name": "label_tip_ing",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
49
"__id__":
50
}
],
"_prefab": null,
...
...
@@ -2372,7 +2442,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
8
"__id__": 4
9
},
"_enabled": true,
"_materials": [
...
...
@@ -2405,20 +2475,20 @@
"_name": "rich_content",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [
{
"__id__": 5
1
"__id__": 5
2
},
{
"__id__": 5
3
"__id__": 5
4
}
],
"_active": false,
"_components": [
{
"__id__": 5
5
"__id__": 5
6
}
],
"_prefab": null,
...
...
@@ -2474,13 +2544,13 @@
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 5
0
"__id__": 5
1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 5
2
"__id__": 5
3
}
],
"_prefab": null,
...
...
@@ -2537,7 +2607,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
1
"__id__": 5
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2570,13 +2640,13 @@
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 5
0
"__id__": 5
1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 5
4
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2633,7 +2703,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
3
"__id__": 5
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2662,25 +2732,79 @@
"_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": "",
"_objFlags": 0,
"node": {
"__id__":
50
"__id__":
23
},
"_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"
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 960,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "6czEKQ3xxNN6X4QGVJHIKQ"
},
{
"__type__": "cc.Node",
...
...
@@ -2691,19 +2815,19 @@
},
"_children": [
{
"__id__":
57
"__id__":
60
},
{
"__id__":
59
"__id__":
62
}
],
"_active": true,
"_components": [
{
"__id__": 6
3
"__id__": 6
6
},
{
"__id__": 6
4
"__id__": 6
7
}
],
"_prefab": null,
...
...
@@ -2759,13 +2883,13 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 5
6
"__id__": 5
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
58
"__id__":
61
}
],
"_prefab": null,
...
...
@@ -2821,7 +2945,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
57
"__id__":
60
},
"_enabled": true,
"_materials": [
...
...
@@ -2861,17 +2985,17 @@
"_name": "btn_go",
"_objFlags": 0,
"_parent": {
"__id__": 5
6
"__id__": 5
9
},
"_children": [
{
"__id__": 6
0
"__id__": 6
3
}
],
"_active": false,
"_components": [
{
"__id__": 6
2
"__id__": 6
5
}
],
"_prefab": null,
...
...
@@ -2927,13 +3051,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__":
59
"__id__":
62
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
1
"__id__": 6
4
}
],
"_prefab": null,
...
...
@@ -2989,7 +3113,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
0
"__id__": 6
3
},
"_enabled": true,
"_materials": [
...
...
@@ -3022,7 +3146,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
59
"__id__":
62
},
"_enabled": true,
"_materials": [
...
...
@@ -3054,11 +3178,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
9
},
"_enabled": true,
"aniRole": {
"__id__":
57
"__id__":
60
},
"_id": "e4RrOXSNJGd68Mq3UTYY0p"
},
...
...
@@ -3067,7 +3191,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
9
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3100,7 +3224,7 @@
"_active": false,
"_components": [
{
"__id__": 6
6
"__id__": 6
9
}
],
"_prefab": null,
...
...
@@ -3156,7 +3280,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
5
"__id__": 6
8
},
"_enabled": true,
"_materials": [
...
...
@@ -3192,7 +3316,7 @@
},
"_children": [
{
"__id__":
68
"__id__":
71
}
],
"_active": true,
...
...
@@ -3250,11 +3374,11 @@
"_name": "Controls",
"_objFlags": 0,
"_parent": {
"__id__":
67
"__id__":
70
},
"_children": [
{
"__id__":
69
"__id__":
72
}
],
"_active": true,
...
...
@@ -3312,32 +3436,32 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__":
68
"__id__":
71
},
"_children": [
{
"__id__": 7
0
"__id__": 7
3
},
{
"__id__": 7
4
"__id__": 7
7
},
{
"__id__": 7
6
"__id__": 7
9
},
{
"__id__":
78
"__id__":
81
},
{
"__id__": 8
2
"__id__": 8
5
}
],
"_active": true,
"_components": [
{
"__id__": 8
5
"__id__": 8
8
},
{
"__id__": 8
6
"__id__": 8
9
}
],
"_prefab": null,
...
...
@@ -3393,17 +3517,17 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
72
},
"_children": [
{
"__id__": 7
1
"__id__": 7
4
}
],
"_active": true,
"_components": [
{
"__id__": 7
3
"__id__": 7
6
}
],
"_prefab": null,
...
...
@@ -3459,13 +3583,13 @@
"_name": "bar_tag",
"_objFlags": 0,
"_parent": {
"__id__": 7
0
"__id__": 7
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
2
"__id__": 7
5
}
],
"_prefab": null,
...
...
@@ -3521,7 +3645,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
1
"__id__": 7
4
},
"_enabled": true,
"_materials": [
...
...
@@ -3553,7 +3677,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
3
},
"_enabled": true,
"_materials": [
...
...
@@ -3585,13 +3709,13 @@
"_name": "Play",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
5
"__id__": 7
8
}
],
"_prefab": null,
...
...
@@ -3647,7 +3771,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
4
"__id__": 7
7
},
"_enabled": true,
"_materials": [
...
...
@@ -3679,13 +3803,13 @@
"_name": "Pause",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
77
"__id__":
80
}
],
"_prefab": null,
...
...
@@ -3741,7 +3865,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
6
"__id__": 7
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3773,19 +3897,19 @@
"_name": "CurrentLabel",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
79
"__id__":
82
},
{
"__id__": 8
0
"__id__": 8
3
},
{
"__id__": 8
1
"__id__": 8
4
}
],
"_prefab": null,
...
...
@@ -3841,7 +3965,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
78
"__id__":
81
},
"_enabled": true,
"_materials": [
...
...
@@ -3874,7 +3998,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
78
"__id__":
81
},
"_enabled": false,
"_color": {
...
...
@@ -3892,7 +4016,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
78
"__id__":
81
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3919,16 +4043,16 @@
"_name": "TimeLabel",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
72
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
3
"__id__": 8
6
},
{
"__id__": 8
4
"__id__": 8
7
}
],
"_prefab": null,
...
...
@@ -3984,7 +4108,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
2
"__id__": 8
5
},
"_enabled": true,
"_materials": [
...
...
@@ -4017,7 +4141,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
2
"__id__": 8
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -4044,7 +4168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
69
"__id__":
72
},
"_enabled": true,
"_materials": [
...
...
@@ -4076,12 +4200,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
69
"__id__":
72
},
"_enabled": true,
"_N$totalLength": 1,
"_N$barSprite": {
"__id__": 7
3
"__id__": 7
6
},
"_N$mode": 2,
"_N$progress": 0,
...
...
@@ -4097,13 +4221,13 @@
},
"_children": [
{
"__id__":
88
"__id__":
91
},
{
"__id__": 9
1
"__id__": 9
4
},
{
"__id__": 9
2
"__id__": 9
5
}
],
"_active": false,
...
...
@@ -4161,11 +4285,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__":
87
"__id__":
90
},
"_children": [
{
"__id__":
89
"__id__":
92
}
],
"_active": true,
...
...
@@ -4223,13 +4347,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__":
88
"__id__":
91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
0
"__id__": 9
3
}
],
"_prefab": null,
...
...
@@ -4285,7 +4409,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
89
"__id__":
92
},
"_enabled": true,
"_materials": [
...
...
@@ -4320,7 +4444,7 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__":
87
"__id__":
90
},
"_children": [],
"_active": true,
...
...
@@ -4378,29 +4502,29 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__":
87
"__id__":
90
},
"_children": [
{
"__id__": 9
3
"__id__": 9
6
},
{
"__id__": 9
5
"__id__": 9
8
},
{
"__id__":
97
"__id__":
100
},
{
"__id__":
99
"__id__":
102
},
{
"__id__": 10
1
"__id__": 10
4
},
{
"__id__": 10
3
"__id__": 10
6
},
{
"__id__": 10
5
"__id__": 10
8
}
],
"_active": true,
...
...
@@ -4458,13 +4582,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
4
"__id__": 9
7
}
],
"_prefab": null,
...
...
@@ -4520,7 +4644,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
3
"__id__": 9
6
},
"_enabled": true,
"_clip": {
...
...
@@ -4539,13 +4663,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
6
"__id__": 9
9
}
],
"_prefab": null,
...
...
@@ -4601,7 +4725,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
5
"__id__": 9
8
},
"_enabled": true,
"_clip": {
...
...
@@ -4620,13 +4744,13 @@
"_name": "bettery",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
98
"__id__":
101
}
],
"_prefab": null,
...
...
@@ -4682,7 +4806,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
97
"__id__":
100
},
"_enabled": true,
"_clip": {
...
...
@@ -4701,13 +4825,13 @@
"_name": "error",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
0
"__id__": 10
3
}
],
"_prefab": null,
...
...
@@ -4763,7 +4887,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
99
"__id__":
102
},
"_enabled": true,
"_clip": {
...
...
@@ -4782,13 +4906,13 @@
"_name": "bgm",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
2
"__id__": 10
5
}
],
"_prefab": null,
...
...
@@ -4844,7 +4968,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
4
},
"_enabled": true,
"_clip": {
...
...
@@ -4863,13 +4987,13 @@
"_name": "opendoor",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
4
"__id__": 10
7
}
],
"_prefab": null,
...
...
@@ -4925,7 +5049,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
3
"__id__": 10
6
},
"_enabled": true,
"_clip": {
...
...
@@ -4944,13 +5068,13 @@
"_name": "light",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
6
"__id__": 10
9
}
],
"_prefab": null,
...
...
@@ -5006,7 +5130,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
5
"__id__": 10
8
},
"_enabled": true,
"_clip": {
...
...
@@ -5073,52 +5197,55 @@
},
"_enabled": true,
"xiaodi": {
"__id__": 6
3
"__id__": 6
6
},
"question_img": {
"__id__": 2
5
"__id__": 2
4
},
"label_title": {
"__id__": 3
1
"__id__": 3
0
},
"btn_vioce": {
"__id__":
39
"__id__":
40
},
"btn_restart": {
"__id__": 3
4
"__id__": 3
5
},
"label_tip_wait": {
"__id__": 4
6
"__id__": 4
7
},
"label_tip_ing": {
"__id__": 4
8
"__id__": 4
9
},
"rich_content": {
"__id__": 5
0
"__id__": 5
1
},
"btn_go": {
"__id__":
59
"__id__":
62
},
"barTag": {
"__id__": 7
1
"__id__": 7
4
},
"ProgressBar": {
"__id__":
69
"__id__":
72
},
"videoPlayer": {
"__id__": 6
},
"currentTimeLabel": {
"__id__": 79
"__id__": 82
},
"layout_video": {
"__id__": 70
},
"videoControls": {
"__id__":
68
"__id__":
71
},
"pauseButton": {
"__id__": 7
6
"__id__": 7
9
},
"playButton": {
"__id__": 7
4
"__id__": 7
7
},
"_id": "6eW7M4ET1L4KOTzIOVRmf8"
}
...
...
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
dd07eea8
import
macro
from
'
../script/A_Macro_dg18_tianci
'
import
{
asyncDelay
,
onHomeworkFinish
}
from
"
../script/util_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
"
;
let
win
:
any
=
window
;
...
...
@@ -28,15 +28,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
dg_xiaodi
)
xiaodi
:
dg_xiaodi
=
null
;
async
onLoadEnd
()
{
this
.
initVideoPlayer
();
this
.
showVideoPlayer
();
return
;
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this
.
initData
();
this
.
initView
();
this
.
initEvent
();
this
.
showVideoPlayer
();
this
.
initVideoPlayer
();
this
.
xiaodi
.
playEnter
(
this
.
data
.
npcAudio
).
then
(()
=>
{
this
.
initGame
();
...
...
@@ -80,6 +76,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
label_tip_wait
.
active
=
false
;
this
.
label_tip_ing
.
active
=
false
;
this
.
rich_content
.
active
=
false
;
this
.
layout_video
.
active
=
false
;
}
// 事件监听
initEvent
()
{
...
...
@@ -244,11 +241,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
showNextBtn
()
{
}
showVideo
()
{
return
new
Promise
(
reslove
=>
{
reslove
(
''
)
})
}
onTouchRestart
()
{
// 处理展示视频内容
...
...
@@ -262,6 +254,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
onTouchNext
()
{
if
(
this
.
recording
)
return
;
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
(()
=>
{
// 底部显示为重新查看
...
...
@@ -283,6 +280,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
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
)
pauseButton
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
playButton
:
cc
.
Node
=
null
;
...
...
@@ -290,41 +288,59 @@ export default class SceneComponent extends MyCocosSceneComponent {
showUI
()
{
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
,
'
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_game
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
),
true
)
this
.
xiaodi
.
showAll
();
}
hideUI
()
{
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
,
'
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_game
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
),
false
)
}
playVideoEnd
()
{
this
.
xiaodi
.
hideAll
();
}
showVideoPlayer
()
{
this
.
layout_video
.
active
=
true
;
this
.
videoPlayer
.
stayOnBottom
=
true
;
this
.
_isReadyToPlay
=
false
;
this
.
videoPlayer
.
node
.
x
=
0
;
this
.
videoPlayer
.
node
.
y
=
0
;
if
(
!
this
.
_isReadyToPlay
)
{
//首次播放
this
.
_isReadyToPlay
=
false
;
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video
;
this
.
hideUI
();
pg
.
view
.
touchOn
(
this
.
playButton
,
this
.
play
,
this
);
pg
.
view
.
touchOn
(
this
.
pauseButton
,
this
.
pause
,
this
);
}
else
{
//重复播放
this
.
videoPlayer
.
currentTime
=
0
;
this
.
_isPlayComplated
=
false
;
this
.
play
();
}
this
.
hideUI
();
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
},
2000
);
this
.
videoPlayer
.
stayOnBottom
=
false
;
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
()
{
this
.
videoPlayer
.
node
.
on
(
'
ready-to-play
'
,
()
=>
{
console
.
log
(
'
ready-to-play
'
);
...
...
@@ -378,7 +394,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playButton
.
active
=
false
;
this
.
pauseButton
.
active
=
false
;
// 循环播放下一个
this
.
playVideoEnd
();
this
.
hideVideo
();
});
cc
.
view
.
setResizeCallback
((
params
)
=>
{
console
.
log
(
'
Resize
'
,
params
);
...
...
@@ -578,7 +594,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
},
0.5
)
}
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/t
xt
'
),
this
.
data
.
npcTitle
)
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi/btn_go/t
ext
'
),
this
.
data
.
npcAudioText
)
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
).
active
=
true
;
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
).
getComponent
(
dg_xiaodi
).
playOver
(
this
.
data
.
npcAudioEnd
)
}
...
...
assets/dg18_tianci/scene/dg18_tianci_xiaodi.ts
View file @
dd07eea8
...
...
@@ -10,6 +10,14 @@ export default class dg_xiaodi extends cc.Component {
onLoad
()
{
}
hideAll
()
{
this
.
playEnterEnd
();
this
.
playQuestionVoiceEnd
();
this
.
node
.
active
=
false
;
}
showAll
()
{
this
.
node
.
active
=
true
;
}
private
audioIdEnter
:
any
;
playEnter
(
audioUrl
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
assets/dg18_tianci/scene/pg_dg18_tianci.ts
View file @
dd07eea8
...
...
@@ -102,7 +102,7 @@ class Signal<T = void> {
}
}
class
TimeCtrl
{
export
class
TimeCtrl
{
private
current
:
number
;
constructor
()
{
this
.
current
=
0
;
...
...
form/src/app/form/form.component.html
View file @
dd07eea8
...
...
@@ -85,8 +85,6 @@
<div
style=
"padding: 10px;background-color: #fff;"
>
<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>
<div
style=
"display:flex ;"
>
<div>
...
...
@@ -98,6 +96,8 @@
<span>
{{ item.npcAudioName}}
</span>
</div>
</div>
<span
style=
"font-size: 20px;"
>
小迪结束按钮文字:
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
npcAudioText
"
(
blur
)="
save
()"
>
<span
style=
"font-size: 20px;"
>
小迪结束音频:
</span>
<div
style=
"display:flex ;"
>
<div>
...
...
form/src/app/form/form.component.ts
View file @
dd07eea8
...
...
@@ -15,7 +15,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
// 储存数据用
saveKey
=
"
dg29_museum_1
"
;
item
=
{
npc
Title
:
""
,
npc
AudioText
:
""
,
npcAudio
:
""
,
npcAudioName
:
""
,
npcAudioEnd
:
""
,
...
...
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