Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
debug_shell
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
debug_shell
Commits
83daffdd
Commit
83daffdd
authored
Apr 22, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 培生趣鼠开屏页
parent
cb96afe0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
214 additions
and
7 deletions
+214
-7
debug_shell.fire
play/assets/debug_shell/scene/debug_shell.fire
+165
-6
debug_shell.js
play/assets/debug_shell/scene/debug_shell.js
+13
-1
welcome.png
play/assets/debug_shell/textures/welcome.png
+0
-0
welcome.png.meta
play/assets/debug_shell/textures/welcome.png.meta
+36
-0
No files found.
play/assets/debug_shell/scene/debug_shell.fire
View file @
83daffdd
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"__id__": 2
"__id__": 2
},
},
{
{
"__id__": 1
0
"__id__": 1
3
}
}
],
],
"_active": true,
"_active": true,
...
@@ -76,18 +76,21 @@
...
@@ -76,18 +76,21 @@
},
},
{
{
"__id__": 5
"__id__": 5
},
{
"__id__": 7
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
7
"__id__":
10
},
},
{
{
"__id__":
8
"__id__":
11
},
},
{
{
"__id__":
9
"__id__":
12
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -330,6 +333,162 @@
...
@@ -330,6 +333,162 @@
"_N$affectedByScale": false,
"_N$affectedByScale": false,
"_id": "29Y+oTmsNPB6uSBOKjIYkA"
"_id": "29Y+oTmsNPB6uSBOKjIYkA"
},
},
{
"__type__": "cc.Node",
"_name": "welcome",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2000,
"height": 1200
},
"_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": "81BkZtZH5PyIX4DdJB5noW"
},
{
"__type__": "cc.Node",
"_name": "middleLayer_for_PSQS",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2000,
"height": 1200
},
"_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": "bb8HNIma9I+ZsL75MyleQD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ee891320-3743-42a5-b4c8-31d986e4cbff"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "36AG+ndXNJRouyaJjjgy16"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
@@ -395,7 +554,7 @@
...
@@ -395,7 +554,7 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
1
"__id__": 1
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -451,7 +610,7 @@
...
@@ -451,7 +610,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
0
"__id__": 1
3
},
},
"_enabled": true,
"_enabled": true,
"cacertFile": {
"cacertFile": {
...
...
play/assets/debug_shell/scene/debug_shell.js
View file @
83daffdd
...
@@ -10,6 +10,18 @@ cc.Class({
...
@@ -10,6 +10,18 @@ cc.Class({
this
.
baseUrl
=
middleLayerData
.
baseUrl
;
this
.
baseUrl
=
middleLayerData
.
baseUrl
;
this
.
middleLayerName
=
middleLayerData
.
middleLayerName
;
this
.
middleLayerName
=
middleLayerData
.
middleLayerName
;
cc
.
debug
.
setDisplayStats
(
false
);
const
welcomeNode
=
cc
.
find
(
`Canvas/welcome/
${
this
.
middleLayerName
}
`
);
if
(
welcomeNode
)
{
welcomeNode
.
active
=
true
;
const
canvas
=
cc
.
find
(
'
Canvas
'
);
canvas
.
getComponent
(
cc
.
Widget
).
updateAlignment
();
welcomeNode
.
scale
=
math
.
max
(
canvas
.
width
/
welcomeNode
.
width
,
canvas
.
height
/
welcomeNode
.
height
);
}
const
uri
=
`/api/template/v1/
${
this
.
middleLayerName
}
`
;
const
uri
=
`/api/template/v1/
${
this
.
middleLayerName
}
`
;
this
.
callNetworkApiGet
(
this
.
baseUrl
,
uri
,
{},
(
respData
)
=>
{
this
.
callNetworkApiGet
(
this
.
baseUrl
,
uri
,
{},
(
respData
)
=>
{
...
@@ -79,7 +91,7 @@ cc.Class({
...
@@ -79,7 +91,7 @@ cc.Class({
}
else
{
}
else
{
return
JSON
.
stringify
({
return
JSON
.
stringify
({
baseUrl
:
"
http://staging-openapi.iteachabc.com/
"
,
baseUrl
:
"
http://staging-openapi.iteachabc.com/
"
,
middleLayerName
:
"
middleLayer_for_
NGT
"
,
middleLayerName
:
"
middleLayer_for_
PSQS
"
,
});
});
}
}
},
},
...
...
play/assets/debug_shell/textures/welcome.png
0 → 100644
View file @
83daffdd
490 KB
play/assets/debug_shell/textures/welcome.png.meta
0 → 100644
View file @
83daffdd
{
"ver": "2.3.5",
"uuid": "2d4fadbc-b6c0-4edd-9a0b-799b5553c02a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2280,
"height": 1242,
"platformSettings": {},
"subMetas": {
"welcome": {
"ver": "1.0.4",
"uuid": "ee891320-3743-42a5-b4c8-31d986e4cbff",
"rawTextureUuid": "2d4fadbc-b6c0-4edd-9a0b-799b5553c02a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2280,
"height": 1242,
"rawWidth": 2280,
"rawHeight": 1242,
"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