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
1f637066
Commit
1f637066
authored
Dec 04, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 打印sceneName
parent
bc1d5ed6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
295 additions
and
76 deletions
+295
-76
middleLayer_for_debug.fire
...ts/middleLayer_for_debug/scene/middleLayer_for_debug.fire
+291
-76
middleLayer.js
assets/middleLayer_for_debug/script/middleLayer.js
+4
-0
No files found.
assets/middleLayer_for_debug/scene/middleLayer_for_debug.fire
View file @
1f637066
...
...
@@ -298,16 +298,16 @@
"__id__": 22
},
{
"__id__": 10
0
"__id__": 10
5
}
],
"_active": true,
"_components": [
{
"__id__": 1
35
"__id__": 1
40
},
{
"__id__": 1
36
"__id__": 1
41
}
],
"_prefab": null,
...
...
@@ -1080,12 +1080,15 @@
},
{
"__id__": 97
},
{
"__id__": 99
}
],
"_active": true,
"_components": [
{
"__id__":
99
"__id__":
104
}
],
"_prefab": null,
...
...
@@ -4787,6 +4790,218 @@
"_N$cacheMode": 0,
"_id": "ee0WrmR8hIQbOtXJqrMoQ5"
},
{
"__type__": "cc.Node",
"_name": "loadingProgress",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [
{
"__id__": 100
}
],
"_active": true,
"_components": [
{
"__id__": 102
},
{
"__id__": 103
}
],
"_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__": 99
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 101
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"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__": 100
},
"_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__": 99
},
"_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__": 99
},
"_enabled": true,
"_N$totalLength": 300,
"_N$barSprite": {
"__id__": 101
},
"_N$mode": 0,
"_N$progress": 0.5,
"_N$reverse": false,
"_id": "bc3W7j5EVJRaoW20bSToA3"
},
{
"__type__": "cc.Widget",
"_name": "",
...
...
@@ -4823,25 +5038,25 @@
},
"_children": [
{
"__id__": 10
1
"__id__": 10
6
},
{
"__id__": 1
07
"__id__": 1
12
},
{
"__id__": 11
0
"__id__": 11
5
},
{
"__id__": 1
18
"__id__": 1
23
},
{
"__id__": 1
26
"__id__": 1
31
}
],
"_active": true,
"_components": [
{
"__id__": 13
4
"__id__": 13
9
}
],
"_prefab": null,
...
...
@@ -4897,20 +5112,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
5
},
"_children": [
{
"__id__": 10
2
"__id__": 10
7
}
],
"_active": false,
"_components": [
{
"__id__": 1
05
"__id__": 1
10
},
{
"__id__": 1
06
"__id__": 1
11
}
],
"_prefab": null,
...
...
@@ -4966,16 +5181,16 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 10
1
"__id__": 10
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
3
"__id__": 10
8
},
{
"__id__": 10
4
"__id__": 10
9
}
],
"_prefab": null,
...
...
@@ -5031,7 +5246,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
2
"__id__": 10
7
},
"_enabled": true,
"_materials": [
...
...
@@ -5064,7 +5279,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
2
"__id__": 10
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5091,7 +5306,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
6
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5123,7 +5338,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
6
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -5150,16 +5365,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
08
"__id__": 1
13
},
{
"__id__": 1
09
"__id__": 1
14
}
],
"_prefab": null,
...
...
@@ -5215,7 +5430,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
07
"__id__": 1
12
},
"_enabled": true,
"_materials": [
...
...
@@ -5247,7 +5462,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
07
"__id__": 1
12
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5274,26 +5489,26 @@
"_name": "Console",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
5
},
"_children": [
{
"__id__": 11
1
"__id__": 11
6
}
],
"_active": false,
"_components": [
{
"__id__": 11
4
"__id__": 11
9
},
{
"__id__": 1
15
"__id__": 1
20
},
{
"__id__": 1
16
"__id__": 1
21
},
{
"__id__": 1
17
"__id__": 1
22
}
],
"_prefab": null,
...
...
@@ -5349,16 +5564,16 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 11
0
"__id__": 11
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
2
"__id__": 11
7
},
{
"__id__": 11
3
"__id__": 11
8
}
],
"_prefab": null,
...
...
@@ -5414,7 +5629,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
1
"__id__": 11
6
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5446,7 +5661,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
1
"__id__": 11
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5473,7 +5688,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
0
"__id__": 11
5
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -5500,7 +5715,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
0
"__id__": 11
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5520,7 +5735,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
0
"__id__": 11
5
},
"_enabled": true,
"horizontal": false,
...
...
@@ -5532,10 +5747,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 11
1
"__id__": 11
6
},
"content": {
"__id__": 11
1
"__id__": 11
6
},
"_id": "43wBGhGBpFP7OYyNM+j0Ho"
},
...
...
@@ -5544,7 +5759,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
0
"__id__": 11
5
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5576,20 +5791,20 @@
"_name": "BtnClose",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
5
},
"_children": [
{
"__id__": 1
19
"__id__": 1
24
}
],
"_active": false,
"_components": [
{
"__id__": 12
4
"__id__": 12
9
},
{
"__id__": 1
25
"__id__": 1
30
}
],
"_prefab": null,
...
...
@@ -5645,20 +5860,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
18
"__id__": 1
23
},
"_children": [
{
"__id__": 12
0
"__id__": 12
5
}
],
"_active": true,
"_components": [
{
"__id__": 12
2
"__id__": 12
7
},
{
"__id__": 12
3
"__id__": 12
8
}
],
"_prefab": null,
...
...
@@ -5714,13 +5929,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 1
19
"__id__": 1
24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
1
"__id__": 12
6
}
],
"_prefab": null,
...
...
@@ -5776,7 +5991,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
0
"__id__": 12
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5809,7 +6024,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
24
},
"_enabled": true,
"_materials": [
...
...
@@ -5841,7 +6056,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
24
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -5868,7 +6083,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
18
"__id__": 1
23
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5941,7 +6156,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 1
19
"__id__": 1
24
},
"_id": "54SC9WcmBAZ6cTznyI0o+3"
},
...
...
@@ -5950,7 +6165,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
18
"__id__": 1
23
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5977,20 +6192,20 @@
"_name": "BtnOpen",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
5
},
"_children": [
{
"__id__": 1
27
"__id__": 1
32
}
],
"_active": true,
"_components": [
{
"__id__": 13
2
"__id__": 13
7
},
{
"__id__": 13
3
"__id__": 13
8
}
],
"_prefab": null,
...
...
@@ -6046,20 +6261,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
26
"__id__": 1
31
},
"_children": [
{
"__id__": 1
28
"__id__": 1
33
}
],
"_active": true,
"_components": [
{
"__id__": 13
0
"__id__": 13
5
},
{
"__id__": 13
1
"__id__": 13
6
}
],
"_prefab": null,
...
...
@@ -6115,13 +6330,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 1
27
"__id__": 1
32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
29
"__id__": 1
34
}
],
"_prefab": null,
...
...
@@ -6177,7 +6392,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
33
},
"_enabled": true,
"_materials": [
...
...
@@ -6210,7 +6425,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
27
"__id__": 1
32
},
"_enabled": true,
"_materials": [
...
...
@@ -6242,7 +6457,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
27
"__id__": 1
32
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -6269,7 +6484,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
26
"__id__": 1
31
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -6342,7 +6557,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 1
27
"__id__": 1
32
},
"_id": "81HoUuRyJOppi+n4Av/u0p"
},
...
...
@@ -6351,7 +6566,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
26
"__id__": 1
31
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6378,7 +6593,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
0
"__id__": 10
5
},
"_enabled": true,
"alignMode": 1,
...
...
assets/middleLayer_for_debug/script/middleLayer.js
View file @
1f637066
...
...
@@ -157,9 +157,12 @@ cc.Class({
updateProcessBar
()
{
const
label
=
cc
.
find
(
"
middleLayer/ui/ProgressLabel
"
).
getComponent
(
cc
.
Label
);
label
.
string
=
`正在加载:
${
this
.
loadedCount
}
/
${
this
.
preloadCount
}
`
;
const
loadingProgress
=
cc
.
find
(
'
middleLayer/ui/loadingProgress
'
);
if
(
this
.
loadedCount
>
this
.
preloadCount
*
0.99
)
{
cc
.
find
(
"
middleLayer/ui/ProgressLabel
"
).
active
=
false
;
loadingProgress
.
active
=
false
;
}
loadingProgress
.
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
loadedCount
/
this
.
preloadCount
;
},
asyncDelayLog
(
str
)
{
...
...
@@ -390,6 +393,7 @@ cc.Class({
this
.
hideWaitingLetters
();
cc
.
audioEngine
.
stopAll
();
cc
.
director
.
runScene
(
scene
,
null
,
()
=>
{
console
.
log
(
'
sceneName =
'
+
sceneName
);
const
Canvas
=
cc
.
find
(
'
Canvas
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
middleLayer
.
scale
=
Canvas
.
width
/
middleLayer
.
width
;
...
...
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