Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_DG
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_DG
Commits
f8f29464
Commit
f8f29464
authored
Jul 13, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 换遮罩层
parent
888f5f10
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
367 additions
and
405 deletions
+367
-405
loading_ske.json
assets/middleLayer_for_DG/dragonBones/loading_ske.json
+1
-0
loading_ske.json.meta
assets/middleLayer_for_DG/dragonBones/loading_ske.json.meta
+5
-0
loading_tex.json
assets/middleLayer_for_DG/dragonBones/loading_tex.json
+1
-0
loading_tex.json.meta
assets/middleLayer_for_DG/dragonBones/loading_tex.json.meta
+5
-0
loading_tex.png
assets/middleLayer_for_DG/dragonBones/loading_tex.png
+0
-0
loading_tex.png.meta
assets/middleLayer_for_DG/dragonBones/loading_tex.png.meta
+36
-0
middleLayer_for_DG.fire
assets/middleLayer_for_DG/scene/middleLayer_for_DG.fire
+297
-361
middleLayer.ts
assets/middleLayer_for_DG/script/middleLayer.ts
+22
-42
middleLayerBase.ts
assets/middleLayer_for_DG/script/middleLayerBase.ts
+0
-2
No files found.
assets/middleLayer_for_DG/dragonBones/loading_ske.json
0 → 100644
View file @
f8f29464
{
"frameRate"
:
30
,
"name"
:
"loading"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
30
,
"name"
:
"Armature"
,
"aabb"
:{
"x"
:
-128
,
"y"
:
-129
,
"width"
:
256
,
"height"
:
258
},
"bone"
:[{
"name"
:
"root"
,
"transform"
:{
"skX"
:
77.5101
,
"skY"
:
77.5101
}}],
"slot"
:[{
"name"
:
"IP小星星"
,
"parent"
:
"root"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"IP小星星"
,
"display"
:[{
"name"
:
"IP小星星"
,
"transform"
:{
"scX"
:
0.2266
,
"scY"
:
0.2266
}}]}]}],
"animation"
:[{
"duration"
:
48
,
"playTimes"
:
0
,
"name"
:
"newAnimation"
,
"bone"
:[{
"name"
:
"root"
,
"rotateFrame"
:[{
"duration"
:
24
,
"tweenEasing"
:
0
,
"rotate"
:
-77.51
},{
"tweenEasing"
:
0
,
"rotate"
:
102.49
},{
"duration"
:
23
,
"tweenEasing"
:
0
,
"rotate"
:
106.76
},{
"duration"
:
0
,
"rotate"
:
-77.51
}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}]}]}
\ No newline at end of file
assets/middleLayer_for_DG/dragonBones/loading_ske.json.meta
0 → 100644
View file @
f8f29464
{
"ver": "1.0.1",
"uuid": "32d4c07d-d14c-472e-9982-d77b5f99f84a",
"subMetas": {}
}
\ No newline at end of file
assets/middleLayer_for_DG/dragonBones/loading_tex.json
0 → 100644
View file @
f8f29464
{
"name"
:
"loading"
,
"SubTexture"
:[{
"name"
:
"IP小星星"
,
"x"
:
1
,
"height"
:
249
,
"frameY"
:
-4
,
"y"
:
1
,
"frameHeight"
:
258
,
"frameX"
:
-2
,
"frameWidth"
:
256
,
"width"
:
252
}],
"imagePath"
:
"loading_tex.png"
,
"height"
:
256
,
"width"
:
256
}
\ No newline at end of file
assets/middleLayer_for_DG/dragonBones/loading_tex.json.meta
0 → 100644
View file @
f8f29464
{
"ver": "1.0.1",
"uuid": "3cf68978-c51e-4094-8539-c768bbfaf05a",
"subMetas": {}
}
\ No newline at end of file
assets/middleLayer_for_DG/dragonBones/loading_tex.png
0 → 100644
View file @
f8f29464
55.9 KB
assets/middleLayer_for_DG/dragonBones/loading_tex.png.meta
0 → 100644
View file @
f8f29464
{
"ver": "2.3.5",
"uuid": "daad9123-eef3-4934-8ddb-6a181b8f358a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"loading_tex": {
"ver": "1.0.4",
"uuid": "f6082448-b4d2-48c4-9132-422baa8ee7be",
"rawTextureUuid": "daad9123-eef3-4934-8ddb-6a181b8f358a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 2.5,
"trimX": 1,
"trimY": 1,
"width": 252,
"height": 249,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/middleLayer_for_DG/scene/middleLayer_for_DG.fire
View file @
f8f29464
...
...
@@ -212,7 +212,7 @@
"r": 0,
"g": 0,
"b": 0,
"a":
255
"a":
0
},
"_depth": -1,
"_zoomRatio": 1,
...
...
@@ -299,28 +299,31 @@
"__id__": 9
},
{
"__id__":
21
"__id__":
12
},
{
"__id__":
25
"__id__":
14
},
{
"__id__": 2
7
"__id__": 2
6
},
{
"__id__": 3
5
"__id__": 3
0
},
{
"__id__": 37
"__id__": 32
},
{
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 4
9
"__id__": 4
6
},
{
"__id__":
50
"__id__":
47
}
],
"_prefab": null,
...
...
@@ -373,29 +376,255 @@
},
{
"__type__": "cc.Node",
"_name": "
pageProgress
",
"_name": "
loadingBg
",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
}
],
"_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": [
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": "c6O7HQTtpHyoy08KGsEliH"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_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": "bfoJejCMtPp5YaWNfpv/Ts"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_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": "3d/Tt/ythNs6hjxxVMXCGH"
},
{
"__type__": "cc.Node",
"_name": "loadingLayer",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 256,
"height": 258
},
"_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": "dcbdHfvwdLRaq6IEt7QTpA"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "32d4c07d-d14c-472e-9982-d77b5f99f84a#3cf68978-c51e-4094-8539-c768bbfaf05a",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "32d4c07d-d14c-472e-9982-d77b5f99f84a"
},
"_N$dragonAtlasAsset": {
"__uuid__": "3cf68978-c51e-4094-8539-c768bbfaf05a"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "7brIT9b3hCYpDdmPnl9Qzo"
},
{
"__type__": "cc.Node",
"_name": "pageProgress",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 15
},
{
"__id__": 16
"__id__": 18
},
{
"__id__": 21
}
],
"_active": true,
"_components": [
{
"__id__":
19
"__id__":
24
},
{
"__id__": 2
0
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -451,16 +680,16 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__":
9
"__id__":
14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
1
"__id__": 1
6
},
{
"__id__": 1
2
"__id__": 1
7
}
],
"_prefab": null,
...
...
@@ -516,7 +745,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
"__id__": 1
5
},
"_enabled": true,
"_materials": [
...
...
@@ -548,7 +777,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
"__id__": 1
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -575,16 +804,16 @@
"_name": "stage",
"_objFlags": 0,
"_parent": {
"__id__":
9
"__id__":
14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
4
"__id__": 1
9
},
{
"__id__":
15
"__id__":
20
}
],
"_prefab": null,
...
...
@@ -640,7 +869,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
"__id__": 1
8
},
"_enabled": true,
"_materials": [
...
...
@@ -673,7 +902,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
"__id__": 1
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -700,16 +929,16 @@
"_name": "page",
"_objFlags": 0,
"_parent": {
"__id__":
9
"__id__":
14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
17
"__id__":
22
},
{
"__id__":
18
"__id__":
23
}
],
"_prefab": null,
...
...
@@ -765,7 +994,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
16
"__id__":
21
},
"_enabled": true,
"_materials": [
...
...
@@ -798,7 +1027,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
16
"__id__":
21
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -825,7 +1054,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
"__id__":
14
},
"_enabled": true,
"_materials": [
...
...
@@ -857,7 +1086,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
"__id__":
14
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -890,13 +1119,13 @@
"_active": false,
"_components": [
{
"__id__": 2
2
"__id__": 2
7
},
{
"__id__": 2
3
"__id__": 2
8
},
{
"__id__": 2
4
"__id__": 2
9
}
],
"_prefab": null,
...
...
@@ -952,7 +1181,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
1
"__id__": 2
6
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -979,7 +1208,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
1
"__id__": 2
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1047,7 +1276,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
1
"__id__": 2
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1082,10 +1311,10 @@
"__id__": 8
},
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__":
26
"__id__":
31
}
],
"_prefab": null,
...
...
@@ -1141,7 +1370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
25
"__id__":
30
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1170,309 +1399,16 @@
},
{
"__type__": "cc.Node",
"_name": "
loadingLayer
",
"_name": "
bg
",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
"_children": [],
"_active": false,
"_components": [
{
"__id__": 28
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "74vmJ2zBBM+bb8ymP3WkKK"
},
{
"__type__": "cc.Node",
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 27
},
"_children": [
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 32
},
{
"__id__": 33
}
],
"_prefab": {
"__id__": 34
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 511,
"height": 45
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-255.5,
-138.77,
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": "b6K+2mRlhGkoAlBMrLb+Hn"
},
{
"__type__": "cc.Node",
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
}
],
"_prefab": {
"__id__": 31
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 490,
"height": 26
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
11.627,
4.096,
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": "84tAZwPMRIDawBBvn2WwH0"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c8263dcf-d226-41b6-8cea-42be19fdb92a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "57HVwIx65Fyp9gm0BfBu8J"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 28
},
"asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
},
"fileId": "7dOjkMYWpFQaM6/QbKkBy/",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a72e2ca1-5791-4a3f-8a09-5e73e061b76a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a2Adx5oCZGManyuQiQGie3"
},
{
"__type__": "ff03b/26RFLJo4ogDzcFsUP",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"_id": "3eMT/DXoJNGZT/8Z3nuTUH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 28
},
"asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
},
"fileId": "",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 36
"__id__": 33
}
],
"_prefab": null,
...
...
@@ -1528,7 +1464,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
2
},
"_enabled": true,
"_materials": [
...
...
@@ -1564,16 +1500,16 @@
},
"_children": [
{
"__id__": 3
8
"__id__": 3
5
}
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 4
7
"__id__": 4
4
},
{
"__id__": 4
8
"__id__": 4
5
}
],
"_prefab": null,
...
...
@@ -1629,23 +1565,23 @@
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
4
},
"_children": [
{
"__id__": 3
9
"__id__": 3
6
},
{
"__id__":
42
"__id__":
39
}
],
"_active": true,
"_components": [
{
"__id__": 4
5
"__id__": 4
2
},
{
"__id__": 4
6
"__id__": 4
3
}
],
"_prefab": null,
...
...
@@ -1701,16 +1637,16 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 3
8
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
40
"__id__":
37
},
{
"__id__":
41
"__id__":
38
}
],
"_prefab": null,
...
...
@@ -1766,7 +1702,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
9
"__id__": 3
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1798,7 +1734,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
9
"__id__": 3
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1825,16 +1761,16 @@
"_name": "page",
"_objFlags": 0,
"_parent": {
"__id__": 3
8
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
3
"__id__": 4
0
},
{
"__id__": 4
4
"__id__": 4
1
}
],
"_prefab": null,
...
...
@@ -1890,7 +1826,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
42
"__id__":
39
},
"_enabled": true,
"_materials": [
...
...
@@ -1923,7 +1859,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
42
"__id__":
39
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1950,7 +1886,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1982,7 +1918,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2009,7 +1945,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2041,7 +1977,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
4
},
"_enabled": true,
"alignMode": 1,
...
...
assets/middleLayer_for_DG/script/middleLayer.ts
View file @
f8f29464
...
...
@@ -6,24 +6,9 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
NewClass
extends
middleLayerBase
{
showMask
()
{
const
mask
=
cc
.
find
(
'
middleLayer/mask
'
);
mask
.
active
=
true
;
cc
.
tween
(
mask
)
.
set
({
opacity
:
0
})
.
to
(
0.5
,
{
opacity
:
0
})
.
start
();
}
hideMask
()
{
const
mask
=
cc
.
find
(
'
middleLayer/mask
'
);
mask
.
stopAllActions
();
cc
.
tween
(
mask
)
.
set
({
opacity
:
0
})
.
to
(
0.5
,
{
opacity
:
0
})
.
call
(()
=>
{
mask
.
active
=
false
;
})
.
start
();
}
onCourseWareLoaded
()
{
...
...
@@ -51,6 +36,7 @@ export default class NewClass extends middleLayerBase {
initAir
(
this
);
this
.
reWriteAir
();
this
.
role
=
'
student
'
;
this
.
onMiddleLayerLoadingFinish
();
}
...
...
@@ -204,8 +190,11 @@ export default class NewClass extends middleLayerBase {
}
onHomeworkFinish
(
callBack
,
data
=
null
)
{
this
.
goNextPage
();
const
loadingBg
=
cc
.
find
(
'
middleLayer/loadingBg
'
);
loadingBg
.
opacity
=
50
;
this
.
goNextPage
();
const
process
=
cc
.
find
(
`middleLayer/pageProgress`
);
const
bar
=
cc
.
find
(
`bar`
,
process
);
let
barWidth
=
process
.
width
/
this
.
courses
.
length
*
(
this
.
courseIndex
+
1
);
...
...
@@ -264,6 +253,18 @@ export default class NewClass extends middleLayerBase {
callback
&&
callback
(
JSON
.
stringify
(
data
.
rows
));
});
}
if
(
!
(
<
any
>
window
).
air
)
{
(
<
any
>
window
).
air
=
{};
}
(
<
any
>
window
).
air
.
hideAirClassLoading
=
()
=>
{
(
<
any
>
window
).
air
.
onCourseInScreen
&&
(
<
any
>
window
).
air
.
onCourseInScreen
(()
=>
{
console
.
log
(
"
***成功调用onCourseInScreen***
"
);
(
<
any
>
window
).
air
.
onCourseInScreen
=
null
;
});
this
.
hideWaitingLetters
();
this
.
hideMask
();
}
}
callNativeFunction
(
param
)
{
...
...
@@ -287,40 +288,19 @@ export default class NewClass extends middleLayerBase {
}
this
.
isShowWaiting
=
true
;
const
layout
=
cc
.
find
(
'
middleLayer/layout
'
);
layout
.
removeAllChildren
();
const
canvas
=
cc
.
find
(
"
Canvas
"
);
const
bg
=
layout
.
addComponent
(
cc
.
Graphics
);
bg
.
fillRect
(
-
canvas
.
width
/
2
,
-
canvas
.
height
/
2
,
canvas
.
width
,
canvas
.
height
);
const
laodingLayer
=
cc
.
find
(
'
middleLayer/loadingLayer
'
);
laodingLayer
.
active
=
true
;
const
script
=
cc
.
find
(
'
middleLayer/loadingLayer/progress
'
).
getComponent
(
'
progressScript
'
);
script
.
setProgress
(
0
);
const
id
=
setInterval
(()
=>
{
// console.log('changeObj.value: ', changeObj.value);
script
.
setProgress
(
changeObj
.
value
);
},
1
);
const
changeObj
=
{
value
:
0
};
cc
.
tween
(
changeObj
)
.
to
(
5
,
{
value
:
0.9
})
.
call
(()
=>
{
clearInterval
(
id
);
})
.
start
();
const
loadingBg
=
cc
.
find
(
'
middleLayer/loadingBg
'
);
loadingBg
.
active
=
true
;
}
hideWaitingLetters
()
{
const
l
ayout
=
cc
.
find
(
'
middleLayer/layout
'
);
l
ayout
.
active
=
false
;
const
l
oadingBg
=
cc
.
find
(
'
middleLayer/loadingBg
'
);
l
oadingBg
.
active
=
false
;
const
laodingLayer
=
cc
.
find
(
'
middleLayer/loadingLayer
'
);
laodingLayer
.
active
=
false
;
this
.
isShowWaiting
=
false
;
}
getRainbowColorList
()
{
...
...
assets/middleLayer_for_DG/script/middleLayerBase.ts
View file @
f8f29464
...
...
@@ -126,8 +126,6 @@ export abstract class middleLayerBase extends cc.Component {
console
.
log
(
'
sceneName =
'
+
sceneName
);
const
canvas
=
cc
.
find
(
'
Canvas
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
this
.
hideWaitingLetters
();
this
.
hideMask
();
canvas
.
getComponent
(
cc
.
Widget
).
updateAlignment
();
middleLayer
.
scale
=
canvas
.
width
/
middleLayer
.
width
;
// this.showLog('middleLayer.scale = ' + middleLayer.scale);
...
...
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