Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NGT
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_NGT
Commits
ba03f80e
Commit
ba03f80e
authored
Mar 04, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 语音评测时切换下一页
parent
ab9ea14c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
300 additions
and
139 deletions
+300
-139
middleLayer_for_NGT.fire
assets/middleLayer_for_NGT/scene/middleLayer_for_NGT.fire
+263
-136
middleLayer.js
assets/middleLayer_for_NGT/script/middleLayer.js
+37
-3
No files found.
assets/middleLayer_for_NGT/scene/middleLayer_for_NGT.fire
View file @
ba03f80e
...
...
@@ -298,22 +298,22 @@
"__id__": 24
},
{
"__id__":
39
"__id__":
42
},
{
"__id__": 8
6
"__id__": 8
9
}
],
"_active": true,
"_components": [
{
"__id__": 9
0
"__id__": 9
3
},
{
"__id__": 9
1
"__id__": 9
4
},
{
"__id__": 9
2
"__id__": 9
5
}
],
"_prefab": null,
...
...
@@ -1204,15 +1204,18 @@
},
{
"__id__": 34
},
{
"__id__": 37
}
],
"_active": false,
"_components": [
{
"__id__":
37
"__id__":
40
},
{
"__id__":
38
"__id__":
41
}
],
"_prefab": null,
...
...
@@ -1759,6 +1762,130 @@
"_originalHeight": 10,
"_id": "76RSPkZA9K373tL/lz15l5"
},
{
"__type__": "cc.Node",
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
},
{
"__id__": 39
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 20,
"height": 20
},
"_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": "df6xg++KxGMYe7V49eYncy"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a0AUmB561GXZPeFQir54eE"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 590,
"_right": 635,
"_top": 355,
"_bottom": 355,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 10,
"_id": "3aNyOT67RDGr5LiOLJHJ/v"
},
{
"__type__": "cc.Sprite",
"_name": "",
...
...
@@ -1827,29 +1954,29 @@
},
"_children": [
{
"__id__": 4
0
"__id__": 4
3
},
{
"__id__":
48
"__id__":
51
},
{
"__id__": 5
2
"__id__": 5
5
},
{
"__id__": 6
2
"__id__": 6
5
},
{
"__id__": 7
3
"__id__": 7
6
}
],
"_active": false,
"_components": [
{
"__id__": 8
4
"__id__": 8
7
}
],
"_prefab": {
"__id__": 8
5
"__id__": 8
8
},
"_opacity": 255,
"_color": {
...
...
@@ -1903,24 +2030,24 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
42
},
"_children": [
{
"__id__": 4
1
"__id__": 4
4
}
],
"_active": false,
"_components": [
{
"__id__": 4
5
"__id__": 4
8
},
{
"__id__": 4
6
"__id__": 4
9
}
],
"_prefab": {
"__id__":
47
"__id__":
50
},
"_opacity": 255,
"_color": {
...
...
@@ -1974,20 +2101,20 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 4
0
"__id__": 4
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
2
"__id__": 4
5
},
{
"__id__": 4
3
"__id__": 4
6
}
],
"_prefab": {
"__id__": 4
4
"__id__": 4
7
},
"_opacity": 255,
"_color": {
...
...
@@ -2041,7 +2168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
1
"__id__": 4
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2074,7 +2201,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
1
"__id__": 4
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2099,7 +2226,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2112,7 +2239,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
0
"__id__": 4
3
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -2144,7 +2271,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
0
"__id__": 4
3
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -2169,7 +2296,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2182,20 +2309,20 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
42
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
49
"__id__":
52
},
{
"__id__": 5
0
"__id__": 5
3
}
],
"_prefab": {
"__id__": 5
1
"__id__": 5
4
},
"_opacity": 138,
"_color": {
...
...
@@ -2249,7 +2376,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
48
"__id__":
51
},
"_enabled": true,
"_materials": [
...
...
@@ -2281,7 +2408,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
48
"__id__":
51
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2306,7 +2433,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2319,30 +2446,30 @@
"_name": "Console",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
42
},
"_children": [
{
"__id__": 5
3
"__id__": 5
6
}
],
"_active": false,
"_components": [
{
"__id__":
57
"__id__":
60
},
{
"__id__":
58
"__id__":
61
},
{
"__id__":
59
"__id__":
62
},
{
"__id__": 6
0
"__id__": 6
3
}
],
"_prefab": {
"__id__": 6
1
"__id__": 6
4
},
"_opacity": 255,
"_color": {
...
...
@@ -2396,20 +2523,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 5
2
"__id__": 5
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
4
"__id__": 5
7
},
{
"__id__": 5
5
"__id__": 5
8
}
],
"_prefab": {
"__id__": 5
6
"__id__": 5
9
},
"_opacity": 255,
"_color": {
...
...
@@ -2463,7 +2590,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
3
"__id__": 5
6
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -2495,7 +2622,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
3
"__id__": 5
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2520,7 +2647,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2533,7 +2660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
2
"__id__": 5
5
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -2560,7 +2687,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
2
"__id__": 5
5
},
"_enabled": true,
"_materials": [
...
...
@@ -2580,7 +2707,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
2
"__id__": 5
5
},
"_enabled": true,
"horizontal": false,
...
...
@@ -2592,10 +2719,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 5
3
"__id__": 5
6
},
"content": {
"__id__": 5
3
"__id__": 5
6
},
"_id": "4fq9X4ft1J57LkV+IZZI1P"
},
...
...
@@ -2604,7 +2731,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
2
"__id__": 5
5
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -2634,7 +2761,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2647,24 +2774,24 @@
"_name": "BtnClose",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
42
},
"_children": [
{
"__id__": 6
3
"__id__": 6
6
}
],
"_active": false,
"_components": [
{
"__id__": 7
0
"__id__": 7
3
},
{
"__id__": 7
1
"__id__": 7
4
}
],
"_prefab": {
"__id__": 7
2
"__id__": 7
5
},
"_opacity": 255,
"_color": {
...
...
@@ -2718,24 +2845,24 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 6
2
"__id__": 6
5
},
"_children": [
{
"__id__": 6
4
"__id__": 6
7
}
],
"_active": true,
"_components": [
{
"__id__":
67
"__id__":
70
},
{
"__id__":
68
"__id__":
71
}
],
"_prefab": {
"__id__":
69
"__id__":
72
},
"_opacity": 255,
"_color": {
...
...
@@ -2789,17 +2916,17 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 6
3
"__id__": 6
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
5
"__id__": 6
8
}
],
"_prefab": {
"__id__": 6
6
"__id__": 6
9
},
"_opacity": 255,
"_color": {
...
...
@@ -2853,7 +2980,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
4
"__id__": 6
7
},
"_enabled": true,
"_materials": [
...
...
@@ -2884,7 +3011,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2897,7 +3024,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
3
"__id__": 6
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2929,7 +3056,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
3
"__id__": 6
6
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -2954,7 +3081,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -2967,7 +3094,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3040,7 +3167,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 6
3
"__id__": 6
6
},
"_id": "eeBszWa7xMXI6NvQVEw4Nb"
},
...
...
@@ -3049,7 +3176,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3074,7 +3201,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -3087,24 +3214,24 @@
"_name": "BtnOpen",
"_objFlags": 0,
"_parent": {
"__id__":
39
"__id__":
42
},
"_children": [
{
"__id__": 7
4
"__id__": 7
7
}
],
"_active": false,
"_components": [
{
"__id__": 8
1
"__id__": 8
4
},
{
"__id__": 8
2
"__id__": 8
5
}
],
"_prefab": {
"__id__": 8
3
"__id__": 8
6
},
"_opacity": 255,
"_color": {
...
...
@@ -3158,24 +3285,24 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 7
3
"__id__": 7
6
},
"_children": [
{
"__id__": 7
5
"__id__": 7
8
}
],
"_active": true,
"_components": [
{
"__id__":
78
"__id__":
81
},
{
"__id__":
79
"__id__":
82
}
],
"_prefab": {
"__id__": 8
0
"__id__": 8
3
},
"_opacity": 255,
"_color": {
...
...
@@ -3229,17 +3356,17 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 7
4
"__id__": 7
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
6
"__id__": 7
9
}
],
"_prefab": {
"__id__":
77
"__id__":
80
},
"_opacity": 255,
"_color": {
...
...
@@ -3293,7 +3420,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
5
"__id__": 7
8
},
"_enabled": true,
"_materials": [
...
...
@@ -3324,7 +3451,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -3337,7 +3464,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
4
"__id__": 7
7
},
"_enabled": true,
"_materials": [
...
...
@@ -3369,7 +3496,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
4
"__id__": 7
7
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -3394,7 +3521,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -3407,7 +3534,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3480,7 +3607,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 7
4
"__id__": 7
7
},
"_id": "74Llnxa+pCQIlfKC3VDt9i"
},
...
...
@@ -3489,7 +3616,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3514,7 +3641,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -3527,7 +3654,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
39
"__id__":
42
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3552,7 +3679,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__":
39
"__id__":
42
},
"asset": {
"__uuid__": "a4cbf80d-fd89-477e-a6f9-7ca1bea43179"
...
...
@@ -3571,13 +3698,13 @@
"_active": false,
"_components": [
{
"__id__":
87
"__id__":
90
},
{
"__id__":
88
"__id__":
91
},
{
"__id__":
89
"__id__":
92
}
],
"_prefab": null,
...
...
@@ -3633,7 +3760,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3665,7 +3792,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
9
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3692,7 +3819,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
9
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3755,33 +3882,6 @@
"_N$target": null,
"_id": "f7AHHfoZBIA73rTkrZrSfm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_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": "1bqJ4tHIpFjZymhKtOdYgN"
},
{
"__type__": "363f3apQ09ISIXTgtQqFoFF",
"_name": "",
...
...
@@ -3823,5 +3923,32 @@
"_isTrimmedMode": true,
"_atlas": null,
"_id": "77Taml+DhKYLCnxnSi08Bm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
"_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": "b8s6BwK6JGdo9khgpExHfg"
}
]
\ No newline at end of file
assets/middleLayer_for_NGT/script/middleLayer.js
View file @
ba03f80e
...
...
@@ -80,6 +80,7 @@ cc.Class({
start
()
{
initAir
(
this
);
this
.
reWriteAir
();
this
.
updateWidgets
();
window
.
courseware
.
getEngineInfo
((
dataStr
)
=>
{
const
engineInfo
=
JSON
.
parse
(
dataStr
);
...
...
@@ -397,7 +398,11 @@ cc.Class({
console
.
log
(
"
sceneName =
"
+
conf
.
sceneName
);
const
canvas
=
cc
.
find
(
"
Canvas
"
);
const
middleLayer
=
cc
.
find
(
"
middleLayer
"
);
window
.
courseware
.
freeAllOcMethod
();
this
.
hideWaitingLetters
();
this
.
updateWidgets
();
callback
&&
callback
();
});
});
...
...
@@ -420,6 +425,35 @@ cc.Class({
this
.
loadBundleByConf
(
this
.
bundleInfoList
[
this
.
currentBundleIndex
]);
},
updateWidgets
()
{
this
.
updateScale
();
this
.
node
.
getComponentsInChildren
(
cc
.
Widget
).
forEach
((
widget
)
=>
{
widget
.
updateAlignment
();
});
},
updateScale
()
{
// const canvas = cc.find("Canvas");
// const canvasSize = cc.view.getCanvasSize();
// const designSize = cc.view.getDesignResolutionSize();
// const scale =
// canvas.width / canvasSize.width / (canvas.height / canvasSize.height);
// console.log("canvasSize:", canvasSize);
// console.log("designSize:", designSize);
// console.log({ x: canvas.x, y: canvas.y });
// console.log({ width: canvas.width, height: canvas.height });
// console.log('scale = ' + scale);
// this.node.width = canvas.width;
// this.node.height = canvas.height * scale;
// this.node.x = this.node.width / 2;
// this.node.y = this.node.height / 2 - 120;
},
exit
()
{
cc
.
game
.
removePersistRootNode
(
this
.
node
);
...
...
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