Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
ls_gramophone
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
ls_gramophone
Commits
44d15aaf
Commit
44d15aaf
authored
Jan 06, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
eccee385
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
366 additions
and
356 deletions
+366
-356
ls_gramophone.fire
assets/ls_gramophone/scene/ls_gramophone.fire
+355
-355
ls_gramophone.ts
assets/ls_gramophone/scene/ls_gramophone.ts
+11
-1
No files found.
assets/ls_gramophone/scene/ls_gramophone.fire
View file @
44d15aaf
...
...
@@ -93,13 +93,10 @@
"__id__": 21
},
{
"__id__": 23
},
{
"__id__": 25
"__id__": 72
},
{
"__id__":
76
"__id__":
82
},
{
"__id__": 86
...
...
@@ -108,7 +105,10 @@
"__id__": 90
},
{
"__id__": 94
"__id__": 95
},
{
"__id__": 97
},
{
"__id__": 99
...
...
@@ -983,194 +983,6 @@
"_N$target": null,
"_id": "48CYR9Ax9L3403OBPX0Llk"
},
{
"__type__": "cc.Node",
"_name": "ls_bg_audio_off",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 83
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-605.973,
-327,
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": "b3nvh+wvhABIlWXo3xDJ6I"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f35ca32b-5204-4d64-a1f9-4e0679571494"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c7yOS/fLRNFaDXVLnZ8ekD"
},
{
"__type__": "cc.Node",
"_name": "ls_bg_audio_on",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 22
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 83
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-605.973,
-327,
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": "e8dDwMrGRD5ZvKzIi64STo"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1532fa8c-7462-4f06-834e-5cb2cbb663f5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bdw2dhJzhEx5XcFm6H/a/B"
},
{
"__type__": "cc.Node",
"_name": "bg_word",
...
...
@@ -1182,7 +994,7 @@
"_active": true,
"_components": [
{
"__id__": 2
4
"__id__": 2
0
}
],
"_prefab": null,
...
...
@@ -1238,7 +1050,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
23
"__id__":
19
},
"_enabled": true,
"_materials": [
...
...
@@ -1274,13 +1086,13 @@
},
"_children": [
{
"__id__": 2
6
"__id__": 2
2
}
],
"_active": true,
"_components": [
{
"__id__": 7
5
"__id__": 7
1
}
],
"_prefab": null,
...
...
@@ -1336,26 +1148,26 @@
"_name": "view",
"_objFlags": 512,
"_parent": {
"__id__": 2
5
"__id__": 2
1
},
"_children": [
{
"__id__": 2
7
"__id__": 2
3
},
{
"__id__":
30
"__id__":
26
},
{
"__id__": 6
8
"__id__": 6
4
}
],
"_active": true,
"_components": [
{
"__id__":
73
"__id__":
69
},
{
"__id__": 7
4
"__id__": 7
0
}
],
"_prefab": null,
...
...
@@ -1411,16 +1223,16 @@
"_name": "content",
"_objFlags": 512,
"_parent": {
"__id__": 2
6
"__id__": 2
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
8
"__id__": 2
4
},
{
"__id__": 2
9
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1476,7 +1288,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1503,7 +1315,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
3
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1535,38 +1347,38 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 2
6
"__id__": 2
2
},
"_children": [
{
"__id__":
31
"__id__":
27
},
{
"__id__": 3
4
"__id__": 3
0
},
{
"__id__": 3
8
"__id__": 3
4
},
{
"__id__":
42
"__id__":
38
},
{
"__id__": 4
5
"__id__": 4
1
},
{
"__id__": 5
5
"__id__": 5
1
}
],
"_active": false,
"_components": [
{
"__id__": 6
6
"__id__": 6
2
},
{
"__id__": 6
7
"__id__": 6
3
},
{
"__id__":
72
"__id__":
68
}
],
"_prefab": null,
...
...
@@ -1622,16 +1434,16 @@
"_name": "icon_tip",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
26
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
32
"__id__":
28
},
{
"__id__":
33
"__id__":
29
}
],
"_prefab": null,
...
...
@@ -1687,7 +1499,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
31
"__id__":
27
},
"_enabled": true,
"_materials": [
...
...
@@ -1719,7 +1531,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
31
"__id__":
27
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1746,19 +1558,19 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
5
"__id__": 3
1
},
{
"__id__": 3
6
"__id__": 3
2
},
{
"__id__": 3
7
"__id__": 3
3
}
],
"_prefab": null,
...
...
@@ -1814,7 +1626,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
0
},
"_enabled": true,
"_materials": [
...
...
@@ -1849,7 +1661,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
0
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1876,11 +1688,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
0
},
"_enabled": true,
"label": {
"__id__": 3
5
"__id__": 3
1
},
"_id": "1711BQVPJEyr92fkrtWanD"
},
...
...
@@ -1889,19 +1701,19 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
26
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 3
9
"__id__": 3
5
},
{
"__id__":
40
"__id__":
36
},
{
"__id__":
41
"__id__":
37
}
],
"_prefab": null,
...
...
@@ -1957,7 +1769,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1989,7 +1801,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2016,7 +1828,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
4
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2084,16 +1896,16 @@
"_name": "btn_record_click",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
26
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
43
"__id__":
39
},
{
"__id__": 4
4
"__id__": 4
0
}
],
"_prefab": null,
...
...
@@ -2149,7 +1961,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
42
"__id__":
38
},
"_enabled": true,
"_materials": [
...
...
@@ -2181,7 +1993,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
42
"__id__":
38
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2208,29 +2020,29 @@
"_name": "btn_myrecord",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
26
},
"_children": [
{
"__id__": 4
6
"__id__": 4
2
},
{
"__id__": 4
8
"__id__": 4
4
},
{
"__id__":
50
"__id__":
46
}
],
"_active": false,
"_components": [
{
"__id__":
52
"__id__":
48
},
{
"__id__":
53
"__id__":
49
},
{
"__id__": 5
4
"__id__": 5
0
}
],
"_prefab": null,
...
...
@@ -2286,13 +2098,13 @@
"_name": "icon_myrecord1",
"_objFlags": 0,
"_parent": {
"__id__": 4
5
"__id__": 4
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
7
"__id__": 4
3
}
],
"_prefab": null,
...
...
@@ -2348,7 +2160,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
6
"__id__": 4
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2380,13 +2192,13 @@
"_name": "icon_myrecord2",
"_objFlags": 0,
"_parent": {
"__id__": 4
5
"__id__": 4
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
9
"__id__": 4
5
}
],
"_prefab": null,
...
...
@@ -2442,7 +2254,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
8
"__id__": 4
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2474,13 +2286,13 @@
"_name": "icon_myrecord3",
"_objFlags": 0,
"_parent": {
"__id__": 4
5
"__id__": 4
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
51
"__id__":
47
}
],
"_prefab": null,
...
...
@@ -2536,7 +2348,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
50
"__id__":
46
},
"_enabled": true,
"_materials": [
...
...
@@ -2568,7 +2380,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
5
"__id__": 4
1
},
"_enabled": true,
"_materials": [
...
...
@@ -2600,7 +2412,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
5
"__id__": 4
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2627,7 +2439,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
5
"__id__": 4
1
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2695,32 +2507,32 @@
"_name": "btn_myrecord_play",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
26
},
"_children": [
{
"__id__": 5
6
"__id__": 5
2
},
{
"__id__": 5
8
"__id__": 5
4
},
{
"__id__":
60
"__id__":
56
}
],
"_active": false,
"_components": [
{
"__id__":
62
"__id__":
58
},
{
"__id__":
63
"__id__":
59
},
{
"__id__": 6
4
"__id__": 6
0
},
{
"__id__": 6
5
"__id__": 6
1
}
],
"_prefab": null,
...
...
@@ -2776,13 +2588,13 @@
"_name": "icon_myrecord1",
"_objFlags": 0,
"_parent": {
"__id__": 5
5
"__id__": 5
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
7
"__id__": 5
3
}
],
"_prefab": null,
...
...
@@ -2838,7 +2650,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2870,13 +2682,13 @@
"_name": "icon_myrecord2",
"_objFlags": 0,
"_parent": {
"__id__": 5
5
"__id__": 5
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
9
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2932,7 +2744,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
8
"__id__": 5
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2964,13 +2776,13 @@
"_name": "icon_myrecord3",
"_objFlags": 0,
"_parent": {
"__id__": 5
5
"__id__": 5
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
61
"__id__":
57
}
],
"_prefab": null,
...
...
@@ -3026,7 +2838,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
60
"__id__":
56
},
"_enabled": true,
"_materials": [
...
...
@@ -3058,7 +2870,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
1
},
"_enabled": true,
"_materials": [
...
...
@@ -3090,7 +2902,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
1
},
"_enabled": true,
"_defaultClip": {
...
...
@@ -3109,7 +2921,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3136,7 +2948,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
1
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3204,7 +3016,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
30
"__id__":
26
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3231,29 +3043,29 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
30
"__id__":
26
},
"_enabled": true,
"label": {
"__id__": 3
7
"__id__": 3
3
},
"tip": {
"__id__":
31
"__id__":
27
},
"record": {
"__id__": 3
8
"__id__": 3
4
},
"record_click": {
"__id__":
42
"__id__":
38
},
"myrecord": {
"__id__": 4
5
"__id__": 4
1
},
"myrecord_play": {
"__id__": 5
5
"__id__": 5
1
},
"low": {
"__id__": 6
8
"__id__": 6
4
},
"_id": "78sbViiXNOl5SgddmNDgr+"
},
...
...
@@ -3262,17 +3074,17 @@
"_name": "low",
"_objFlags": 0,
"_parent": {
"__id__": 2
6
"__id__": 2
2
},
"_children": [
{
"__id__": 6
9
"__id__": 6
5
}
],
"_active": false,
"_components": [
{
"__id__":
71
"__id__":
67
}
],
"_prefab": null,
...
...
@@ -3328,13 +3140,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 6
8
"__id__": 6
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
70
"__id__":
66
}
],
"_prefab": null,
...
...
@@ -3390,7 +3202,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
9
"__id__": 6
5
},
"_enabled": true,
"_materials": [
...
...
@@ -3425,7 +3237,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
8
"__id__": 6
4
},
"_enabled": true,
"_materials": [
...
...
@@ -3457,7 +3269,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
30
"__id__":
26
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3525,7 +3337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
6
"__id__": 2
2
},
"_enabled": true,
"_materials": [
...
...
@@ -3545,7 +3357,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
6
"__id__": 2
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3572,7 +3384,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
1
},
"_enabled": true,
"horizontal": false,
...
...
@@ -3584,10 +3396,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 2
7
"__id__": 2
3
},
"content": {
"__id__": 2
7
"__id__": 2
3
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
...
...
@@ -3602,16 +3414,16 @@
},
"_children": [
{
"__id__": 7
7
"__id__": 7
3
},
{
"__id__":
83
"__id__":
79
}
],
"_active": true,
"_components": [
{
"__id__": 8
5
"__id__": 8
1
}
],
"_prefab": null,
...
...
@@ -3667,20 +3479,20 @@
"_name": "view",
"_objFlags": 512,
"_parent": {
"__id__": 7
6
"__id__": 7
2
},
"_children": [
{
"__id__": 7
8
"__id__": 7
4
}
],
"_active": true,
"_components": [
{
"__id__":
81
"__id__":
77
},
{
"__id__":
82
"__id__":
78
}
],
"_prefab": null,
...
...
@@ -3736,16 +3548,16 @@
"_name": "content",
"_objFlags": 512,
"_parent": {
"__id__": 7
7
"__id__": 7
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
9
"__id__": 7
5
},
{
"__id__":
80
"__id__":
76
}
],
"_prefab": null,
...
...
@@ -3801,7 +3613,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
8
"__id__": 7
4
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -3833,7 +3645,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
8
"__id__": 7
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3860,7 +3672,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
7
"__id__": 7
3
},
"_enabled": true,
"_materials": [
...
...
@@ -3880,7 +3692,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
7
"__id__": 7
3
},
"_enabled": false,
"alignMode": 1,
...
...
@@ -3907,13 +3719,13 @@
"_name": "indicator",
"_objFlags": 512,
"_parent": {
"__id__": 7
6
"__id__": 7
2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
4
"__id__": 8
0
}
],
"_prefab": null,
...
...
@@ -3969,12 +3781,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
83
"__id__":
79
},
"_enabled": true,
"_layout": null,
"_pageView": {
"__id__": 8
5
"__id__": 8
1
},
"_indicators": [],
"spriteFrame": {
...
...
@@ -3994,7 +3806,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
6
"__id__": 7
2
},
"_enabled": true,
"horizontal": true,
...
...
@@ -4006,10 +3818,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 7
8
"__id__": 7
4
},
"content": {
"__id__": 7
8
"__id__": 7
4
},
"scrollThreshold": 0.9,
"autoPageTurningThreshold": 300,
...
...
@@ -4019,7 +3831,7 @@
"_N$sizeMode": 0,
"_N$direction": 0,
"_N$indicator": {
"__id__": 8
4
"__id__": 8
0
},
"_id": "bbvs4CbP1AJYLVxODdrurA"
},
...
...
@@ -4032,13 +3844,13 @@
},
"_children": [
{
"__id__": 8
7
"__id__": 8
3
}
],
"_active": true,
"_components": [
{
"__id__": 8
9
"__id__": 8
5
}
],
"_prefab": null,
...
...
@@ -4094,13 +3906,13 @@
"_name": "btn_arrow",
"_objFlags": 0,
"_parent": {
"__id__": 8
6
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
8
"__id__": 8
4
}
],
"_prefab": null,
...
...
@@ -4156,7 +3968,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
7
"__id__": 8
3
},
"_enabled": true,
"_materials": [
...
...
@@ -4188,7 +4000,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
2
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4260,13 +4072,13 @@
},
"_children": [
{
"__id__":
91
"__id__":
87
}
],
"_active": true,
"_components": [
{
"__id__":
93
"__id__":
89
}
],
"_prefab": null,
...
...
@@ -4322,13 +4134,13 @@
"_name": "btn_arrow",
"_objFlags": 0,
"_parent": {
"__id__":
90
"__id__":
86
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
92
"__id__":
88
}
],
"_prefab": null,
...
...
@@ -4384,7 +4196,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
91
"__id__":
87
},
"_enabled": true,
"_materials": [
...
...
@@ -4416,7 +4228,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
90
"__id__":
86
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4488,16 +4300,16 @@
},
"_children": [
{
"__id__": 9
5
"__id__": 9
1
}
],
"_active": false,
"_components": [
{
"__id__": 9
7
"__id__": 9
3
},
{
"__id__": 9
8
"__id__": 9
4
}
],
"_prefab": null,
...
...
@@ -4553,13 +4365,13 @@
"_name": "icon_record",
"_objFlags": 0,
"_parent": {
"__id__": 9
4
"__id__": 9
0
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
6
"__id__": 9
2
}
],
"_prefab": null,
...
...
@@ -4615,7 +4427,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
5
"__id__": 9
1
},
"_enabled": true,
"_materials": [
...
...
@@ -4655,7 +4467,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
4
"__id__": 9
0
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -4682,7 +4494,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
4
"__id__": 9
0
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4745,6 +4557,194 @@
"_N$target": null,
"_id": "a0JUVqsYRGb7Qih5DNfs7a"
},
{
"__type__": "cc.Node",
"_name": "ls_bg_audio_off",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 96
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 83
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-605.973,
-327,
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": "b3nvh+wvhABIlWXo3xDJ6I"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f35ca32b-5204-4d64-a1f9-4e0679571494"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c7yOS/fLRNFaDXVLnZ8ekD"
},
{
"__type__": "cc.Node",
"_name": "ls_bg_audio_on",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 98
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 83
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-605.973,
-327,
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": "e8dDwMrGRD5ZvKzIi64STo"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1532fa8c-7462-4f06-834e-5cb2cbb663f5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bdw2dhJzhEx5XcFm6H/a/B"
},
{
"__type__": "cc.Node",
"_name": "btn_record_start",
...
...
@@ -6698,28 +6698,28 @@
},
"_enabled": true,
"item": {
"__id__":
30
"__id__":
26
},
"content": {
"__id__": 2
7
"__id__": 2
3
},
"tip": {
"__id__": 115
},
"pagContent": {
"__id__": 7
8
"__id__": 7
4
},
"btn_arrow": {
"__id__": 8
6
"__id__": 8
2
},
"btn_last": {
"__id__":
90
"__id__":
86
},
"btn_audio_off": {
"__id__":
19
"__id__":
95
},
"btn_audio_on": {
"__id__":
21
"__id__":
97
},
"_id": "eaTVUpqahPfZeO9+sUI7RP"
}
...
...
assets/ls_gramophone/scene/ls_gramophone.ts
View file @
44d15aaf
...
...
@@ -92,6 +92,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_results
[
idx
].
push
(
null
);
});
});
this
.
isPlayBgAudio
=
true
;
}
private
stopQuestionAudio
()
{
...
...
@@ -160,9 +161,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
play
.
active
=
false
;
stop
.
active
=
true
;
pg
.
audio
.
stopAudio
(
this
.
itemAudio
);
element
.
getComponent
(
Item
).
playing
();
this
.
playAudioByUrl
(
quest
.
audio
,
()
=>
{
pg
.
audio
.
playAudioByUrl
(
quest
.
audio
,
()
=>
{
element
.
getComponent
(
Item
).
stop
();
}).
then
((
audioId
:
number
)
=>
{
this
.
itemAudio
=
audioId
;
});
});
...
...
@@ -237,6 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
record_start
.
on
(
'
click
'
,
()
=>
{
this
.
playLocalAudio
(
'
btn
'
);
this
.
stopBgAudio
();
mask
.
active
=
true
;
// icon_record.getComponent(dragonBones.ArmatureDisplay).timeScale = 1;
...
...
@@ -319,6 +324,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
log
(
'
idx:
'
+
idx
);
if
(
window
[
'
courseware
'
])
{
this
.
playBgAudio
();
window
[
'
courseware
'
].
stopTest
((
res
)
=>
{
this
.
log
(
'
--------录音返回结果 stopTest ------------
'
);
this
.
log
(
'
res
'
+
res
);
...
...
@@ -386,6 +392,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
onHomeworkFinish
({
stone
:
10
,
details
:
this
.
_results
});
});
}
else
{
this
.
playBgAudio
();
if
(
idx
!==
-
1
)
{
let
content
=
cc
.
find
(
"
view/content
"
,
this
.
pagContent
.
children
[
this
.
roundIdx
]);
content
.
children
[
idx
].
getComponent
(
Item
).
recorded
();
...
...
@@ -397,12 +404,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
this
.
btn_arrow
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onArrow
,
this
);
this
.
btn_last
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onLast
,
this
);
this
.
btn_audio_off
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onAudioOff
,
this
);
this
.
btn_audio_on
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onAudioOn
,
this
);
this
.
setPagBg
();
this
.
refreshArrow
();
if
(
this
.
data
.
bgAudio
&&
this
.
data
.
bgAudio
!=
""
)
{
this
.
btn_audio_on
.
active
=
true
;
}
}
private
itemAudio
=
-
1
;
private
onAudioOn
()
{
this
.
btn_audio_off
.
active
=
true
;
this
.
btn_audio_on
.
active
=
false
;
...
...
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