Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_JJ_F
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_JJ_F
Commits
630c962b
Commit
630c962b
authored
Apr 12, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
d04b109a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
257 additions
and
32 deletions
+257
-32
middleLayer_for_JJ_F.fire
assets/middleLayer_for_JJ_F/scene/middleLayer_for_JJ_F.fire
+241
-29
middleLayer.ts
assets/middleLayer_for_JJ_F/script/middleLayer.ts
+7
-3
middleLayerBase.ts
assets/middleLayer_for_JJ_F/script/middleLayerBase.ts
+9
-0
No files found.
assets/middleLayer_for_JJ_F/scene/middleLayer_for_JJ_F.fire
View file @
630c962b
...
@@ -305,25 +305,25 @@
...
@@ -305,25 +305,25 @@
"__id__": 14
"__id__": 14
},
},
{
{
"__id__":
29
"__id__":
34
},
},
{
{
"__id__": 3
1
"__id__": 3
6
},
},
{
{
"__id__": 3
3
"__id__": 3
8
},
},
{
{
"__id__": 4
0
"__id__": 4
5
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
4
"__id__": 4
9
},
},
{
{
"__id__":
45
"__id__":
50
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -605,15 +605,18 @@
...
@@ -605,15 +605,18 @@
},
},
{
{
"__id__": 19
"__id__": 19
},
{
"__id__": 27
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
27
"__id__":
32
},
},
{
{
"__id__":
28
"__id__":
33
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1071,6 +1074,215 @@
...
@@ -1071,6 +1074,215 @@
"fileId": "",
"fileId": "",
"sync": false
"sync": false
},
},
{
"__type__": "cc.Node",
"_name": "back_btn",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 131,
"height": 131
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2424.437,
2421.641,
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": "b3ifEYA0tHU7pQ2lG98ZUv"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "57bdc862-1a68-4657-9b66-b5115d097b7e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "43urnxDydJspQ7+TvlErJR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 10.062999999999988,
"_right": 0,
"_top": 12.85899999999998,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "c1dC3W8VFL8bmyMlgLtGRg"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 31
}
],
"_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": "981rdDpytB4JPH30ZJmMtX"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 8
},
"component": "",
"_componentId": "60d81OE+nRLtoMukBLWZZu2",
"handler": "onBackBtnClick",
"customEventData": ""
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
...
@@ -1122,7 +1334,7 @@
...
@@ -1122,7 +1334,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 3
0
"__id__": 3
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1178,7 +1390,7 @@
...
@@ -1178,7 +1390,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
29
"__id__":
34
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1216,7 +1428,7 @@
...
@@ -1216,7 +1428,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 3
2
"__id__": 3
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1272,7 +1484,7 @@
...
@@ -1272,7 +1484,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
1
"__id__": 3
6
},
},
"_enabled": true,
"_enabled": true,
"_id": "c8RSZKHRJO95/RfIMIkSA5"
"_id": "c8RSZKHRJO95/RfIMIkSA5"
...
@@ -1286,13 +1498,13 @@
...
@@ -1286,13 +1498,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 3
4
"__id__": 3
9
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
39
"__id__":
44
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1348,19 +1560,19 @@
...
@@ -1348,19 +1560,19 @@
"_name": "back_btn",
"_name": "back_btn",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 3
3
"__id__": 3
8
},
},
"_children": [],
"_children": [],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
35
"__id__":
40
},
},
{
{
"__id__":
36
"__id__":
41
},
},
{
{
"__id__":
37
"__id__":
42
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1416,7 +1628,7 @@
...
@@ -1416,7 +1628,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
4
"__id__": 3
9
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1448,7 +1660,7 @@
...
@@ -1448,7 +1660,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
4
"__id__": 3
9
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1475,7 +1687,7 @@
...
@@ -1475,7 +1687,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
4
"__id__": 3
9
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -1484,7 +1696,7 @@
...
@@ -1484,7 +1696,7 @@
"zoomScale": 1.2,
"zoomScale": 1.2,
"clickEvents": [
"clickEvents": [
{
{
"__id__":
38
"__id__":
43
}
}
],
],
"_N$interactable": true,
"_N$interactable": true,
...
@@ -1557,7 +1769,7 @@
...
@@ -1557,7 +1769,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
3
"__id__": 3
8
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1588,7 +1800,7 @@
...
@@ -1588,7 +1800,7 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 4
1
"__id__": 4
6
}
}
],
],
"_active": false,
"_active": false,
...
@@ -1646,11 +1858,11 @@
...
@@ -1646,11 +1858,11 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
5
},
},
"_children": [
"_children": [
{
{
"__id__": 4
2
"__id__": 4
7
}
}
],
],
"_active": true,
"_active": true,
...
@@ -1708,13 +1920,13 @@
...
@@ -1708,13 +1920,13 @@
"_name": "btn",
"_name": "btn",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
1
"__id__": 4
6
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
3
"__id__": 4
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1770,7 +1982,7 @@
...
@@ -1770,7 +1982,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 4
2
"__id__": 4
7
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
assets/middleLayer_for_JJ_F/script/middleLayer.ts
View file @
630c962b
...
@@ -102,11 +102,15 @@ export default class NewClass extends middleLayerBase {
...
@@ -102,11 +102,15 @@ export default class NewClass extends middleLayerBase {
}
}
showBackBtn
()
{
showBackBtn
()
{
return
;
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
backBtn
.
active
=
true
;
backBtn
.
active
=
true
;
}
}
hideBackBtn
()
{
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
backBtn
.
active
=
false
;
}
onBackBtnClick
()
{
onBackBtnClick
()
{
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
...
@@ -205,8 +209,8 @@ export default class NewClass extends middleLayerBase {
...
@@ -205,8 +209,8 @@ export default class NewClass extends middleLayerBase {
if
(
res
.
code
==
'
200
'
)
{
if
(
res
.
code
==
'
200
'
)
{
cc
.
sys
.
localStorage
.
setItem
(
'
student_token
'
,
res
.
data
.
student_token
);
//
cc.sys.localStorage.setItem('student_token', res.data.student_token);
console
.
log
(
"
student_token 2:
"
,
res
.
data
.
student_token
);
//
console.log("student_token 2: ", res.data.student_token);
global
.
userInfo
=
res
.
data
;
global
.
userInfo
=
res
.
data
;
...
...
assets/middleLayer_for_JJ_F/script/middleLayerBase.ts
View file @
630c962b
...
@@ -17,6 +17,11 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -17,6 +17,11 @@ export abstract class middleLayerBase extends cc.Component {
const
laodingLayerBG
=
cc
.
find
(
'
middleLayer/bg
'
);
const
laodingLayerBG
=
cc
.
find
(
'
middleLayer/bg
'
);
laodingLayerBG
.
active
=
false
;
laodingLayerBG
.
active
=
false
;
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
if
(
backBtn
)
{
backBtn
.
active
=
false
;
}
}
}
showWaitingLetters
(){
showWaitingLetters
(){
if
(
this
.
isShowWaiting
)
{
if
(
this
.
isShowWaiting
)
{
...
@@ -31,6 +36,10 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -31,6 +36,10 @@ export abstract class middleLayerBase extends cc.Component {
//const bg = layout.addComponent(cc.Graphics);
//const bg = layout.addComponent(cc.Graphics);
//bg.fillRect(-canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
//bg.fillRect(-canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
if
(
backBtn
)
{
backBtn
.
active
=
true
;
}
const
laodingLayer
=
cc
.
find
(
'
middleLayer/loadingLayer
'
);
const
laodingLayer
=
cc
.
find
(
'
middleLayer/loadingLayer
'
);
laodingLayer
.
active
=
true
;
laodingLayer
.
active
=
true
;
...
...
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