Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ
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_NJ
Commits
2fe97c16
Commit
2fe97c16
authored
May 25, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 翻页
parent
8d91f55b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
825 additions
and
97 deletions
+825
-97
middleLayer_for_NJ.fire
assets/middleLayer_for_NJ/scene/middleLayer_for_NJ.fire
+686
-92
middleLayer.ts
assets/middleLayer_for_NJ/script/middleLayer.ts
+23
-1
middleLayerBase.ts
assets/middleLayer_for_NJ/script/middleLayerBase.ts
+8
-4
Btn.png
assets/middleLayer_for_NJ/textures/Btn.png
+0
-0
Btn.png.meta
assets/middleLayer_for_NJ/textures/Btn.png.meta
+36
-0
btnLeft.png
assets/middleLayer_for_NJ/textures/btnLeft.png
+0
-0
btnLeft.png.meta
assets/middleLayer_for_NJ/textures/btnLeft.png.meta
+36
-0
btnRight.png
assets/middleLayer_for_NJ/textures/btnRight.png
+0
-0
btnRight.png.meta
assets/middleLayer_for_NJ/textures/btnRight.png.meta
+36
-0
No files found.
assets/middleLayer_for_NJ/scene/middleLayer_for_NJ.fire
View file @
2fe97c16
...
@@ -285,23 +285,490 @@
...
@@ -285,23 +285,490 @@
{
{
"__id__": 8
"__id__": 8
},
},
{
"__id__": 12
},
{
"__id__": 16
},
{
"__id__": 20
},
{
"__id__": 22
},
{
"__id__": 33
},
{
"__id__": 42
}
],
"_active": true,
"_components": [
{
"__id__": 61
},
{
"__id__": 62
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
640,
360,
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": "6caZQRGatDJJMWpck1fhab"
},
{
"__type__": "cc.Node",
"_name": "ExitBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
},
{
{
"__id__": 10
"__id__": 10
},
},
{
{
"__id__": 21
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 85,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-552,
298,
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": "f09yR5FL1L9LlaAP/XE2XF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7adb35f3-75de-4ecb-8542-f187f1b9fadf"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a17K23/NJO863KWq2lwncS"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "49axwU7iVEPqjUD0g66nIm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 45.5,
"_right": 0,
"_top": 25.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "a4Qe9B6ptFV5N0gmY9HMIc"
},
{
"__type__": "cc.Node",
"_name": "BtnRight",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 104,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
561,
298,
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": "46oEjF935Fp6VEPawgDMHI"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "164fd569-a9be-4a1d-8e9c-fc852550fbe1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7dNoH3l7JLl67W28Jr+LU2"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "73wxafyc9GHYp06sKiIreF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 33,
"_left": 0,
"_right": 27,
"_top": 25.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "7efdJeRXhCL7B8e+TcQaO/"
},
{
"__type__": "cc.Node",
"_name": "BtnLeft",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 17
},
},
{
{
"__id__": 30
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 49
},
},
{
{
"__id__":
50
"__id__":
19
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -315,8 +782,8 @@
...
@@ -315,8 +782,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
280
,
"width": 1
04
,
"height": 7
20
"height": 7
3
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -327,13 +794,13 @@
...
@@ -327,13 +794,13 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
640,
438,
360,
298,
0,
0,
0,
0,
0,
0,
0,
1,
1,
6.123233995736766e-17,
1,
1,
1,
1,
1
1
...
@@ -343,14 +810,141 @@
...
@@ -343,14 +810,141 @@
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 0,
"x": 0,
"y": 0,
"y": 0,
"z": 0
"z":
18
0
},
},
"_skewX": 0,
"_skewX": 0,
"_skewY": 0,
"_skewY": 0,
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "6caZQRGatDJJMWpck1fhab"
"_id": "37+iDKgqNIC5qJKNFibXJa"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "164fd569-a9be-4a1d-8e9c-fc852550fbe1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "32et0giKNMVr1GK/9tZNhP"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "724BoQKSlJG7A09L5NWhI3"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 33,
"_left": 0,
"_right": 150,
"_top": 25.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "85befpYp1Adqg1N9Q67Ciu"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -363,7 +957,7 @@
...
@@ -363,7 +957,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
9
"__id__":
21
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -419,7 +1013,7 @@
...
@@ -419,7 +1013,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
8
"__id__":
20
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -455,19 +1049,19 @@
...
@@ -455,19 +1049,19 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
11
"__id__":
23
},
},
{
{
"__id__":
14
"__id__":
26
}
}
],
],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
19
"__id__":
31
},
},
{
{
"__id__":
20
"__id__":
32
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -523,16 +1117,16 @@
...
@@ -523,16 +1117,16 @@
"_name": "loading",
"_name": "loading",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
10
"__id__":
22
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
12
"__id__":
24
},
},
{
{
"__id__":
13
"__id__":
25
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -588,7 +1182,7 @@
...
@@ -588,7 +1182,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
11
"__id__":
23
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -620,7 +1214,7 @@
...
@@ -620,7 +1214,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
11
"__id__":
23
},
},
"_enabled": true,
"_enabled": true,
"_defaultClip": {
"_defaultClip": {
...
@@ -639,20 +1233,20 @@
...
@@ -639,20 +1233,20 @@
"_name": "progress",
"_name": "progress",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
10
"__id__":
22
},
},
"_children": [
"_children": [
{
{
"__id__":
15
"__id__":
27
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
17
"__id__":
29
},
},
{
{
"__id__":
18
"__id__":
30
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -708,13 +1302,13 @@
...
@@ -708,13 +1302,13 @@
"_name": "bar",
"_name": "bar",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
14
"__id__":
26
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
16
"__id__":
28
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -770,7 +1364,7 @@
...
@@ -770,7 +1364,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
15
"__id__":
27
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -802,7 +1396,7 @@
...
@@ -802,7 +1396,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
14
"__id__":
26
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -834,7 +1428,7 @@
...
@@ -834,7 +1428,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
14
"__id__":
26
},
},
"_enabled": true,
"_enabled": true,
"_id": "6ex3vKW6FPVpjrtA+iTYI2"
"_id": "6ex3vKW6FPVpjrtA+iTYI2"
...
@@ -844,7 +1438,7 @@
...
@@ -844,7 +1438,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
10
"__id__":
22
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -876,7 +1470,7 @@
...
@@ -876,7 +1470,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
10
"__id__":
22
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -907,16 +1501,16 @@
...
@@ -907,16 +1501,16 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
22
"__id__":
34
},
},
{
{
"__id__":
25
"__id__":
37
}
}
],
],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
29
"__id__":
41
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -972,16 +1566,16 @@
...
@@ -972,16 +1566,16 @@
"_name": "bg",
"_name": "bg",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
21
"__id__":
33
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
23
"__id__":
35
},
},
{
{
"__id__":
24
"__id__":
36
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1037,7 +1631,7 @@
...
@@ -1037,7 +1631,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
22
"__id__":
34
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1069,7 +1663,7 @@
...
@@ -1069,7 +1663,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
22
"__id__":
34
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1096,17 +1690,17 @@
...
@@ -1096,17 +1690,17 @@
"_name": "tips",
"_name": "tips",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
21
"__id__":
33
},
},
"_children": [
"_children": [
{
{
"__id__":
26
"__id__":
38
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
28
"__id__":
40
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1162,13 +1756,13 @@
...
@@ -1162,13 +1756,13 @@
"_name": "label",
"_name": "label",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
25
"__id__":
37
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
27
"__id__":
39
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1224,7 +1818,7 @@
...
@@ -1224,7 +1818,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
26
"__id__":
38
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1257,7 +1851,7 @@
...
@@ -1257,7 +1851,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
25
"__id__":
37
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1289,7 +1883,7 @@
...
@@ -1289,7 +1883,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
21
"__id__":
33
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1320,16 +1914,16 @@
...
@@ -1320,16 +1914,16 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
31
"__id__":
43
},
},
{
{
"__id__":
34
"__id__":
46
}
}
],
],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
48
"__id__":
60
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1385,16 +1979,16 @@
...
@@ -1385,16 +1979,16 @@
"_name": "bg",
"_name": "bg",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
30
"__id__":
42
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
32
"__id__":
44
},
},
{
{
"__id__":
33
"__id__":
45
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1450,7 +2044,7 @@
...
@@ -1450,7 +2044,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
31
"__id__":
43
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1482,7 +2076,7 @@
...
@@ -1482,7 +2076,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
31
"__id__":
43
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1509,23 +2103,23 @@
...
@@ -1509,23 +2103,23 @@
"_name": "confirm_bg",
"_name": "confirm_bg",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
30
"__id__":
42
},
},
"_children": [
"_children": [
{
{
"__id__":
35
"__id__":
47
},
},
{
{
"__id__":
37
"__id__":
49
},
},
{
{
"__id__":
42
"__id__":
54
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
47
"__id__":
59
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1581,13 +2175,13 @@
...
@@ -1581,13 +2175,13 @@
"_name": "label",
"_name": "label",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
34
"__id__":
46
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
36
"__id__":
48
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1643,7 +2237,7 @@
...
@@ -1643,7 +2237,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
35
"__id__":
47
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1676,20 +2270,20 @@
...
@@ -1676,20 +2270,20 @@
"_name": "btn_no",
"_name": "btn_no",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
34
"__id__":
46
},
},
"_children": [
"_children": [
{
{
"__id__":
38
"__id__":
50
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
40
"__id__":
52
},
},
{
{
"__id__":
41
"__id__":
53
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1745,13 +2339,13 @@
...
@@ -1745,13 +2339,13 @@
"_name": "New Label",
"_name": "New Label",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
37
"__id__":
49
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
39
"__id__":
51
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1807,7 +2401,7 @@
...
@@ -1807,7 +2401,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
38
"__id__":
50
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1840,7 +2434,7 @@
...
@@ -1840,7 +2434,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
37
"__id__":
49
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1872,7 +2466,7 @@
...
@@ -1872,7 +2466,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
37
"__id__":
49
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -1933,7 +2527,7 @@
...
@@ -1933,7 +2527,7 @@
"hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"_N$target": {
"__id__":
37
"__id__":
49
},
},
"_id": "c0Mfl8X79DsqvxMASeT7S5"
"_id": "c0Mfl8X79DsqvxMASeT7S5"
},
},
...
@@ -1942,20 +2536,20 @@
...
@@ -1942,20 +2536,20 @@
"_name": "btn_yes",
"_name": "btn_yes",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
34
"__id__":
46
},
},
"_children": [
"_children": [
{
{
"__id__":
43
"__id__":
55
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
45
"__id__":
57
},
},
{
{
"__id__":
46
"__id__":
58
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2011,13 +2605,13 @@
...
@@ -2011,13 +2605,13 @@
"_name": "New Label",
"_name": "New Label",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
42
"__id__":
54
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
44
"__id__":
56
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2073,7 +2667,7 @@
...
@@ -2073,7 +2667,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
43
"__id__":
55
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -2106,7 +2700,7 @@
...
@@ -2106,7 +2700,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
42
"__id__":
54
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -2138,7 +2732,7 @@
...
@@ -2138,7 +2732,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
42
"__id__":
54
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -2199,7 +2793,7 @@
...
@@ -2199,7 +2793,7 @@
"hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"_N$target": {
"__id__":
42
"__id__":
54
},
},
"_id": "6aiQPNDmFJLareQY/Hy1Yf"
"_id": "6aiQPNDmFJLareQY/Hy1Yf"
},
},
...
@@ -2208,7 +2802,7 @@
...
@@ -2208,7 +2802,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
34
"__id__":
46
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -2240,7 +2834,7 @@
...
@@ -2240,7 +2834,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
30
"__id__":
42
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
...
assets/middleLayer_for_NJ/script/middleLayer.ts
View file @
2fe97c16
import
{
initAir
}
from
"
./air
"
;
import
{
initAir
}
from
"
./air
"
;
import
{
middleLayerBase
}
from
"
./middleLayerBase
"
;
import
{
middleLayerBase
}
from
"
./middleLayerBase
"
;
import
{
buttonOnceClick
}
from
"
./util
"
;
import
{
buttonOnceClick
,
buttonOnClick
}
from
"
./util
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
@@ -129,8 +129,30 @@ export default class NewClass extends middleLayerBase {
...
@@ -129,8 +129,30 @@ export default class NewClass extends middleLayerBase {
}
else
{
}
else
{
this
.
loadOnlineBundle
(
'
NJ_login
'
);
this
.
loadOnlineBundle
(
'
NJ_login
'
);
}
}
this
.
initListener
();
}
}
initListener
()
{
const
exitBtn
=
cc
.
find
(
'
middleLayer/ExitBtn
'
);
buttonOnClick
(
exitBtn
,
()
=>
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
exitBtn
.
active
=
false
;
cc
.
audioEngine
.
stopAll
();
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
this
.
loadOnlineBundle
(
'
NJ_QianShuiTing
'
);
});
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnRight
'
),
()
=>
{
this
.
goNextPage
();
});
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
this
.
goPrePage
();
});
};
role
=
'
student
'
;
role
=
'
student
'
;
protected
onLoad
():
void
{
protected
onLoad
():
void
{
initAir
(
this
);
initAir
(
this
);
...
...
assets/middleLayer_for_NJ/script/middleLayerBase.ts
View file @
2fe97c16
...
@@ -105,7 +105,7 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -105,7 +105,7 @@ export abstract class middleLayerBase extends cc.Component {
this
.
loadBundle
(
sceneName
,
version
,
bondleUrl
);
this
.
loadBundle
(
sceneName
,
version
,
bondleUrl
);
}
}
loadBundle
(
sceneName
,
version
,
bondleUrl
)
{
loadBundle
(
sceneName
,
version
,
bondleUrl
,
callback
=
null
)
{
this
.
currentBundleInfo
=
{
sceneName
,
version
,
bondleUrl
};
this
.
currentBundleInfo
=
{
sceneName
,
version
,
bondleUrl
};
this
.
showMask
();
this
.
showMask
();
this
.
showWaitingLetters
();
this
.
showWaitingLetters
();
...
@@ -120,6 +120,7 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -120,6 +120,7 @@ export abstract class middleLayerBase extends cc.Component {
this
.
hideMask
();
this
.
hideMask
();
canvas
.
getComponent
(
cc
.
Widget
).
updateAlignment
();
canvas
.
getComponent
(
cc
.
Widget
).
updateAlignment
();
middleLayer
.
scale
=
canvas
.
width
/
middleLayer
.
width
;
middleLayer
.
scale
=
canvas
.
width
/
middleLayer
.
width
;
callback
&&
callback
();
// this.showLog('middleLayer.scale = ' + middleLayer.scale);
// this.showLog('middleLayer.scale = ' + middleLayer.scale);
});
});
});
});
...
@@ -150,11 +151,13 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -150,11 +151,13 @@ export abstract class middleLayerBase extends cc.Component {
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
}
}
this
.
reWriteAir
();
this
.
reWriteAir
();
this
.
loadPageBundle
();
this
.
loadPageBundle
(()
=>
{
cc
.
find
(
'
middleLayer/ExitBtn
'
).
active
=
true
;
});
});
});
}
}
loadPageBundle
()
{
loadPageBundle
(
callback
=
null
)
{
let
sceneName
,
version
,
bondleUrl
=
""
;
let
sceneName
,
version
,
bondleUrl
=
""
;
if
(
cc
.
sys
.
os
==
cc
.
sys
.
OS_IOS
)
{
if
(
cc
.
sys
.
os
==
cc
.
sys
.
OS_IOS
)
{
sceneName
=
this
.
courseItem
.
conf
.
ios
.
sceneName
;
sceneName
=
this
.
courseItem
.
conf
.
ios
.
sceneName
;
...
@@ -170,8 +173,9 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -170,8 +173,9 @@ export abstract class middleLayerBase extends cc.Component {
bondleUrl
=
this
.
courseItem
.
conf
.
web_desktop
.
bondleUrl
;
bondleUrl
=
this
.
courseItem
.
conf
.
web_desktop
.
bondleUrl
;
}
}
this
.
loadBundle
(
sceneName
,
version
,
bondleUrl
);
this
.
loadBundle
(
sceneName
,
version
,
bondleUrl
,
callback
);
}
}
goPrePage
()
{
goPrePage
()
{
this
.
goTarIndexPage
(
this
.
courseIndex
-
1
);
this
.
goTarIndexPage
(
this
.
courseIndex
-
1
);
}
}
...
...
assets/middleLayer_for_NJ/textures/Btn.png
0 → 100644
View file @
2fe97c16
16 KB
assets/middleLayer_for_NJ/textures/Btn.png.meta
0 → 100644
View file @
2fe97c16
{
"ver": "2.3.5",
"uuid": "581e9073-8bf2-454d-a651-28d2b8436b84",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 171,
"height": 146,
"platformSettings": {},
"subMetas": {
"Btn": {
"ver": "1.0.4",
"uuid": "7adb35f3-75de-4ecb-8542-f187f1b9fadf",
"rawTextureUuid": "581e9073-8bf2-454d-a651-28d2b8436b84",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 171,
"height": 146,
"rawWidth": 171,
"rawHeight": 146,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/middleLayer_for_NJ/textures/btnLeft.png
0 → 100644
View file @
2fe97c16
1.97 KB
assets/middleLayer_for_NJ/textures/btnLeft.png.meta
0 → 100644
View file @
2fe97c16
{
"ver": "2.3.5",
"uuid": "a35000bb-0e08-4a42-93f5-5fd08c740236",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"platformSettings": {},
"subMetas": {
"btnLeft": {
"ver": "1.0.4",
"uuid": "1b62c9c3-fabc-4f29-abaf-b446ebdb5571",
"rawTextureUuid": "a35000bb-0e08-4a42-93f5-5fd08c740236",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 67,
"rawWidth": 61,
"rawHeight": 67,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/middleLayer_for_NJ/textures/btnRight.png
0 → 100644
View file @
2fe97c16
18.5 KB
assets/middleLayer_for_NJ/textures/btnRight.png.meta
0 → 100644
View file @
2fe97c16
{
"ver": "2.3.5",
"uuid": "d12a2294-3ae5-46b1-848d-6ae7f6e6777e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 209,
"height": 146,
"platformSettings": {},
"subMetas": {
"btnRight": {
"ver": "1.0.4",
"uuid": "164fd569-a9be-4a1d-8e9c-fc852550fbe1",
"rawTextureUuid": "d12a2294-3ae5-46b1-848d-6ae7f6e6777e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 209,
"height": 146,
"rawWidth": 209,
"rawHeight": 146,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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