Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
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
middleLayer_for_debug
Commits
56ac973c
Commit
56ac973c
authored
Dec 19, 2021
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 原生录音测试
parent
eca806c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1000 additions
and
240 deletions
+1000
-240
middleLayer_for_debug.fire
...ts/middleLayer_for_debug/scene/middleLayer_for_debug.fire
+988
-240
middleLayer.js
assets/middleLayer_for_debug/script/middleLayer.js
+12
-0
No files found.
assets/middleLayer_for_debug/scene/middleLayer_for_debug.fire
View file @
56ac973c
...
...
@@ -295,22 +295,22 @@
"__id__": 20
},
{
"__id__": 1
10
"__id__": 1
24
},
{
"__id__": 1
45
"__id__": 1
59
},
{
"__id__": 1
49
"__id__": 1
63
}
],
"_active": true,
"_components": [
{
"__id__": 1
51
"__id__": 1
65
},
{
"__id__": 1
52
"__id__": 1
66
}
],
"_prefab": null,
...
...
@@ -994,13 +994,19 @@
"__id__": 102
},
{
"__id__": 104
"__id__": 109
},
{
"__id__": 116
},
{
"__id__": 118
}
],
"_active": true,
"_components": [
{
"__id__": 1
09
"__id__": 1
23
}
],
"_prefab": null,
...
...
@@ -4277,8 +4283,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
433.571
,
81.418
,
-434.275
,
-121.757
,
0,
0,
0,
...
...
@@ -4448,8 +4454,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "
O
penOSMO",
"_N$string": "
O
penOSMO",
"_string": "
o
penOSMO",
"_N$string": "
o
penOSMO",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
...
...
@@ -4609,7 +4615,7 @@
},
{
"__type__": "cc.Node",
"_name": "Btn
CloseOsmo
",
"_name": "Btn
OpenRecord
",
"_objFlags": 0,
"_parent": {
"__id__": 20
...
...
@@ -4648,8 +4654,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
435.629
,
-
29.71
,
-236.905
,
-
124.147
,
0,
0,
0,
...
...
@@ -4671,7 +4677,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
64Kn4xGW9PSJqoZ7ayrgZu
"
"_id": "
bdOOoFtzVB8IGPbkfPvPJZ
"
},
{
"__type__": "cc.Node",
...
...
@@ -4740,7 +4746,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
a4atTysq5MZYXuAR7OPR0B
"
"_id": "
f85dnHkeBNPo2zvjgTGJQD
"
},
{
"__type__": "cc.Node",
...
...
@@ -4802,7 +4808,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
161xkiPIJCR6CwZaUCvBUI
"
"_id": "
40BxskiThEta5SVX9W7fzi
"
},
{
"__type__": "cc.Label",
...
...
@@ -4819,8 +4825,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "
CloseOSMO
",
"_N$string": "
CloseOSMO
",
"_string": "
开始录音
",
"_N$string": "
开始录音
",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
...
...
@@ -4835,7 +4841,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "
a8iSQfSjVF7qGfo3hxji7I
"
"_id": "
c0otM+O2pNsZDftKMFaQWi
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -4867,7 +4873,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
69ZlIcwzJN5oHS5d/ktceg
"
"_id": "
a0r0QtxR9DfqRuwwhSvBes
"
},
{
"__type__": "cc.Widget",
...
...
@@ -4894,7 +4900,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "
58WyKrehVLu4r0ukhirvsu
"
"_id": "
92grkVyPNCd7kXpDmL0T2J
"
},
{
"__type__": "cc.Button",
...
...
@@ -4976,22 +4982,26 @@
"_N$target": {
"__id__": 96
},
"_id": "
27BjR9SvZAhY/aQBzv9ezW
"
"_id": "
c0MYq9SS1N55yeAzCKqnoj
"
},
{
"__type__": "cc.Node",
"_name": "
ProgressLabel
",
"_name": "
BtnCloseOsmo
",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [],
"_active": false,
"_components": [
"_children": [
{
"__id__": 103
}
],
"_active": true,
"_components": [
{
"__id__": 108
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -5003,8 +5013,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
88.95
,
"height":
50.4
"width":
150
,
"height":
40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -5015,8 +5025,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
216
,
-
168
,
-438.022
,
-
209.664
,
0,
0,
0,
...
...
@@ -5038,60 +5048,27 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "4a4jPKza9MU70DqzTZHZ00"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "0 / 0",
"_N$string": "0 / 0",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "ee0WrmR8hIQbOtXJqrMoQ5"
"_id": "64Kn4xGW9PSJqoZ7ayrgZu"
},
{
"__type__": "cc.Node",
"_name": "
loadingProgress
",
"_objFlags":
0
,
"_name": "
Background
",
"_objFlags":
512
,
"_parent": {
"__id__":
20
"__id__":
102
},
"_children": [
{
"__id__": 10
5
"__id__": 10
4
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 10
7
"__id__": 10
6
},
{
"__id__": 10
8
"__id__": 10
7
}
],
"_prefab": null,
...
...
@@ -5105,8 +5082,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
30
0,
"height":
15
"width":
15
0,
"height":
40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -5118,7 +5095,7 @@
"ctor": "Float64Array",
"array": [
0,
-106.947
,
0
,
0,
0,
0,
...
...
@@ -5140,46 +5117,46 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
8eQzQS+G9EIqiUtunVxOmS
"
"_id": "
a4atTysq5MZYXuAR7OPR0B
"
},
{
"__type__": "cc.Node",
"_name": "
bar
",
"_name": "
Label
",
"_objFlags": 512,
"_parent": {
"__id__": 10
4
"__id__": 10
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
6
"__id__": 10
5
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r":
255
,
"g":
255
,
"b":
255
,
"r":
0
,
"g":
0
,
"b":
0
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height":
15
"width":
15
0,
"height":
40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0
.5
,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-15
0,
0,
0,
0,
0,
...
...
@@ -5202,14 +5179,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
4dGkzjGXpDp47yn3d4Qd9r
"
"_id": "
161xkiPIJCR6CwZaUCvBUI
"
},
{
"__type__": "cc.
Sprite
",
"__type__": "cc.
Label
",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
5
"__id__": 10
4
},
"_enabled": true,
"_materials": [
...
...
@@ -5219,29 +5196,30 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "67e68bc9-dad5-4ad9-a2d8-7e03d458e32f"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "14PkFmJmtK/Yp9AZyo9gVv"
"_string": "closeOSMO",
"_N$string": "closeOSMO",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "a8iSQfSjVF7qGfo3hxji7I"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
4
"__id__": 10
3
},
"_enabled": true,
"_materials": [
...
...
@@ -5252,7 +5230,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
88e79fd5-96b4-4a77-a1f4-312467171014
"
"__uuid__": "
f0048c10-f03e-4c97-b9d3-3506e1d58952
"
},
"_type": 1,
"_sizeMode": 0,
...
...
@@ -5266,34 +5244,17 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "590gTWZEdMwIlULNUksORP"
},
{
"__type__": "cc.ProgressBar",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
},
"_enabled": true,
"_N$totalLength": 300,
"_N$barSprite": {
"__id__": 106
},
"_N$mode": 0,
"_N$progress": 0,
"_N$reverse": false,
"_id": "bc3W7j5EVJRaoW20bSToA3"
"_id": "69ZlIcwzJN5oHS5d/ktceg"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
20
"__id__":
103
},
"_enabled": true,
"alignMode":
2
,
"alignMode":
0
,
"_target": null,
"_alignFlags": 45,
"_left": 0,
...
...
@@ -5308,55 +5269,842 @@
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1
28
0,
"_originalHeight":
72
0,
"_id": "
c87OiuHMRI7YOL5SUoikbx
"
"_originalWidth": 1
0
0,
"_originalHeight":
4
0,
"_id": "
58WyKrehVLu4r0ukhirvsu
"
},
{
"__type__": "cc.
Node
",
"_name": "
ConsoleNode
",
"__type__": "cc.
Button
",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"__id__":
7
"
node
": {
"__id__":
102
},
"_children": [
{
"__id__": 111
},
{
"__id__": 117
},
{
"__id__": 120
},
{
"__id__": 128
},
{
"__id__": 136
}
],
"_active": true,
"_components": [
{
"__id__": 144
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 220
},
"_anchorPoint": {
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 103
},
"_id": "27BjR9SvZAhY/aQBzv9ezW"
},
{
"__type__": "cc.Node",
"_name": "BtnCloseRecord",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [
{
"__id__": 110
}
],
"_active": true,
"_components": [
{
"__id__": 115
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-237.75,
-212.566,
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": "b0CNtDF31GIKeExEh6brpO"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 109
},
"_children": [
{
"__id__": 111
}
],
"_active": true,
"_components": [
{
"__id__": 113
},
{
"__id__": 114
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c4HbUAg4BJULnfqpeSGINO"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 110
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 112
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "860zjp/XxPBYt0Bcm/Olmd"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "结束录音",
"_N$string": "结束录音",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "a8Hfl5kMtDbZEZe5iGp4lX"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "71oMIls3BLoI4/4PLi2l6W"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "a04/ixt/dKHr958wO0xIRg"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 110
},
"_id": "dcTVkN3bpECJDI8qtt0W1A"
},
{
"__type__": "cc.Node",
"_name": "ProgressLabel",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 117
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 88.95,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
216,
-168,
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": "4a4jPKza9MU70DqzTZHZ00"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "0 / 0",
"_N$string": "0 / 0",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "ee0WrmR8hIQbOtXJqrMoQ5"
},
{
"__type__": "cc.Node",
"_name": "loadingProgress",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [
{
"__id__": 119
}
],
"_active": false,
"_components": [
{
"__id__": 121
},
{
"__id__": 122
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 15
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-106.947,
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": "8eQzQS+G9EIqiUtunVxOmS"
},
{
"__type__": "cc.Node",
"_name": "bar",
"_objFlags": 512,
"_parent": {
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 120
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 15
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-150,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "4dGkzjGXpDp47yn3d4Qd9r"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "67e68bc9-dad5-4ad9-a2d8-7e03d458e32f"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "14PkFmJmtK/Yp9AZyo9gVv"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "88e79fd5-96b4-4a77-a1f4-312467171014"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "590gTWZEdMwIlULNUksORP"
},
{
"__type__": "cc.ProgressBar",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"_N$totalLength": 300,
"_N$barSprite": {
"__id__": 120
},
"_N$mode": 0,
"_N$progress": 0,
"_N$reverse": false,
"_id": "bc3W7j5EVJRaoW20bSToA3"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "c87OiuHMRI7YOL5SUoikbx"
},
{
"__type__": "cc.Node",
"_name": "ConsoleNode",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 125
},
{
"__id__": 131
},
{
"__id__": 134
},
{
"__id__": 142
},
{
"__id__": 150
}
],
"_active": true,
"_components": [
{
"__id__": 158
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 220
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
...
...
@@ -5395,20 +6143,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 1
10
"__id__": 1
24
},
"_children": [
{
"__id__": 1
12
"__id__": 1
26
}
],
"_active": false,
"_components": [
{
"__id__": 1
15
"__id__": 1
29
},
{
"__id__": 1
16
"__id__": 1
30
}
],
"_prefab": null,
...
...
@@ -5464,16 +6212,16 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 1
11
"__id__": 1
25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
13
"__id__": 1
27
},
{
"__id__": 1
14
"__id__": 1
28
}
],
"_prefab": null,
...
...
@@ -5529,7 +6277,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
12
"__id__": 1
26
},
"_enabled": true,
"_materials": [
...
...
@@ -5562,7 +6310,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
12
"__id__": 1
26
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5589,7 +6337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
11
"__id__": 1
25
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5621,7 +6369,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
11
"__id__": 1
25
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -5648,16 +6396,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
10
"__id__": 1
24
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
18
"__id__": 1
32
},
{
"__id__": 1
19
"__id__": 1
33
}
],
"_prefab": null,
...
...
@@ -5713,7 +6461,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
17
"__id__": 1
31
},
"_enabled": true,
"_materials": [
...
...
@@ -5745,7 +6493,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
17
"__id__": 1
31
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5772,26 +6520,26 @@
"_name": "Console",
"_objFlags": 0,
"_parent": {
"__id__": 1
10
"__id__": 1
24
},
"_children": [
{
"__id__": 1
21
"__id__": 1
35
}
],
"_active": false,
"_components": [
{
"__id__": 1
24
"__id__": 1
38
},
{
"__id__": 1
25
"__id__": 1
39
},
{
"__id__": 1
26
"__id__": 1
40
},
{
"__id__": 1
27
"__id__": 1
41
}
],
"_prefab": null,
...
...
@@ -5847,16 +6595,16 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 1
20
"__id__": 1
34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
22
"__id__": 1
36
},
{
"__id__": 1
23
"__id__": 1
37
}
],
"_prefab": null,
...
...
@@ -5912,7 +6660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
21
"__id__": 1
35
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5944,7 +6692,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
21
"__id__": 1
35
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5971,7 +6719,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
20
"__id__": 1
34
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -5998,7 +6746,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
20
"__id__": 1
34
},
"_enabled": true,
"_materials": [
...
...
@@ -6018,7 +6766,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
20
"__id__": 1
34
},
"_enabled": true,
"horizontal": false,
...
...
@@ -6030,10 +6778,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 1
21
"__id__": 1
35
},
"content": {
"__id__": 1
21
"__id__": 1
35
},
"_id": "43wBGhGBpFP7OYyNM+j0Ho"
},
...
...
@@ -6042,7 +6790,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
20
"__id__": 1
34
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -6074,20 +6822,20 @@
"_name": "BtnClose",
"_objFlags": 0,
"_parent": {
"__id__": 1
10
"__id__": 1
24
},
"_children": [
{
"__id__": 1
29
"__id__": 1
43
}
],
"_active": false,
"_components": [
{
"__id__": 1
34
"__id__": 1
48
},
{
"__id__": 1
35
"__id__": 1
49
}
],
"_prefab": null,
...
...
@@ -6143,20 +6891,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
28
"__id__": 1
42
},
"_children": [
{
"__id__": 1
30
"__id__": 1
44
}
],
"_active": true,
"_components": [
{
"__id__": 1
32
"__id__": 1
46
},
{
"__id__": 1
33
"__id__": 1
47
}
],
"_prefab": null,
...
...
@@ -6212,13 +6960,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 1
29
"__id__": 1
43
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
31
"__id__": 1
45
}
],
"_prefab": null,
...
...
@@ -6274,7 +7022,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
30
"__id__": 1
44
},
"_enabled": true,
"_materials": [
...
...
@@ -6307,7 +7055,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
43
},
"_enabled": true,
"_materials": [
...
...
@@ -6339,7 +7087,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
43
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -6366,7 +7114,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
42
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -6439,7 +7187,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 1
29
"__id__": 1
43
},
"_id": "54SC9WcmBAZ6cTznyI0o+3"
},
...
...
@@ -6448,7 +7196,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
42
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6475,20 +7223,20 @@
"_name": "BtnOpen",
"_objFlags": 0,
"_parent": {
"__id__": 1
10
"__id__": 1
24
},
"_children": [
{
"__id__": 1
37
"__id__": 1
51
}
],
"_active": false,
"_components": [
{
"__id__": 1
42
"__id__": 1
56
},
{
"__id__": 1
43
"__id__": 1
57
}
],
"_prefab": null,
...
...
@@ -6544,20 +7292,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
36
"__id__": 1
50
},
"_children": [
{
"__id__": 1
38
"__id__": 1
52
}
],
"_active": true,
"_components": [
{
"__id__": 1
40
"__id__": 1
54
},
{
"__id__": 1
41
"__id__": 1
55
}
],
"_prefab": null,
...
...
@@ -6613,13 +7361,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 1
37
"__id__": 1
51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
39
"__id__": 1
53
}
],
"_prefab": null,
...
...
@@ -6675,7 +7423,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
38
"__id__": 1
52
},
"_enabled": true,
"_materials": [
...
...
@@ -6708,7 +7456,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
37
"__id__": 1
51
},
"_enabled": true,
"_materials": [
...
...
@@ -6740,7 +7488,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
37
"__id__": 1
51
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -6767,7 +7515,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
36
"__id__": 1
50
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -6840,7 +7588,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 1
37
"__id__": 1
51
},
"_id": "81HoUuRyJOppi+n4Av/u0p"
},
...
...
@@ -6849,7 +7597,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
36
"__id__": 1
50
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6876,7 +7624,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
10
"__id__": 1
24
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6909,13 +7657,13 @@
"_active": false,
"_components": [
{
"__id__": 1
46
"__id__": 1
60
},
{
"__id__": 1
47
"__id__": 1
61
},
{
"__id__": 1
48
"__id__": 1
62
}
],
"_prefab": null,
...
...
@@ -6971,7 +7719,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
45
"__id__": 1
59
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -6998,7 +7746,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
45
"__id__": 1
59
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -7066,7 +7814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
45
"__id__": 1
59
},
"_enabled": true,
"_materials": [
...
...
@@ -7104,7 +7852,7 @@
"_active": true,
"_components": [
{
"__id__": 1
50
"__id__": 1
64
}
],
"_prefab": null,
...
...
@@ -7160,7 +7908,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
49
"__id__": 1
63
},
"_enabled": true,
"_layoutSize": {
...
...
assets/middleLayer_for_debug/script/middleLayer.js
View file @
56ac973c
...
...
@@ -245,6 +245,18 @@ cc.Class({
window
.
courseware
.
closeOsmo
();
});
cc
.
find
(
'
middleLayer/ui/BtnOpenRecord
'
).
on
(
'
click
'
,
()
=>
{
window
.
courseware
.
startRecord
(
''
);
});
cc
.
find
(
'
middleLayer/ui/BtnCloseRecord
'
).
on
(
'
click
'
,
()
=>
{
window
.
courseware
.
stopRecord
(
0
,
res
=>
{
this
.
log
(
'
--------录音返回结果------------
'
);
this
.
log
(
JSON
.
stringify
(
res
))
this
.
log
(
'
------------------------------
'
);
});
});
const
BtnStartLocal
=
cc
.
find
(
'
middleLayer/ui/BtnStartLocal
'
);
BtnStartLocal
.
on
(
'
click
'
,
()
=>
{
const
addressText
=
cc
.
find
(
'
middleLayer/ui/address
'
);
...
...
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