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
5b271f93
Commit
5b271f93
authored
Oct 03, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
02578590
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
193 additions
and
156 deletions
+193
-156
middleLayer_for_NGT.fire
assets/middleLayer_for_NGT/scene/middleLayer_for_NGT.fire
+182
-152
middleLayer.ts
assets/middleLayer_for_NGT/script/middleLayer.ts
+4
-4
middleLayerBase.ts
assets/middleLayer_for_NGT/script/middleLayerBase.ts
+7
-0
No files found.
assets/middleLayer_for_NGT/scene/middleLayer_for_NGT.fire
View file @
5b271f93
...
...
@@ -305,43 +305,43 @@
"__id__": 17
},
{
"__id__":
19
"__id__":
20
},
{
"__id__": 2
3
"__id__": 2
4
},
{
"__id__": 2
7
"__id__": 2
8
},
{
"__id__":
29
"__id__":
30
},
{
"__id__": 4
2
"__id__": 4
3
},
{
"__id__": 5
1
"__id__": 5
2
},
{
"__id__": 5
4
"__id__": 5
5
},
{
"__id__":
79
"__id__":
80
},
{
"__id__": 8
1
"__id__": 8
2
},
{
"__id__": 8
5
"__id__": 8
6
}
],
"_active": true,
"_components": [
{
"__id__": 8
8
"__id__": 8
9
},
{
"__id__":
89
"__id__":
90
}
],
"_prefab": null,
...
...
@@ -435,15 +435,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
584
,
3
06
,
-
604.75
,
3
26.75
,
0,
0,
0,
0,
1,
1
,
1
,
0.5
,
0.5
,
1
]
},
...
...
@@ -630,15 +630,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
381
,
3
06
,
465.177
,
3
25.829
,
0,
0,
0,
0,
1,
1
,
1
,
0.7
,
0.7
,
1
]
},
...
...
@@ -735,8 +735,8 @@
"_target": null,
"_alignFlags": 33,
"_left": 20,
"_right":
221.5
,
"_top":
17
,
"_right":
148.57299999999998
,
"_top":
8.271000000000015
,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
...
...
@@ -794,6 +794,9 @@
"_components": [
{
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": null,
...
...
@@ -819,8 +822,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
478.855
,
3
06.605
,
526.997
,
3
31.082
,
0,
0,
0,
...
...
@@ -877,6 +880,33 @@
"_N$cacheMode": 0,
"_id": "b2M3EeRMFLUbACECBItXCP"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 33,
"_left": 0,
"_right": 83.80799999999999,
"_top": 2.458000000000027,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "cfDPVpdOhNA6P/O5zgALYZ"
},
{
"__type__": "cc.Node",
"_name": "BtnRight",
...
...
@@ -887,14 +917,14 @@
"_children": [],
"_active": false,
"_components": [
{
"__id__": 20
},
{
"__id__": 21
},
{
"__id__": 22
},
{
"__id__": 23
}
],
"_prefab": null,
...
...
@@ -920,15 +950,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
5
76
,
3
06
,
5
94.351
,
3
24.847
,
0,
0,
0,
0,
1,
1
,
1
,
0.7
,
0.7
,
1
]
},
...
...
@@ -950,7 +980,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
19
"__id__":
20
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1018,15 +1048,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
19
"__id__":
20
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 33,
"_left": 20,
"_right":
26.5
,
"_top":
17
,
"_right":
19.399
,
"_top":
9.253000000000043
,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
...
...
@@ -1045,7 +1075,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
19
"__id__":
20
},
"_enabled": true,
"_materials": [
...
...
@@ -1082,14 +1112,14 @@
"_children": [],
"_active": false,
"_components": [
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
},
{
"__id__": 27
}
],
"_prefab": null,
...
...
@@ -1145,7 +1175,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
4
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -1172,7 +1202,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
4
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1240,7 +1270,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1278,7 +1308,7 @@
"_active": true,
"_components": [
{
"__id__": 2
8
"__id__": 2
9
}
],
"_prefab": null,
...
...
@@ -1334,7 +1364,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
8
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1370,19 +1400,19 @@
},
"_children": [
{
"__id__": 3
0
"__id__": 3
1
},
{
"__id__": 3
2
"__id__": 3
3
},
{
"__id__": 3
4
"__id__": 3
5
}
],
"_active": false,
"_components": [
{
"__id__": 4
1
"__id__": 4
2
}
],
"_prefab": null,
...
...
@@ -1438,13 +1468,13 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__":
29
"__id__":
30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
1
"__id__": 3
2
}
],
"_prefab": null,
...
...
@@ -1500,7 +1530,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
0
"__id__": 3
1
},
"_enabled": true,
"_materials": [
...
...
@@ -1532,13 +1562,13 @@
"_name": "loading_ske",
"_objFlags": 0,
"_parent": {
"__id__":
29
"__id__":
30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
3
"__id__": 3
4
}
],
"_prefab": null,
...
...
@@ -1594,7 +1624,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
2
"__id__": 3
3
},
"_enabled": true,
"_materials": [
...
...
@@ -1634,24 +1664,24 @@
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__":
29
"__id__":
30
},
"_children": [
{
"__id__": 3
5
"__id__": 3
6
}
],
"_active": true,
"_components": [
{
"__id__": 3
8
"__id__": 3
9
},
{
"__id__":
39
"__id__":
40
}
],
"_prefab": {
"__id__": 4
0
"__id__": 4
1
},
"_opacity": 255,
"_color": {
...
...
@@ -1705,17 +1735,17 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
6
"__id__": 3
7
}
],
"_prefab": {
"__id__": 3
7
"__id__": 3
8
},
"_opacity": 255,
"_color": {
...
...
@@ -1769,7 +1799,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1799,7 +1829,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 3
4
"__id__": 3
5
},
"asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
...
...
@@ -1812,7 +1842,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1844,7 +1874,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
5
},
"_enabled": true,
"_id": "3eMT/DXoJNGZT/8Z3nuTUH"
...
...
@@ -1852,7 +1882,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 3
4
"__id__": 3
5
},
"asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
...
...
@@ -1865,7 +1895,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
29
"__id__":
30
},
"_enabled": true,
"_id": "3aadbr2ilKYLzzvQrMvCTR"
...
...
@@ -1879,16 +1909,16 @@
},
"_children": [
{
"__id__": 4
3
"__id__": 4
4
},
{
"__id__": 4
6
"__id__": 4
7
}
],
"_active": false,
"_components": [
{
"__id__": 5
0
"__id__": 5
1
}
],
"_prefab": null,
...
...
@@ -1944,16 +1974,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 4
2
"__id__": 4
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
4
"__id__": 4
5
},
{
"__id__": 4
5
"__id__": 4
6
}
],
"_prefab": null,
...
...
@@ -2009,7 +2039,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2041,7 +2071,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2068,17 +2098,17 @@
"_name": "tips",
"_objFlags": 0,
"_parent": {
"__id__": 4
2
"__id__": 4
3
},
"_children": [
{
"__id__": 4
7
"__id__": 4
8
}
],
"_active": true,
"_components": [
{
"__id__":
49
"__id__":
50
}
],
"_prefab": null,
...
...
@@ -2134,13 +2164,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 4
6
"__id__": 4
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
8
"__id__": 4
9
}
],
"_prefab": null,
...
...
@@ -2196,7 +2226,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
7
"__id__": 4
8
},
"_enabled": true,
"_materials": [
...
...
@@ -2229,7 +2259,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
6
"__id__": 4
7
},
"_enabled": true,
"_materials": [
...
...
@@ -2261,7 +2291,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2294,10 +2324,10 @@
"_active": false,
"_components": [
{
"__id__": 5
2
"__id__": 5
3
},
{
"__id__": 5
3
"__id__": 5
4
}
],
"_prefab": null,
...
...
@@ -2353,7 +2383,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
1
"__id__": 5
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2386,7 +2416,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
1
"__id__": 5
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2417,19 +2447,19 @@
},
"_children": [
{
"__id__": 5
5
"__id__": 5
6
},
{
"__id__": 5
8
"__id__": 5
9
},
{
"__id__": 7
3
"__id__": 7
4
}
],
"_active": false,
"_components": [
{
"__id__": 7
8
"__id__": 7
9
}
],
"_prefab": null,
...
...
@@ -2485,16 +2515,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 5
4
"__id__": 5
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
6
"__id__": 5
7
},
{
"__id__": 5
7
"__id__": 5
8
}
],
"_prefab": null,
...
...
@@ -2550,7 +2580,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2582,7 +2612,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2609,20 +2639,20 @@
"_name": "active_bg",
"_objFlags": 0,
"_parent": {
"__id__": 5
4
"__id__": 5
5
},
"_children": [
{
"__id__":
59
"__id__":
60
},
{
"__id__": 6
1
"__id__": 6
2
}
],
"_active": true,
"_components": [
{
"__id__": 7
2
"__id__": 7
3
}
],
"_prefab": null,
...
...
@@ -2678,13 +2708,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 5
8
"__id__": 5
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
0
"__id__": 6
1
}
],
"_prefab": null,
...
...
@@ -2740,7 +2770,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
59
"__id__":
60
},
"_enabled": true,
"_materials": [
...
...
@@ -2773,23 +2803,23 @@
"_name": "active_input",
"_objFlags": 0,
"_parent": {
"__id__": 5
8
"__id__": 5
9
},
"_children": [
{
"__id__": 6
2
"__id__": 6
3
},
{
"__id__": 6
5
"__id__": 6
6
},
{
"__id__": 6
8
"__id__": 6
9
}
],
"_active": true,
"_components": [
{
"__id__": 7
1
"__id__": 7
2
}
],
"_prefab": null,
...
...
@@ -2845,16 +2875,16 @@
"_name": "BACKGROUND_SPRITE",
"_objFlags": 512,
"_parent": {
"__id__": 6
1
"__id__": 6
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
3
"__id__": 6
4
},
{
"__id__": 6
4
"__id__": 6
5
}
],
"_prefab": null,
...
...
@@ -2910,7 +2940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
3
},
"_enabled": true,
"_materials": [
...
...
@@ -2942,7 +2972,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
3
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -2969,16 +2999,16 @@
"_name": "TEXT_LABEL",
"_objFlags": 512,
"_parent": {
"__id__": 6
1
"__id__": 6
2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 6
6
"__id__": 6
7
},
{
"__id__": 6
7
"__id__": 6
8
}
],
"_prefab": null,
...
...
@@ -3034,7 +3064,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
5
"__id__": 6
6
},
"_enabled": true,
"_materials": [
...
...
@@ -3067,7 +3097,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
5
"__id__": 6
6
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -3094,16 +3124,16 @@
"_name": "PLACEHOLDER_LABEL",
"_objFlags": 512,
"_parent": {
"__id__": 6
1
"__id__": 6
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
69
"__id__":
70
},
{
"__id__": 7
0
"__id__": 7
1
}
],
"_prefab": null,
...
...
@@ -3159,7 +3189,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
8
"__id__": 6
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3192,7 +3222,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
8
"__id__": 6
9
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -3219,7 +3249,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
1
"__id__": 6
2
},
"_enabled": true,
"_string": "",
...
...
@@ -3231,13 +3261,13 @@
"editingDidEnded": [],
"editingReturn": [],
"_N$textLabel": {
"__id__": 6
6
"__id__": 6
7
},
"_N$placeholderLabel": {
"__id__":
69
"__id__":
70
},
"_N$background": {
"__id__": 6
3
"__id__": 6
4
},
"_N$inputFlag": 5,
"_N$inputMode": 6,
...
...
@@ -3249,7 +3279,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
8
"__id__": 5
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3281,20 +3311,20 @@
"_name": "active",
"_objFlags": 0,
"_parent": {
"__id__": 5
4
"__id__": 5
5
},
"_children": [
{
"__id__": 7
4
"__id__": 7
5
}
],
"_active": true,
"_components": [
{
"__id__": 7
6
"__id__": 7
7
},
{
"__id__": 7
7
"__id__": 7
8
}
],
"_prefab": null,
...
...
@@ -3350,13 +3380,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 7
3
"__id__": 7
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
5
"__id__": 7
6
}
],
"_prefab": null,
...
...
@@ -3412,7 +3442,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
4
"__id__": 7
5
},
"_enabled": true,
"_materials": [
...
...
@@ -3445,7 +3475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
4
},
"_enabled": true,
"_materials": [
...
...
@@ -3477,7 +3507,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
4
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3545,7 +3575,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
4
"__id__": 5
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3578,7 +3608,7 @@
"_active": false,
"_components": [
{
"__id__": 8
0
"__id__": 8
1
}
],
"_prefab": null,
...
...
@@ -3634,7 +3664,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
79
"__id__":
80
},
"_enabled": true,
"_materials": [
...
...
@@ -3669,16 +3699,16 @@
"__id__": 8
},
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 82
},
{
"__id__": 83
},
{
"__id__": 84
},
{
"__id__": 85
}
],
"_prefab": null,
...
...
@@ -3734,7 +3764,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
2
},
"_enabled": true,
"_materials": [
...
...
@@ -3766,7 +3796,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
2
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3834,7 +3864,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3865,7 +3895,7 @@
},
"_children": [
{
"__id__": 8
6
"__id__": 8
7
}
],
"_active": true,
...
...
@@ -3923,13 +3953,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 8
5
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
7
"__id__": 8
8
}
],
"_prefab": null,
...
...
@@ -3985,7 +4015,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
7
},
"_enabled": true,
"_clip": {
...
...
assets/middleLayer_for_NGT/script/middleLayer.ts
View file @
5b271f93
...
...
@@ -153,14 +153,14 @@ export default class NewClass extends middleLayerBase {
if
(
this
.
courseIndex
==
0
)
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
}
else
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
fals
e
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
tru
e
;
}
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
}
else
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
true
;
}
});
}
,
0.7
);
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
if
(
this
.
isShowWaiting
)
{
...
...
@@ -170,14 +170,14 @@ export default class NewClass extends middleLayerBase {
if
(
this
.
courseIndex
==
0
)
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
}
else
{
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
fals
e
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
tru
e
;
}
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
}
else
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
true
;
}
});
}
,
0.7
);
buttonOnClick
(
cc
.
find
(
'
middleLayer/activeLayer/active
'
),
async
()
=>
{
if
(
this
.
isShowWaiting
)
{
...
...
assets/middleLayer_for_NGT/script/middleLayerBase.ts
View file @
5b271f93
...
...
@@ -239,6 +239,12 @@ export abstract class middleLayerBase extends cc.Component {
this
.
courses
=
data
.
rows
;
this
.
courseIndex
=
data
.
index
||
0
;
this
.
courseItem
=
data
.
rows
[
this
.
courseIndex
];
console
.
log
(
'
-----------------
'
);
console
.
log
(
"
jfdlisjlfiasjdjl
"
);
console
.
log
(
'
-----------------
'
);
cc
.
find
(
'
middleLayer/Page
'
).
active
=
true
;
cc
.
find
(
`middleLayer/Page`
).
getComponent
(
cc
.
Label
).
string
=
`1/
${
this
.
courses
.
length
}
`
;
}
else
{
this
.
hideWaitingLetters
();
this
.
showTips
(
`内容还未制作`
);
...
...
@@ -293,6 +299,7 @@ export abstract class middleLayerBase extends cc.Component {
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
cc
.
find
(
`middleLayer/Page`
).
getComponent
(
cc
.
Label
).
string
=
`
${
index
+
1
}
/
${
this
.
courses
.
length
}
`
;
this
.
courseIndex
=
index
;
this
.
courseItem
=
this
.
courses
[
this
.
courseIndex
];
this
.
loadPageBundle
();
...
...
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