Commit eccee385 authored by yu's avatar yu

背景音乐

parent cb5f2d9f
...@@ -93,10 +93,13 @@ ...@@ -93,10 +93,13 @@
"__id__": 21 "__id__": 21
}, },
{ {
"__id__": 72 "__id__": 23
}, },
{ {
"__id__": 82 "__id__": 25
},
{
"__id__": 76
}, },
{ {
"__id__": 86 "__id__": 86
...@@ -105,34 +108,37 @@ ...@@ -105,34 +108,37 @@
"__id__": 90 "__id__": 90
}, },
{ {
"__id__": 95 "__id__": 94
}, },
{ {
"__id__": 98 "__id__": 99
}, },
{ {
"__id__": 103 "__id__": 102
}, },
{ {
"__id__": 106 "__id__": 107
}, },
{ {
"__id__": 111 "__id__": 110
}, },
{ {
"__id__": 130 "__id__": 115
},
{
"__id__": 134
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 134 "__id__": 138
}, },
{ {
"__id__": 135 "__id__": 139
}, },
{ {
"__id__": 136 "__id__": 140
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -977,6 +983,194 @@ ...@@ -977,6 +983,194 @@
"_N$target": null, "_N$target": null,
"_id": "48CYR9Ax9L3403OBPX0Llk" "_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", "__type__": "cc.Node",
"_name": "bg_word", "_name": "bg_word",
...@@ -988,7 +1182,7 @@ ...@@ -988,7 +1182,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 24
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1044,7 +1238,7 @@ ...@@ -1044,7 +1238,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1080,13 +1274,13 @@ ...@@ -1080,13 +1274,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 26
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 71 "__id__": 75
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1142,26 +1336,26 @@ ...@@ -1142,26 +1336,26 @@
"_name": "view", "_name": "view",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 21 "__id__": 25
}, },
"_children": [ "_children": [
{ {
"__id__": 23 "__id__": 27
}, },
{ {
"__id__": 26 "__id__": 30
}, },
{ {
"__id__": 64 "__id__": 68
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 69 "__id__": 73
}, },
{ {
"__id__": 70 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1217,16 +1411,16 @@ ...@@ -1217,16 +1411,16 @@
"_name": "content", "_name": "content",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 22 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 28
}, },
{ {
"__id__": 25 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1282,7 +1476,7 @@ ...@@ -1282,7 +1476,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1309,7 +1503,7 @@ ...@@ -1309,7 +1503,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -1341,14 +1535,11 @@ ...@@ -1341,14 +1535,11 @@
"_name": "item", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 26
}, },
"_children": [ "_children": [
{ {
"__id__": 27 "__id__": 31
},
{
"__id__": 30
}, },
{ {
"__id__": 34 "__id__": 34
...@@ -1357,22 +1548,25 @@ ...@@ -1357,22 +1548,25 @@
"__id__": 38 "__id__": 38
}, },
{ {
"__id__": 41 "__id__": 42
}, },
{ {
"__id__": 51 "__id__": 45
},
{
"__id__": 55
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 66
}, },
{ {
"__id__": 63 "__id__": 67
}, },
{ {
"__id__": 68 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1428,16 +1622,16 @@ ...@@ -1428,16 +1622,16 @@
"_name": "icon_tip", "_name": "icon_tip",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 30
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 28 "__id__": 32
}, },
{ {
"__id__": 29 "__id__": 33
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1493,7 +1687,7 @@ ...@@ -1493,7 +1687,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 27 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1525,7 +1719,7 @@ ...@@ -1525,7 +1719,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 27 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1552,19 +1746,19 @@ ...@@ -1552,19 +1746,19 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 30
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 31 "__id__": 35
}, },
{ {
"__id__": 32 "__id__": 36
}, },
{ {
"__id__": 33 "__id__": 37
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1620,7 +1814,7 @@ ...@@ -1620,7 +1814,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1655,7 +1849,7 @@ ...@@ -1655,7 +1849,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1682,11 +1876,11 @@ ...@@ -1682,11 +1876,11 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"label": { "label": {
"__id__": 31 "__id__": 35
}, },
"_id": "1711BQVPJEyr92fkrtWanD" "_id": "1711BQVPJEyr92fkrtWanD"
}, },
...@@ -1695,19 +1889,19 @@ ...@@ -1695,19 +1889,19 @@
"_name": "btn_record", "_name": "btn_record",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 30
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 35 "__id__": 39
}, },
{ {
"__id__": 36 "__id__": 40
}, },
{ {
"__id__": 37 "__id__": 41
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1763,7 +1957,7 @@ ...@@ -1763,7 +1957,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1795,7 +1989,7 @@ ...@@ -1795,7 +1989,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1822,7 +2016,7 @@ ...@@ -1822,7 +2016,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -1890,16 +2084,16 @@ ...@@ -1890,16 +2084,16 @@
"_name": "btn_record_click", "_name": "btn_record_click",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 30
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 43
}, },
{ {
"__id__": 40 "__id__": 44
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1955,7 +2149,7 @@ ...@@ -1955,7 +2149,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1987,7 +2181,7 @@ ...@@ -1987,7 +2181,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2014,29 +2208,29 @@ ...@@ -2014,29 +2208,29 @@
"_name": "btn_myrecord", "_name": "btn_myrecord",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 30
}, },
"_children": [ "_children": [
{ {
"__id__": 42 "__id__": 46
}, },
{ {
"__id__": 44 "__id__": 48
}, },
{ {
"__id__": 46 "__id__": 50
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 52
}, },
{ {
"__id__": 49 "__id__": 53
}, },
{ {
"__id__": 50 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2092,13 +2286,13 @@ ...@@ -2092,13 +2286,13 @@
"_name": "icon_myrecord1", "_name": "icon_myrecord1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 41 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 47
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2154,7 +2348,7 @@ ...@@ -2154,7 +2348,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2186,13 +2380,13 @@ ...@@ -2186,13 +2380,13 @@
"_name": "icon_myrecord2", "_name": "icon_myrecord2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 41 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 49
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2248,7 +2442,7 @@ ...@@ -2248,7 +2442,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 44 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2280,13 +2474,13 @@ ...@@ -2280,13 +2474,13 @@
"_name": "icon_myrecord3", "_name": "icon_myrecord3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 41 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2342,7 +2536,7 @@ ...@@ -2342,7 +2536,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 46 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2374,7 +2568,7 @@ ...@@ -2374,7 +2568,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 41 "__id__": 45
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2406,7 +2600,7 @@ ...@@ -2406,7 +2600,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 41 "__id__": 45
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2433,7 +2627,7 @@ ...@@ -2433,7 +2627,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 41 "__id__": 45
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -2501,32 +2695,32 @@ ...@@ -2501,32 +2695,32 @@
"_name": "btn_myrecord_play", "_name": "btn_myrecord_play",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 30
}, },
"_children": [ "_children": [
{ {
"__id__": 52 "__id__": 56
}, },
{ {
"__id__": 54 "__id__": 58
}, },
{ {
"__id__": 56 "__id__": 60
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 62
}, },
{ {
"__id__": 59 "__id__": 63
}, },
{ {
"__id__": 60 "__id__": 64
}, },
{ {
"__id__": 61 "__id__": 65
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2582,13 +2776,13 @@ ...@@ -2582,13 +2776,13 @@
"_name": "icon_myrecord1", "_name": "icon_myrecord1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 51 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 53 "__id__": 57
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2644,7 +2838,7 @@ ...@@ -2644,7 +2838,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 52 "__id__": 56
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2676,13 +2870,13 @@ ...@@ -2676,13 +2870,13 @@
"_name": "icon_myrecord2", "_name": "icon_myrecord2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 51 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 55 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2738,7 +2932,7 @@ ...@@ -2738,7 +2932,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2770,13 +2964,13 @@ ...@@ -2770,13 +2964,13 @@
"_name": "icon_myrecord3", "_name": "icon_myrecord3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 51 "__id__": 55
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 57 "__id__": 61
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2832,7 +3026,7 @@ ...@@ -2832,7 +3026,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 60
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2864,7 +3058,7 @@ ...@@ -2864,7 +3058,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2896,7 +3090,7 @@ ...@@ -2896,7 +3090,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_defaultClip": { "_defaultClip": {
...@@ -2915,7 +3109,7 @@ ...@@ -2915,7 +3109,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -2942,7 +3136,7 @@ ...@@ -2942,7 +3136,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3010,7 +3204,7 @@ ...@@ -3010,7 +3204,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3037,29 +3231,29 @@ ...@@ -3037,29 +3231,29 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"label": { "label": {
"__id__": 33 "__id__": 37
}, },
"tip": { "tip": {
"__id__": 27 "__id__": 31
}, },
"record": { "record": {
"__id__": 34 "__id__": 38
}, },
"record_click": { "record_click": {
"__id__": 38 "__id__": 42
}, },
"myrecord": { "myrecord": {
"__id__": 41 "__id__": 45
}, },
"myrecord_play": { "myrecord_play": {
"__id__": 51 "__id__": 55
}, },
"low": { "low": {
"__id__": 64 "__id__": 68
}, },
"_id": "78sbViiXNOl5SgddmNDgr+" "_id": "78sbViiXNOl5SgddmNDgr+"
}, },
...@@ -3068,17 +3262,17 @@ ...@@ -3068,17 +3262,17 @@
"_name": "low", "_name": "low",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 26
}, },
"_children": [ "_children": [
{ {
"__id__": 65 "__id__": 69
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 67 "__id__": 71
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3134,13 +3328,13 @@ ...@@ -3134,13 +3328,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 64 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 70
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3196,7 +3390,7 @@ ...@@ -3196,7 +3390,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 65 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3231,7 +3425,7 @@ ...@@ -3231,7 +3425,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 64 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3263,7 +3457,7 @@ ...@@ -3263,7 +3457,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3331,7 +3525,7 @@ ...@@ -3331,7 +3525,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3351,7 +3545,7 @@ ...@@ -3351,7 +3545,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3378,7 +3572,7 @@ ...@@ -3378,7 +3572,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 25
}, },
"_enabled": true, "_enabled": true,
"horizontal": false, "horizontal": false,
...@@ -3390,10 +3584,10 @@ ...@@ -3390,10 +3584,10 @@
"scrollEvents": [], "scrollEvents": [],
"cancelInnerEvents": true, "cancelInnerEvents": true,
"_N$content": { "_N$content": {
"__id__": 23 "__id__": 27
}, },
"content": { "content": {
"__id__": 23 "__id__": 27
}, },
"_N$horizontalScrollBar": null, "_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null, "_N$verticalScrollBar": null,
...@@ -3408,16 +3602,16 @@ ...@@ -3408,16 +3602,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 73 "__id__": 77
}, },
{ {
"__id__": 79 "__id__": 83
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 81 "__id__": 85
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3473,20 +3667,20 @@ ...@@ -3473,20 +3667,20 @@
"_name": "view", "_name": "view",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 72 "__id__": 76
}, },
"_children": [ "_children": [
{ {
"__id__": 74 "__id__": 78
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 81
}, },
{ {
"__id__": 78 "__id__": 82
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3542,16 +3736,16 @@ ...@@ -3542,16 +3736,16 @@
"_name": "content", "_name": "content",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 73 "__id__": 77
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 79
}, },
{ {
"__id__": 76 "__id__": 80
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3607,7 +3801,7 @@ ...@@ -3607,7 +3801,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 78
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -3639,7 +3833,7 @@ ...@@ -3639,7 +3833,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 78
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -3666,7 +3860,7 @@ ...@@ -3666,7 +3860,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 73 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3686,7 +3880,7 @@ ...@@ -3686,7 +3880,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 73 "__id__": 77
}, },
"_enabled": false, "_enabled": false,
"alignMode": 1, "alignMode": 1,
...@@ -3713,13 +3907,13 @@ ...@@ -3713,13 +3907,13 @@
"_name": "indicator", "_name": "indicator",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 72 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 80 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3775,12 +3969,12 @@ ...@@ -3775,12 +3969,12 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 79 "__id__": 83
}, },
"_enabled": true, "_enabled": true,
"_layout": null, "_layout": null,
"_pageView": { "_pageView": {
"__id__": 81 "__id__": 85
}, },
"_indicators": [], "_indicators": [],
"spriteFrame": { "spriteFrame": {
...@@ -3800,7 +3994,7 @@ ...@@ -3800,7 +3994,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 72 "__id__": 76
}, },
"_enabled": true, "_enabled": true,
"horizontal": true, "horizontal": true,
...@@ -3812,10 +4006,10 @@ ...@@ -3812,10 +4006,10 @@
"scrollEvents": [], "scrollEvents": [],
"cancelInnerEvents": true, "cancelInnerEvents": true,
"_N$content": { "_N$content": {
"__id__": 74 "__id__": 78
}, },
"content": { "content": {
"__id__": 74 "__id__": 78
}, },
"scrollThreshold": 0.9, "scrollThreshold": 0.9,
"autoPageTurningThreshold": 300, "autoPageTurningThreshold": 300,
...@@ -3825,7 +4019,7 @@ ...@@ -3825,7 +4019,7 @@
"_N$sizeMode": 0, "_N$sizeMode": 0,
"_N$direction": 0, "_N$direction": 0,
"_N$indicator": { "_N$indicator": {
"__id__": 80 "__id__": 84
}, },
"_id": "bbvs4CbP1AJYLVxODdrurA" "_id": "bbvs4CbP1AJYLVxODdrurA"
}, },
...@@ -3838,13 +4032,13 @@ ...@@ -3838,13 +4032,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 83 "__id__": 87
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 85 "__id__": 89
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3900,13 +4094,13 @@ ...@@ -3900,13 +4094,13 @@
"_name": "btn_arrow", "_name": "btn_arrow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 88
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3962,7 +4156,7 @@ ...@@ -3962,7 +4156,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 87
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3994,7 +4188,7 @@ ...@@ -3994,7 +4188,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 86
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4066,13 +4260,13 @@ ...@@ -4066,13 +4260,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 87 "__id__": 91
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 89 "__id__": 93
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4128,13 +4322,13 @@ ...@@ -4128,13 +4322,13 @@
"_name": "btn_arrow", "_name": "btn_arrow",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 86 "__id__": 90
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 92
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4190,7 +4384,7 @@ ...@@ -4190,7 +4384,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 87 "__id__": 91
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4222,7 +4416,7 @@ ...@@ -4222,7 +4416,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 86 "__id__": 90
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4294,16 +4488,16 @@ ...@@ -4294,16 +4488,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 91 "__id__": 95
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 97
}, },
{ {
"__id__": 94 "__id__": 98
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4359,13 +4553,13 @@ ...@@ -4359,13 +4553,13 @@
"_name": "icon_record", "_name": "icon_record",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 90 "__id__": 94
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 92 "__id__": 96
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4421,7 +4615,7 @@ ...@@ -4421,7 +4615,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 91 "__id__": 95
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4461,7 +4655,7 @@ ...@@ -4461,7 +4655,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 94
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -4488,7 +4682,7 @@ ...@@ -4488,7 +4682,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 94
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4562,10 +4756,10 @@ ...@@ -4562,10 +4756,10 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 96 "__id__": 100
}, },
{ {
"__id__": 97 "__id__": 101
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4621,7 +4815,7 @@ ...@@ -4621,7 +4815,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 95 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4653,7 +4847,7 @@ ...@@ -4653,7 +4847,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 95 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4725,13 +4919,13 @@ ...@@ -4725,13 +4919,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 99 "__id__": 103
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 102 "__id__": 106
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4787,16 +4981,16 @@ ...@@ -4787,16 +4981,16 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 98 "__id__": 102
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 100 "__id__": 104
}, },
{ {
"__id__": 101 "__id__": 105
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4852,7 +5046,7 @@ ...@@ -4852,7 +5046,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 99 "__id__": 103
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4887,7 +5081,7 @@ ...@@ -4887,7 +5081,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 99 "__id__": 103
}, },
"_enabled": false, "_enabled": false,
"_color": { "_color": {
...@@ -4905,7 +5099,7 @@ ...@@ -4905,7 +5099,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 98 "__id__": 102
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4943,10 +5137,10 @@ ...@@ -4943,10 +5137,10 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 104 "__id__": 108
}, },
{ {
"__id__": 105 "__id__": 109
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5002,7 +5196,7 @@ ...@@ -5002,7 +5196,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 103 "__id__": 107
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5034,7 +5228,7 @@ ...@@ -5034,7 +5228,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 103 "__id__": 107
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5106,16 +5300,16 @@ ...@@ -5106,16 +5300,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 107 "__id__": 111
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 109 "__id__": 113
}, },
{ {
"__id__": 110 "__id__": 114
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5171,13 +5365,13 @@ ...@@ -5171,13 +5365,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 106 "__id__": 110
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 108 "__id__": 112
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5233,7 +5427,7 @@ ...@@ -5233,7 +5427,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 107 "__id__": 111
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5266,7 +5460,7 @@ ...@@ -5266,7 +5460,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 106 "__id__": 110
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5298,7 +5492,7 @@ ...@@ -5298,7 +5492,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 106 "__id__": 110
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5328,26 +5522,26 @@ ...@@ -5328,26 +5522,26 @@
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{
"__id__": 112
},
{ {
"__id__": 116 "__id__": 116
}, },
{ {
"__id__": 119 "__id__": 120
}, },
{ {
"__id__": 121 "__id__": 123
}, },
{ {
"__id__": 125 "__id__": 125
},
{
"__id__": 129
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 129 "__id__": 133
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5403,19 +5597,19 @@ ...@@ -5403,19 +5597,19 @@
"_name": "mask", "_name": "mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 111 "__id__": 115
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 113 "__id__": 117
}, },
{ {
"__id__": 114 "__id__": 118
}, },
{ {
"__id__": 115 "__id__": 119
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5471,7 +5665,7 @@ ...@@ -5471,7 +5665,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 112 "__id__": 116
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5503,7 +5697,7 @@ ...@@ -5503,7 +5697,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 112 "__id__": 116
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5530,7 +5724,7 @@ ...@@ -5530,7 +5724,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 112 "__id__": 116
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5598,16 +5792,16 @@ ...@@ -5598,16 +5792,16 @@
"_name": "bg", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 111 "__id__": 115
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 117 "__id__": 121
}, },
{ {
"__id__": 118 "__id__": 122
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5663,7 +5857,7 @@ ...@@ -5663,7 +5857,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 116 "__id__": 120
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5695,7 +5889,7 @@ ...@@ -5695,7 +5889,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 116 "__id__": 120
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5756,7 +5950,7 @@ ...@@ -5756,7 +5950,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 116 "__id__": 120
}, },
"_id": "dbf6SlfeFJtqujsCK52/CR" "_id": "dbf6SlfeFJtqujsCK52/CR"
}, },
...@@ -5765,13 +5959,13 @@ ...@@ -5765,13 +5959,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 111 "__id__": 115
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 120 "__id__": 124
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5827,7 +6021,7 @@ ...@@ -5827,7 +6021,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 119 "__id__": 123
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5862,16 +6056,16 @@ ...@@ -5862,16 +6056,16 @@
"_name": "start", "_name": "start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 111 "__id__": 115
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 122 "__id__": 126
}, },
{ {
"__id__": 123 "__id__": 127
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5927,7 +6121,7 @@ ...@@ -5927,7 +6121,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 121 "__id__": 125
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5959,7 +6153,7 @@ ...@@ -5959,7 +6153,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 121 "__id__": 125
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5968,7 +6162,7 @@ ...@@ -5968,7 +6162,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 124 "__id__": 128
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -6024,7 +6218,7 @@ ...@@ -6024,7 +6218,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 121 "__id__": 125
}, },
"_id": "f86X4c6OtP4K2F2ODiAK9B" "_id": "f86X4c6OtP4K2F2ODiAK9B"
}, },
...@@ -6043,16 +6237,16 @@ ...@@ -6043,16 +6237,16 @@
"_name": "restart", "_name": "restart",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 111 "__id__": 115
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 126 "__id__": 130
}, },
{ {
"__id__": 127 "__id__": 131
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6108,7 +6302,7 @@ ...@@ -6108,7 +6302,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 125 "__id__": 129
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6140,7 +6334,7 @@ ...@@ -6140,7 +6334,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 125 "__id__": 129
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -6149,7 +6343,7 @@ ...@@ -6149,7 +6343,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 128 "__id__": 132
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -6224,7 +6418,7 @@ ...@@ -6224,7 +6418,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 111 "__id__": 115
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -6255,7 +6449,7 @@ ...@@ -6255,7 +6449,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 131 "__id__": 135
} }
], ],
"_active": true, "_active": true,
...@@ -6313,11 +6507,11 @@ ...@@ -6313,11 +6507,11 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 130 "__id__": 134
}, },
"_children": [ "_children": [
{ {
"__id__": 132 "__id__": 136
} }
], ],
"_active": true, "_active": true,
...@@ -6375,13 +6569,13 @@ ...@@ -6375,13 +6569,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 131 "__id__": 135
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 133 "__id__": 137
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6437,7 +6631,7 @@ ...@@ -6437,7 +6631,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 132 "__id__": 136
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6504,22 +6698,28 @@ ...@@ -6504,22 +6698,28 @@
}, },
"_enabled": true, "_enabled": true,
"item": { "item": {
"__id__": 26 "__id__": 30
}, },
"content": { "content": {
"__id__": 23 "__id__": 27
}, },
"tip": { "tip": {
"__id__": 111 "__id__": 115
}, },
"pagContent": { "pagContent": {
"__id__": 74 "__id__": 78
}, },
"btn_arrow": { "btn_arrow": {
"__id__": 82 "__id__": 86
}, },
"btn_last": { "btn_last": {
"__id__": 86 "__id__": 90
},
"btn_audio_off": {
"__id__": 19
},
"btn_audio_on": {
"__id__": 21
}, },
"_id": "eaTVUpqahPfZeO9+sUI7RP" "_id": "eaTVUpqahPfZeO9+sUI7RP"
} }
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts * @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
*/ */
import { threadId } from 'worker_threads'; // import { threadId } from _ls_gramophone'worker_threads';
import Item from '../script/Item'; import Item from '../script/Item_ls_gramophone';
import { MyCocosSceneComponent } from '../script/MyCocosSceneComponent'; import { MyCocosSceneComponent } from '../script/MyCocosSceneComponent_ls_gramophone';
import { onHomeworkFinish } from '../script/util'; import { onHomeworkFinish } from '../script/util_ls_gramophone';
import pg from './pg_ls_gramophone';
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -33,6 +34,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -33,6 +34,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node) @property(cc.Node)
btn_last: cc.Node = null; btn_last: cc.Node = null;
@property(cc.Node)
btn_audio_off: cc.Node = null;
@property(cc.Node)
btn_audio_on: cc.Node = null;
// 录音中 // 录音中
_recording = false; _recording = false;
...@@ -47,6 +52,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -47,6 +52,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
_results = []; _results = [];
private _curData = null; private _curData = null;
private isPlayBgAudio: boolean;
addPreloadImage() { addPreloadImage() {
// TODO 根据自己的配置预加载图片资源 // TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pageImage }); this._imageResList.push({ url: this.data.pageImage });
...@@ -88,6 +94,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -88,6 +94,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
}); });
} }
private stopQuestionAudio() {
if (this.questionAudioId > -1) pg.audio.stopAudio(this.questionAudioId);
}
private questionAudioId = -1;
initView() { initView() {
let self = this; let self = this;
const bgNode = cc.find('Canvas/bg'); const bgNode = cc.find('Canvas/bg');
...@@ -102,7 +113,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -102,7 +113,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
play.off('click'); play.off('click');
stop.off('click'); stop.off('click');
play.on('click', () => { play.on('click', () => {
cc.audioEngine.stopAll(); this.stopQuestionAudio();
play.active = false; play.active = false;
stop.active = true; stop.active = true;
...@@ -110,15 +121,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -110,15 +121,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
stop.on('click', () => { stop.on('click', () => {
this.resetText(); this.resetText();
this.resetRecord(); this.resetRecord();
cc.audioEngine.stopAll(); this.stopQuestionAudio();
play.active = true; play.active = true;
stop.active = false; stop.active = false;
pg.audio.playAudioByUrl(this.data.questions[this.roundIdx].audio, (() => {
this.playAudioByUrl(this.data.questions[this.roundIdx].audio, () => {
play.active = false; play.active = false;
stop.active = true; stop.active = true;
}); })).then((audioId: number) => {
this.questionAudioId = audioId;
})
}); });
let pag = cc.find("PageView", this.node); let pag = cc.find("PageView", this.node);
pag.on('page-turning', this.pageTurning, this); pag.on('page-turning', this.pageTurning, this);
...@@ -143,7 +155,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -143,7 +155,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
element.on('click', () => { element.on('click', () => {
this.resetText(); this.resetText();
this.resetRecord(); this.resetRecord();
cc.audioEngine.stopAll(); // cc.audioEngine.stopAll();
this.stopQuestionAudio();
play.active = false; play.active = false;
stop.active = true; stop.active = true;
...@@ -162,7 +175,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -162,7 +175,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.resetText(); this.resetText();
this.resetRecord(); this.resetRecord();
cc.audioEngine.stopAll(); // cc.audioEngine.stopAll();
this.stopQuestionAudio();
play.active = false; play.active = false;
stop.active = true; stop.active = true;
...@@ -186,7 +200,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -186,7 +200,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
myrecord.on('click', () => { myrecord.on('click', () => {
this.resetText(); this.resetText();
this.resetRecord(); this.resetRecord();
cc.audioEngine.stopAll(); // cc.audioEngine.stopAll();
this.stopQuestionAudio();
element.getComponent(Item).playRecord(); element.getComponent(Item).playRecord();
// //
if (this._records[this.roundIdx][index] != null) { if (this._records[this.roundIdx][index] != null) {
...@@ -196,7 +211,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -196,7 +211,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
}); });
myrecord_play.on('click', () => { myrecord_play.on('click', () => {
cc.audioEngine.stopAll(); // cc.audioEngine.stopAll();
this.stopQuestionAudio();
element.getComponent(Item).stopRecord(); element.getComponent(Item).stopRecord();
}); });
} }
...@@ -383,6 +399,28 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -383,6 +399,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.btn_last.on(cc.Node.EventType.TOUCH_END, this.onLast, this); this.btn_last.on(cc.Node.EventType.TOUCH_END, this.onLast, this);
this.setPagBg(); this.setPagBg();
this.refreshArrow(); this.refreshArrow();
if (this.data.bgAudio && this.data.bgAudio != "") {
this.btn_audio_on.active = true;
}
}
private onAudioOn() {
this.btn_audio_off.active = true;
this.btn_audio_on.active = false;
this.isPlayBgAudio = false;
this.stopBgAudio();
}
private onAudioOff() {
this.btn_audio_on.active = true;
this.btn_audio_off.active = false;
this.isPlayBgAudio = true;
this.playBgAudio();
}
private playBgAudio() {
if (!this.isPlayBgAudio) return;
cc.audioEngine.resumeMusic();
}
private stopBgAudio() {
cc.audioEngine.pauseMusic();
} }
private roundIdx; private roundIdx;
private setPagBg() { private setPagBg() {
...@@ -390,14 +428,15 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -390,14 +428,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
let stop = cc.find('Canvas/btn_stop'); let stop = cc.find('Canvas/btn_stop');
play.active = false; play.active = false;
stop.active = true; stop.active = true;
cc.audioEngine.stopAll(); // cc.audioEngine.stopAll();
this.stopQuestionAudio();
this.resetText(); this.resetText();
this.resetRecord(); this.resetRecord();
let pag = cc.find("PageView", this.node); let pag = cc.find("PageView", this.node);
let idx = pag.getComponent(cc.PageView).getCurrentPageIndex(); let idx = pag.getComponent(cc.PageView).getCurrentPageIndex();
let data = this.data.questions[this.roundIdx].pageImage; let data = this.data.questions[this.roundIdx].pageImage;
this.getSpriteFrimeByUrl(data , (sp) => {//+ '?x-oss-process=image/resize,m_fill,h_520,w_560' this.getSpriteFrimeByUrl(data, (sp) => {//+ '?x-oss-process=image/resize,m_fill,h_520,w_560'
// this.getSpriteFrimeByUrl(this.data.pageImage, (sp) => { // this.getSpriteFrimeByUrl(this.data.pageImage, (sp) => {
cc.find('Canvas/bg_img/img').getComponent(cc.Sprite).spriteFrame = sp; cc.find('Canvas/bg_img/img').getComponent(cc.Sprite).spriteFrame = sp;
cc.find('Canvas/bg_img/img').width = 435; cc.find('Canvas/bg_img/img').width = 435;
...@@ -528,6 +567,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -528,6 +567,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (str === 'start' || str === 'restart') { if (str === 'start' || str === 'restart') {
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
this.playLocalAudio('btn'); this.playLocalAudio('btn');
pg.audio.playBgAudioByUrl(this.data.bgAudio);
this.hideTip(); this.hideTip();
} else if (str === 'record_start') { } else if (str === 'record_start') {
} else if (str === 'record_stop') { } else if (str === 'record_stop') {
...@@ -544,3 +584,4 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -544,3 +584,4 @@ export default class SceneComponent extends MyCocosSceneComponent {
}); });
} }
} }
class Emitter {
static instance;
static getInstance() {
if (!Emitter.instance) {
Emitter.instance = new Emitter();
}
return Emitter.instance;
}
_name: any;
_callbacks: any;
constructor(name = "") {
this._name = name;
this._callbacks = {};
return this;
}
on(event, fn) {
this.off(event);
if (!this._callbacks[event]) this._callbacks[event] = [];
this._callbacks[event].push(fn);
};
once(event, fn) {
function on() {
this.off(event, on);
fn.apply(this, arguments);
}
on.fn = fn;
this.on(event, on);
};
off(event, fn?: any) {
// all
if (0 == arguments.length) {
this._callbacks = {};
return;
}
// specific event
let callbacks = this._callbacks[event];
if (!callbacks) return;
// remove all handlers
if (1 == arguments.length) {
delete this._callbacks[event];
return;
}
// remove specific handler
let cb;
for (let i = 0; i < callbacks.length; i++) {
cb = callbacks[i];
if (cb === fn || cb.fn === fn) {
callbacks.splice(i, 1);
break;
}
}
return;
}
emit(event, ...args) {
this._callbacks = this._callbacks || {};
// let args = [].slice.call(arguments, 1);
let callbacks = this._callbacks[event];
if (callbacks) {
callbacks = callbacks.slice(0);
for (let i = 0, len = callbacks.length; i < len; ++i) {
callbacks[i].apply(this, args);
}
}
}
listeners(event) {
this._callbacks = this._callbacks || {};
return this._callbacks[event] || [];
};
hasListeners(event) {
return !!this.listeners(event).length;
};
}
let pg = {
logger: {
d: function (str) {
cc.log(str);
return null;
},
i: function (str) {
cc.log(str);
return null;
},
w: function (str) {
cc.warn(str);
return null;
}
},
view: {
//---------------------节点管理------------------------------
//创建节点
createNode() {
let node = new cc.Node();
return node;
},
//添加节点
addChild(item, child, zIndex) {
if (!child) return console.log("addChild error ->请传入子节点");
if (!item) return console.log("addChild error ->请传入父节点");
let node = item.node ? item.node : item;
if (!node) return console.log("addChild error ->请传入父节点");
if (child.parent)
return pg.logger.w("此节点已经有父节点->" + child.name);
if (zIndex >= 0) {
node.addChild(child, zIndex)
} else {
node.addChild(child);
}
return true;
},
//删除子节点
removeChild(item, child) {
if (!item) return pg.logger.w("节点remove失败,传入了错误的item");
let node = item.node ? item.node : item;
if (child.parent && child.parent == node) {
node.removeChild(child);
child.destroy();
}
return true;
},
removeSelf(item) {
if (!item) return pg.logger.w("节点移除失败,传入了错误的item");
let node = item.node ? item.node : item;
node.removeFromParent();
node.destroy();
},
//删除所有子节点
removChildren(item) {
if (!item) return pg.logger.w("节点remove失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!node.parent) return pg.logger.w("节点remove失败,传入了错误的item");
node.removeAllChildren();
return true;
},
//查找节点
find(item, childPath): cc.Node {
if (typeof item == "string") {
childPath = item;
item = null;
}
if (!childPath || childPath == '' || typeof childPath != 'string') return pg.logger.w("findChildByPath error->" + "请传入路径");
let child = null;
if (item) {
let node = item.node ? item.node : item;
if (!node.children || node.children.length == 0) return pg.logger.w("findChild error->" + "找不到此节点,请检查层级路径:" + childPath);
child = cc.find(childPath, node);
} else {
child = cc.find(childPath);
}
if (!child) return pg.logger.w("findChildByPath error->" + "找不到此节点,请检查层级路径:" + childPath);
return child;
},
//--------------------触控事件--------------------------------
//添加监听
touchOn(item, callback, target) {
if (!item) return pg.logger.w("添加按钮响应失败,传入了错误的item");
if (!callback || !target) return pg.logger.w("添加按钮响应失败,传入了空回调");
let node = item.node ? item.node : item;
node.on(cc.Node.EventType.TOUCH_END, callback, target);
return true;
},
//移除监听
touchOff(item, callback, target) {
if (!item) return pg.logger.w("移除按钮响应失败,传入了错误的item");
if (!callback || !target) return pg.logger.w("移除按钮响应失败,传入了空回调");
let node = item.node ? item.node : item;
if (!node || !node.parent) return pg.logger.w("节点已移除");
node.off(cc.Node.EventType.TOUCH_END, callback, target);
return true;
},
//是否允许点击
touchEnable(item, isEnable) {
if (!item) return pg.logger.w("设置按钮响应失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!node) return pg.logger.w("设置按钮响应失败,传入了错误的item");
let btn = node.getComponent(cc.Button);
if (!btn) return pg.logger.w("当前节点没有添加button->" + node.name);
btn.interactable = isEnable;
return true;
},
//-------------------渲染相关---------------------------------
//显示隐藏
visible(item, isVisible) {
if (!item) return pg.logger.w("节点显示失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!node || !node.parent) return pg.logger.w("节点已移除");
node.active = isVisible;
return true;
},
//更换图片
setImg(item, res) {
return new Promise((resolve, reject) => {
if (!item) return pg.logger.w("图片更换失败,传入了错误的item");
if (!res) return pg.logger.w("图片更换失败,传入了错误的res");
pg.load.loadImg(res).then((spriteFrame: cc.SpriteFrame) => {
if (!cc.isValid(item)) return pg.logger.i("节点已销毁");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
let component = node.getComponent(cc.Sprite);
let { width, height } = spriteFrame.getRect();
component.spriteFrame = spriteFrame;
resolve({ width, height });
})
})
},
setNetImg(item, res, { w, h }) {
return new Promise((resolve, reject) => {
if (!item) return pg.logger.w("图片更换失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!res) {
if (node) node.active = false;
return pg.logger.w("图片更换失败,传入了错误的res");
}
if (!node) return pg.logger.w("图片更换失败,传入了错误的item");
if (node.net_url == res) return;
node.active = false;//
pg.load.loadNetImg(res).then((texture: cc.Texture2D) => {
if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
let nw = node.width = texture.width;
let nh = node.height = texture.height;
let component = node.getComponent(cc.Sprite);
let spriteFrame = new cc.SpriteFrame(texture);
component.spriteFrame = spriteFrame;
node.net_url = res;
if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
if (!node) return pg.logger.w("节点已销毁");
if (w && h) {
let scaleX = w / nw;
let scaleY = h / nh;
let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scale;
node.height = nh * scale;
}
node.active = true;
resolve({ w: nw, h: nh });
})
})
},
switchMaterial(item, id0 = 0, id1 = 1) {
let material0 = item.getMaterial(id0);
let material1 = item.getMaterial(id1);
item.setMaterial(id0, material1);
item.setMaterial(id1, material0);
},
//更改文字
setString(item, text, count = 0) {
if (!item) return pg.logger.w("节点text失败,传入了错误的item");
if (count > 0) {
let parse_str = function (str, count) {
if (!str) return "";
var segmants = str.split('+');
str = segmants.join('');
var len = 0;
var idx = 0;
for (var i = 0; i < str.length; i++) {
var p = /[^x00-xff]/g;
var a = str.charAt(i);
if (p.test(a)) {
len += 2;
idx++;
}
else {
len += 1;
idx++;
}
if (len >= count * 2)
break;
}
return str.substr(0, idx);
}
text = parse_str(text, count);
}
let node = item.node ? item.node : item;
if (!node) return;
let component = node.getComponent(cc.Label);//组件功能 非node的功能
component.string = text;
return true;
},
//更变颜色
setColor(item, color, outlineWidth = -1) {
if (!item) return pg.logger.w("setColor warn->传入了错误的item");
let RGB = this.colorRgb(color);
if (!RGB || RGB.length == 0) return pg.logger.w("color ->传入了错误的color");
item.color = new cc.Color(RGB[0], RGB[1], RGB[2]);
if (outlineWidth < 0) return;
let LabelOutline = item.getComponent(cc.LabelOutline);
if (!LabelOutline) return pg.logger.w("LabelOutline warn->未添加描边");
LabelOutline.width = outlineWidth;
},
colorRgb(color) {
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
var sColor = color;
if (sColor && reg.test(sColor)) {
if (sColor.length === 4) {
var sColorNew = "#";
for (var i = 1; i < 4; i += 1) {
sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
}
sColor = sColorNew;
}
//处理六位的颜色值
var sColorChange = [];
for (var i = 1; i < 7; i += 2) {
sColorChange.push(parseInt("0x" + sColor.slice(i, i + 2)));
}
return sColorChange;
} else {
return sColor;
}
},
//-------------------动画播放--------------------------------
playSpineAnimation(item, aniName, loop) {
if (!item || !cc.isValid(item)) return pg.logger.w("动画播放失败,传入了错误的item");
if (!aniName) return pg.logger.w("动画播放失败,传入了错误的aniName");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.w("节点已销毁");
let skl = node.getComponent(sp.Skeleton);
skl.setAnimation(0, aniName, loop);
return skl;
},
playDBAnimation(item, aniName, loop = -1) {
if (!item || !cc.isValid(item)) return pg.logger.w("动画播放失败,传入了错误的item");
if (!aniName) return pg.logger.w("动画播放失败,传入了错误的aniName");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.w("节点已销毁");
let skl: dragonBones.ArmatureDisplay = node.getComponent(dragonBones.ArmatureDisplay);
skl.playAnimation(aniName, loop);
return skl;
},
clone(node: cc.Node) {
return cc.instantiate(node)
}
},
load: {
//资源加载
// loadBundle: function (bundleName) {
// return new Promise((resolve, reject) => {
// // let hallBundle = cc.assetManager.getBundle(`hall`);
// // hallBundle.releaseAll();
// // cc.assetManager.removeBundle(hallBundle);
// let bundle = cc.assetManager.getBundle(bundleName);
// if (bundle) return resolve('');
// cc.assetManager.loadBundle(bundleName, (err, bundle) => {
// if (err) return cc.error(err);
// resolve(bundle);
// });
// });
// },
loadRes: function (res, type, bundleName) {
//此处需要二次封装,新的存在assetbundle
return new Promise((resolve, reject) => {
cc.loader.loadRes(res, type, (err, data) => {
if (err && !data) return resolve(pg.logger.d('loading loadRes error-> ' + res));
resolve(data);
});
})
},
loadImg: function (url) {
return new Promise((resolve, reject) => {
this.loadRes(url, cc.SpriteFrame).then((data) => {
if (!data || data.length == 0) return;
resolve(data);
})
})
},
loadPrefab: function (path = "") {
return new Promise((resolve, reject) => {
let url = "/prefabs/" + path;
this.loadRes(url, cc.Prefab).then((data) => {
if (!data || data.length == 0) return reject();
return resolve(cc.instantiate(data));
})
})
},
loadNetImg: function (url) {
return new Promise((resolve, reject) => {
cc.loader.load({ url }, (err, texture) => {
if (err && !texture) return resolve(pg.logger.w('loading loadRes warn-> ' + texture));
resolve(texture);
});
})
},
loadDB(item, config) {
return new Promise((resolve, reject) => {
if (!config.png || !config.ske || !config.tex) {
return resolve('');
}
pg.load.loadNetRes(config.png).then((png: any) => {
pg.load.loadNetRes(config.ske).then((ske: any) => {
pg.load.loadNetRes(config.tex).then((tex: any) => {
var atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = JSON.stringify(tex.json);
atlas.texture = png;
var asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = JSON.stringify(ske.json);
let dragonDisplay = item.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
//设置
let defaultArmature = ske.json.armature[0];//aramture 所有的骨骼名称
dragonDisplay.armatureName = defaultArmature.name;
resolve(defaultArmature.animation[0].name);
})
})
})
});
},
loadNetRes: function (url) {
return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, info) => {
if (err) return resolve(pg.logger.w('loading loadRes warn-> ' + err));
resolve(info);
});
})
},
},
localStorage: {
//本地存储
setItem: function (key, val) {
cc.sys.localStorage.setItem(key, val);
},
getItem: function (key, defVal) {
return cc.sys.localStorage.getItem(key) || defVal;
}
},
http: {
//http访问
send: function (type, url, data, callback) {
return new Promise((resolve) => {
return setTimeout(() => {
return resolve({ status: 200 });
}, 100 + Math.random() * 300);
let xhr = cc.loader.getXMLHttpRequest();
xhr.timeout = 5000;
xhr.responseType = "text";
xhr.open(type, url, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = () => {
if (xhr.readyState !== 4) return;
if (xhr.status >= 200 && xhr.status < 300) {
try {
let resp = xhr.responseText;
pg.logger.d("resp->" + JSON.stringify(resp));
callback(resp);
resolve(resp);
} catch (e) {
}
}
else {
}
};
xhr.onerror = (e) => {
pg.logger.w("onerror->" + url);
};
xhr.ontimeout = (e) => {
pg.logger.w("ontimeout->" + url);
};
xhr.send(data);
})
}
},
audio: {
playAudioByUrl(audio_url, cb = null, loadCb = null) {
return new Promise((resolve, reject) => {
if (!audio_url) return resolve(null);
cc.assetManager.loadRemote(audio_url, (err, audioClip: any) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
cb && cb();
});
loadCb && loadCb(audioId);
resolve(audioId);
});
});
},
stopAudio(audioId) {
if (audioId < 0) return;
cc.audioEngine.stopEffect(audioId);
},
playBgAudioByUrl(audio_url, cb = null, loadCb = null) {
return new Promise((resolve, reject) => {
if (!audio_url) return resolve(null);
cc.assetManager.loadRemote(audio_url, (err, audioClip: any) => {
const audioId = cc.audioEngine.playMusic(audioClip, true);
cc.audioEngine.setFinishCallback(audioId, () => {
cb && cb();
});
loadCb && loadCb(audioId);
resolve(audioId);
});
});
},
playAudio(audioClip, cb = null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
return audioId;
}
}
},
hw: {
playLocalAudio(audioName, loop = false) {
console.log("play audio->" + audioName);
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, loop);
resolve(id);
})
}
},
event: Emitter.getInstance()
};
export default pg;
{
"ver": "1.0.8",
"uuid": "6488649d-5145-4050-85f1-c408de89e931",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* @FilePath: \ls_gramophone\assets\ls_gramophone\script\Item.ts * @FilePath: \ls_gramophone\assets\ls_gramophone\script\Item.ts
*/ */
import simpleLabel from './simpleLabel'; import simpleLabel from './simpleLabel_ls_gramophone';
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -201,3 +201,4 @@ export default class Item extends cc.Component { ...@@ -201,3 +201,4 @@ export default class Item extends cc.Component {
}); });
} }
} }
import { defaultData } from '../script/defaultData'; import { defaultData } from '../script/defaultData_ls_gramophone';
export class MyCocosSceneComponent extends cc.Component { export class MyCocosSceneComponent extends cc.Component {
// 生命周期 onLoad // 生命周期 onLoad
...@@ -154,3 +154,4 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -154,3 +154,4 @@ export class MyCocosSceneComponent extends cc.Component {
} }
} }
} }
...@@ -13,6 +13,7 @@ export const defaultData = { ...@@ -13,6 +13,7 @@ export const defaultData = {
"questionTextAudio": "http://staging-teach.cdn.ireadabc.com/92ddbc65e9af775f7a8450a5bef1a732.mp3", "questionTextAudio": "http://staging-teach.cdn.ireadabc.com/92ddbc65e9af775f7a8450a5bef1a732.mp3",
"questionTextAudioName": "热气球大战 游戏说明.mp3", "questionTextAudioName": "热气球大战 游戏说明.mp3",
"pageAudio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3', // 整体音频 "pageAudio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3', // 整体音频
"bgAudio": "https://staging-teach.cdn.ireadabc.com/ed84c18cc5f696ceaaf488ff98c228fe_l.mp3",
"questions": [{ "questions": [{
"options": [{ "options": [{
"duration": 7, "duration": 7,
...@@ -70,3 +71,4 @@ export const defaultData = { ...@@ -70,3 +71,4 @@ export const defaultData = {
} }
] ]
} }
...@@ -184,3 +184,4 @@ export default class simpleLabel extends cc.Component { ...@@ -184,3 +184,4 @@ export default class simpleLabel extends cc.Component {
return poss; return poss;
} }
} }
...@@ -412,3 +412,4 @@ export function onHomeworkFinish(data: any = null) { ...@@ -412,3 +412,4 @@ export function onHomeworkFinish(data: any = null) {
console.log('onHomeworkFinish'); console.log('onHomeworkFinish');
} }
} }
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 750, "height": 750,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_bg": { "bg_bg_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "5b8fa8f8-69f7-4cd7-8461-4a98c525f3fa", "uuid": "5b8fa8f8-69f7-4cd7-8461-4a98c525f3fa",
"rawTextureUuid": "b6c84980-825c-4220-b49b-920d9d5ac752", "rawTextureUuid": "b6c84980-825c-4220-b49b-920d9d5ac752",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 111, "height": 111,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_title": { "bg_title_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "915feae7-7c90-4232-a713-aa69e40fa05d", "uuid": "915feae7-7c90-4232-a713-aa69e40fa05d",
"rawTextureUuid": "d23fbff9-6c53-40e8-aecb-21885c6d3263", "rawTextureUuid": "d23fbff9-6c53-40e8-aecb-21885c6d3263",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 650, "height": 650,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_pic": { "bg_pic_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "a8f6ec27-c56d-48fd-b029-55fd426be8bf", "uuid": "a8f6ec27-c56d-48fd-b029-55fd426be8bf",
"rawTextureUuid": "0f5af10f-a566-4d98-9dd1-0015373af532", "rawTextureUuid": "0f5af10f-a566-4d98-9dd1-0015373af532",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 83, "height": 83,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_play": { "btn_play_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "7e839787-bfe9-4d1e-8192-f7d4a52bfd4b", "uuid": "7e839787-bfe9-4d1e-8192-f7d4a52bfd4b",
"rawTextureUuid": "044d2236-d281-4dba-b956-88c4e6205966", "rawTextureUuid": "044d2236-d281-4dba-b956-88c4e6205966",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 83, "height": 83,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_stop": { "btn_stop_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "97a0cdc6-8615-4377-b784-d0f7786bf562", "uuid": "97a0cdc6-8615-4377-b784-d0f7786bf562",
"rawTextureUuid": "3776685d-8e08-4b72-b511-66e511975da8", "rawTextureUuid": "3776685d-8e08-4b72-b511-66e511975da8",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 709, "height": 709,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_word": { "bg_word_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "ee8f8646-6541-4821-802a-9dd1226bb6a0", "uuid": "ee8f8646-6541-4821-802a-9dd1226bb6a0",
"rawTextureUuid": "88d5ece8-5b48-4e8a-ad59-9dbb615eed3c", "rawTextureUuid": "88d5ece8-5b48-4e8a-ad59-9dbb615eed3c",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 47, "height": 47,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_myrecord": { "btn_myrecord_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "07a5995e-da34-4901-b2ef-5a27aa2a51a9", "uuid": "07a5995e-da34-4901-b2ef-5a27aa2a51a9",
"rawTextureUuid": "e86902af-2ceb-4d1d-99b8-3272911cbf47", "rawTextureUuid": "e86902af-2ceb-4d1d-99b8-3272911cbf47",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 47, "height": 47,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_myrecord_play": { "btn_myrecord_play_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "83dfc0af-38c5-4a56-9f73-6134e381c9a0", "uuid": "83dfc0af-38c5-4a56-9f73-6134e381c9a0",
"rawTextureUuid": "2496c569-e161-4efb-bfea-552d09d7ddb9", "rawTextureUuid": "2496c569-e161-4efb-bfea-552d09d7ddb9",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 51, "height": 51,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_record_click": { "btn_record_click_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "9291d0e3-7df4-49d8-b234-186ee3c26d71", "uuid": "9291d0e3-7df4-49d8-b234-186ee3c26d71",
"rawTextureUuid": "1547ca2f-0ee1-4628-964c-955f837e7806", "rawTextureUuid": "1547ca2f-0ee1-4628-964c-955f837e7806",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 51, "height": 51,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_record": { "btn_record_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "4cfe1f8a-a4b4-48cc-8bcd-8866448462d0", "uuid": "4cfe1f8a-a4b4-48cc-8bcd-8866448462d0",
"rawTextureUuid": "6dd0b075-08d6-4f3d-9067-9f74a242679b", "rawTextureUuid": "6dd0b075-08d6-4f3d-9067-9f74a242679b",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 47, "height": 47,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon_myrecord1": { "icon_myrecord1_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "49ba3b54-d5a3-4011-ad1e-70edff5ed3d1", "uuid": "49ba3b54-d5a3-4011-ad1e-70edff5ed3d1",
"rawTextureUuid": "9e032bab-64f8-4496-a7f7-d9b1a1178511", "rawTextureUuid": "9e032bab-64f8-4496-a7f7-d9b1a1178511",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 47, "height": 47,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon_myrecord2": { "icon_myrecord2_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "2ade5076-4bc6-4526-b12f-04afe606920d", "uuid": "2ade5076-4bc6-4526-b12f-04afe606920d",
"rawTextureUuid": "7e1e3da1-0c5b-4e35-ab3c-b2e5e74bdb0a", "rawTextureUuid": "7e1e3da1-0c5b-4e35-ab3c-b2e5e74bdb0a",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 47, "height": 47,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon_myrecord3": { "icon_myrecord3_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "6293f1a4-dcbd-4418-8b28-fea36246172a", "uuid": "6293f1a4-dcbd-4418-8b28-fea36246172a",
"rawTextureUuid": "2e7f987a-7d6b-4117-bb87-98ce51cb561e", "rawTextureUuid": "2e7f987a-7d6b-4117-bb87-98ce51cb561e",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 24, "height": 24,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon_tip": { "icon_tip_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "1aae5979-bee8-4b8f-a281-b80cd70241c4", "uuid": "1aae5979-bee8-4b8f-a281-b80cd70241c4",
"rawTextureUuid": "dad1d295-5c60-47bd-9359-2977376b08e4", "rawTextureUuid": "dad1d295-5c60-47bd-9359-2977376b08e4",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 370, "height": 370,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg": { "bg_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "b2b4f91f-9686-4ec3-87c2-c899cf81af32", "uuid": "b2b4f91f-9686-4ec3-87c2-c899cf81af32",
"rawTextureUuid": "a39b73de-86c0-428c-9f02-e89c0d18c2d9", "rawTextureUuid": "a39b73de-86c0-428c-9f02-e89c0d18c2d9",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 112, "height": 112,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_restart": { "btn_restart_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "dcaec617-c484-4947-9e1f-2a8aa0db47b0", "uuid": "dcaec617-c484-4947-9e1f-2a8aa0db47b0",
"rawTextureUuid": "694a8ab6-0cc0-43ac-b106-2cf16779c7aa", "rawTextureUuid": "694a8ab6-0cc0-43ac-b106-2cf16779c7aa",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 112, "height": 112,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_start": { "btn_start_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "7323747f-f4ca-4ad2-b83b-7bf4754af17e", "uuid": "7323747f-f4ca-4ad2-b83b-7bf4754af17e",
"rawTextureUuid": "6b75c36e-5db0-4500-be2a-0d3ef573bb20", "rawTextureUuid": "6b75c36e-5db0-4500-be2a-0d3ef573bb20",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 88, "height": 88,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_countdown": { "bg_countdown_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "6bd4223d-195a-4f70-be53-168346c39c99", "uuid": "6bd4223d-195a-4f70-be53-168346c39c99",
"rawTextureUuid": "224882b8-db5c-46e7-bc79-08387be3a2b3", "rawTextureUuid": "224882b8-db5c-46e7-bc79-08387be3a2b3",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 54, "height": 54,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_arrow": { "btn_arrow_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "d516539c-34b9-4ea5-9ad6-e9b755dcdd08", "uuid": "d516539c-34b9-4ea5-9ad6-e9b755dcdd08",
"rawTextureUuid": "9082c14f-ac84-4269-a26d-ca137636e51b", "rawTextureUuid": "9082c14f-ac84-4269-a26d-ca137636e51b",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 54, "height": 54,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_last": { "btn_last_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "3aeb6cd9-61ed-4228-90b6-f0d92d7b0fe4", "uuid": "3aeb6cd9-61ed-4228-90b6-f0d92d7b0fe4",
"rawTextureUuid": "d2f08bde-6a56-48ba-9917-4000f6c17424", "rawTextureUuid": "d2f08bde-6a56-48ba-9917-4000f6c17424",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 101, "height": 101,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_record_start": { "btn_record_start_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "eb50d182-5552-4842-b101-2b258fbe5598", "uuid": "eb50d182-5552-4842-b101-2b258fbe5598",
"rawTextureUuid": "660adc39-d4c0-4926-8b04-335537b93b65", "rawTextureUuid": "660adc39-d4c0-4926-8b04-335537b93b65",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 101, "height": 101,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_record_stop": { "btn_record_stop_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "72c17ac2-d0ee-4b4d-bb3f-06db48ae962e", "uuid": "72c17ac2-d0ee-4b4d-bb3f-06db48ae962e",
"rawTextureUuid": "deef01da-ab08-46bb-8a40-c768458983a8", "rawTextureUuid": "deef01da-ab08-46bb-8a40-c768458983a8",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 2, "height": 2,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"default_sprite_splash": { "default_sprite_splash_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "6dbe7207-203b-481b-aaca-7cf179c77e26", "uuid": "6dbe7207-203b-481b-aaca-7cf179c77e26",
"rawTextureUuid": "6d121f1d-9e09-49a4-9afe-6c959d9e6253", "rawTextureUuid": "6d121f1d-9e09-49a4-9afe-6c959d9e6253",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 83, "height": 83,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon_record": { "icon_record_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "60136ca7-0fff-46dc-bc51-b9dca51cdc7b", "uuid": "60136ca7-0fff-46dc-bc51-b9dca51cdc7b",
"rawTextureUuid": "96c1ac51-e7ba-481a-931c-dbf577c505ed", "rawTextureUuid": "96c1ac51-e7ba-481a-931c-dbf577c505ed",
......
{
"ver": "2.3.5",
"uuid": "e52b3ad4-d6e6-424d-a80e-e3e7dc09c46b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"ls_bg_audio_off_ls_gramophone": {
"ver": "1.0.4",
"uuid": "f35ca32b-5204-4d64-a1f9-4e0679571494",
"rawTextureUuid": "e52b3ad4-d6e6-424d-a80e-e3e7dc09c46b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5a25b1e6-5c39-41c0-859e-9454901156b8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"ls_bg_audio_on_ls_gramophone": {
"ver": "1.0.4",
"uuid": "1532fa8c-7462-4f06-834e-5cb2cbb663f5",
"rawTextureUuid": "5a25b1e6-5c39-41c0-859e-9454901156b8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "ebe09a20-b069-42b6-86e8-55222f82afbc", "uuid": "4fb2dce4-3afb-45e2-a9e7-f49989dc6271",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{
"name": "录音动画",
"SubTexture": [
{
"name": "提示/椭圆_11",
"x": 1,
"height": 208,
"y": 1,
"width": 205
},
{
"name": "提示/椭圆_11_拷贝",
"x": 208,
"height": 156,
"y": 1,
"width": 156
},
{
"name": "提示/组_1",
"x": 366,
"height": 130,
"y": 1,
"width": 90
}
],
"height": 256,
"imagePath": "ly_tex.png",
"width": 512
}
\ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 256, "height": 256,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"录音动画_tex": { "ly_tex_ls_gramophone": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "05c3f6c4-4249-4082-adec-15804c2598bc", "uuid": "05c3f6c4-4249-4082-adec-15804c2598bc",
"rawTextureUuid": "30ec20dc-46c1-4856-9367-eca6abae46f4", "rawTextureUuid": "30ec20dc-46c1-4856-9367-eca6abae46f4",
......
{"name":"录音动画","SubTexture":[{"name":"提示/椭圆_11","x":1,"height":208,"y":1,"width":205},{"name":"提示/椭圆_11_拷贝","x":208,"height":156,"y":1,"width":156},{"name":"提示/组_1","x":366,"height":130,"y":1,"width":90}],"height":256,"imagePath":"录音动画_tex.png","width":512}
\ No newline at end of file
...@@ -102,6 +102,30 @@ ...@@ -102,6 +102,30 @@
</div> </div>
<br /> <br />
<div class="border-dashed" style="margin-left: 60px;width: 750px;">
<div class="word-input-title">
<div>
<span>游戏背景音乐: </span>
</div>
<div>
<span style="color:rgb(201, 200, 200);margin-left:5px;font-size: 10px;"> *可不传,不传既无背景音乐</span>
</div>
</div>
<div style="display:flex ;margin-top: 10px;">
<div>
<app-audio-recorder [audioUrl]="item.bgAudio" [_audioName]="item.bgAudioName"
(audioUploaded)="onAudioUploadSuccess($event, item, 'bgAudio')"
(audioName)="onAudioName($event, item, 'bgAudioName')"></app-audio-recorder>
</div>
<!-- <div style="margin: 5px">
<span>{{ item.bgAudioName}}</span>
</div> -->
<div style="margin: 5px">
<span style="color: #169BD5;text-decoration: underline;" type="button" nzDanger
(click)="deleteBgAudio()">删除背景音</span>
</div>
</div>
</div>
<!--页面区域--> <!--页面区域-->
<div nz-row style="margin: 20px;width: 1000px;"> <div nz-row style="margin: 20px;width: 1000px;">
......
...@@ -67,6 +67,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -67,6 +67,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.save(); this.save();
} }
this.item.bgAudio = "";
this.item.bgAudioName = "";
if (!this.item.questions) { if (!this.item.questions) {
this.item.questions = []; this.item.questions = [];
this.addPage() this.addPage()
...@@ -166,6 +168,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -166,6 +168,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
} }
deleteBgAudio() {
this.item.bgAudio = "";
this.item.bgAudioName = "";
this.save();
}
isVisible = false; isVisible = false;
deleteTitle = "是否删除题目"; deleteTitle = "是否删除题目";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment