Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_YouLeChang
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
NJ_YouLeChang
Commits
f2ad9cb4
Commit
f2ad9cb4
authored
Jun 06, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 用户信息页
parent
060c04e3
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1703 additions
and
7 deletions
+1703
-7
NJ_YouLeChang.fire
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
+1459
-3
NJ_YouLeChang.ts
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
+16
-4
userinfo.meta
assets/NJ_YouLeChang/textures/userinfo.meta
+12
-0
btn.png
assets/NJ_YouLeChang/textures/userinfo/btn.png
+0
-0
btn.png.meta
assets/NJ_YouLeChang/textures/userinfo/btn.png.meta
+36
-0
btnClose.png
assets/NJ_YouLeChang/textures/userinfo/btnClose.png
+0
-0
btnClose.png.meta
assets/NJ_YouLeChang/textures/userinfo/btnClose.png.meta
+36
-0
frame.png
assets/NJ_YouLeChang/textures/userinfo/frame.png
+0
-0
frame.png.meta
assets/NJ_YouLeChang/textures/userinfo/frame.png.meta
+36
-0
goldBg.png
assets/NJ_YouLeChang/textures/userinfo/goldBg.png
+0
-0
goldBg.png.meta
assets/NJ_YouLeChang/textures/userinfo/goldBg.png.meta
+36
-0
headBack.png
assets/NJ_YouLeChang/textures/userinfo/headBack.png
+0
-0
headBack.png.meta
assets/NJ_YouLeChang/textures/userinfo/headBack.png.meta
+36
-0
headImg.png
assets/NJ_YouLeChang/textures/userinfo/headImg.png
+0
-0
headImg.png.meta
assets/NJ_YouLeChang/textures/userinfo/headImg.png.meta
+36
-0
No files found.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
View file @
f2ad9cb4
...
@@ -79,18 +79,21 @@
...
@@ -79,18 +79,21 @@
},
},
{
{
"__id__": 41
"__id__": 41
},
{
"__id__": 49
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
4
9
"__id__":
7
9
},
},
{
{
"__id__":
5
0
"__id__":
8
0
},
},
{
{
"__id__":
5
1
"__id__":
8
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2384,6 +2387,1459 @@
...
@@ -2384,6 +2387,1459 @@
},
},
"_id": "9dG7baF/9HzqX1HgbFVbkE"
"_id": "9dG7baF/9HzqX1HgbFVbkE"
},
},
{
"__type__": "cc.Node",
"_name": "userInfo",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 50
},
{
"__id__": 53
},
{
"__id__": 74
}
],
"_active": false,
"_components": [
{
"__id__": 78
}
],
"_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": "6fbN1Z2NVOuo582nzKbgez"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
},
{
"__id__": 52
}
],
"_prefab": null,
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"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": "99Lmrzx81Lr4vASpyyatVt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
},
"_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": "c9u4HT03FNtrWk99wb6omC"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
},
"_enabled": true,
"alignMode": 2,
"_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": 100,
"_originalHeight": 100,
"_id": "70vrHyK41Ll7otrhCJN2KF"
},
{
"__type__": "cc.Node",
"_name": "frame",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [
{
"__id__": 54
},
{
"__id__": 56
},
{
"__id__": 60
},
{
"__id__": 62
},
{
"__id__": 64
},
{
"__id__": 68
}
],
"_active": true,
"_components": [
{
"__id__": 73
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 718,
"height": 517
},
"_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": "2dEcl2qKxO143wBKj6gy7Y"
},
{
"__type__": "cc.Node",
"_name": "headBack",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 96,
"height": 101
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15,
111.498,
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": "18TtHE07xE1YCrzU3P0fXR"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9c4402b5-31f8-4c25-994a-52b471ac894d"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "aadaxs64JH07kIiWz7p/L9"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [
{
"__id__": 57
}
],
"_active": true,
"_components": [
{
"__id__": 59
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 96,
"height": 101
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15,
111.498,
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": "4cxC6tfy9NC4VypE1xZXmG"
},
{
"__type__": "cc.Node",
"_name": "headImg",
"_objFlags": 0,
"_parent": {
"__id__": 56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 96,
"height": 101
},
"_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": "6c7Q5AIWxE45xKKAXUGzXA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c1f251f8-5edf-4f4e-9a21-b76d97714a40"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b6GWUULN5Hq6yO2eWjyRsn"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": {
"__uuid__": "9c4402b5-31f8-4c25-994a-52b471ac894d"
},
"_type": 2,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": false,
"_id": "8eEYsPwctI+pjwkgSukkZO"
},
{
"__type__": "cc.Node",
"_name": "headTop",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 85,
"height": 107
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
139.277,
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": "0a054/ygFCEIJ9SQ6NY6ZR"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3a503e3a-adef-4882-8efb-2f06d4df9f85"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "05XOqcvSVLo5nf+M36Q7Dr"
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 141,
"g": 143,
"b": 144,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 132.07,
"height": 30.24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15,
25,
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": "35yrG7r3BDIrPzoOd3TMrg"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "player name",
"_N$string": "player name",
"_fontSize": 24,
"_lineHeight": 24,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "72ro8COpFEqL63nQtEU1XN"
},
{
"__type__": "cc.Node",
"_name": "goldBg",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [
{
"__id__": 65
}
],
"_active": true,
"_components": [
{
"__id__": 67
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 267,
"height": 51
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15,
-38.987,
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": "66MIN0+llP4Yril7kuAMK1"
},
{
"__type__": "cc.Node",
"_name": "goldNumber",
"_objFlags": 0,
"_parent": {
"__id__": 64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 190.2,
"height": 47.88
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
18.502,
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": "efTOsDCtRKuae1PhOAY4OK"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "888888888",
"_N$string": "888888888",
"_fontSize": 38,
"_lineHeight": 38,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "361jPtBCVJWL1XMJwsT14V"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "440ac7d0-d364-4c1c-9bae-09297f0d8ca1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "63dhyUvQpIto+O/iN55yIN"
},
{
"__type__": "cc.Node",
"_name": "BtnLogout",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [
{
"__id__": 69
}
],
"_active": true,
"_components": [
{
"__id__": 71
},
{
"__id__": 72
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 223,
"height": 62
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15,
-185.734,
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": "18Xq2+pdNBLaGslX9rTSHB"
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 68
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 104,
"height": 32.76
},
"_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": "40u/6fJHxOcKRiaXoXw1RR"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "退出登录",
"_N$string": "退出登录",
"_fontSize": 26,
"_lineHeight": 26,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "e6vaThe4VPYKKoHiKuW7fe"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "09115fa4-ba9f-4f80-8b96-cf1977075e57"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "486vSn98RHBa4cO4tSwrgB"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_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": "62RZR5cIBIIpKrxMASfS1Q"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6e87b526-8c04-47a0-a01e-df9c594fd0b9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "4b7RtK1fZLQpXCumfuu+Cn"
},
{
"__type__": "cc.Node",
"_name": "btnClose",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 75
},
{
"__id__": 76
},
{
"__id__": 77
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 54,
"height": 57
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
563,
281.5,
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": "2bevIbslVAw5Mypc9RZYpz"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "221cb354-ffbc-42df-8d06-a59eabf188b5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d5BO1jgUJPHpYMLHE2Allc"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
},
"_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": "53+7KxYS5DHLWyWaYM2EcD"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 33,
"_left": 0,
"_right": 50,
"_top": 50,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "e4EY7LkcFIqYdkh9Ctt6bi"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"alignMode": 2,
"_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": 0,
"_originalHeight": 0,
"_id": "be0xl6pbZHtooF4ccqGQs8"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
...
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
View file @
f2ad9cb4
...
@@ -63,11 +63,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -63,11 +63,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
const
kidInfo
=
await
middleLayer
.
getComponent
(
'
middleLayer
'
).
getUserInfo
();
const
kidInfo
=
await
middleLayer
.
getComponent
(
'
middleLayer
'
).
getUserInfo
();
cc
.
find
(
"
Canvas/avatar_border/nick_name
"
).
getComponent
(
cc
.
Label
).
string
=
kidInfo
.
nick_name
;
cc
.
find
(
"
Canvas/avatar_border/nick_name
"
).
getComponent
(
cc
.
Label
).
string
=
kidInfo
.
nick_name
;
const
avatarUrl
=
middleLayer
.
getComponent
(
'
middleLayer
'
).
getHeadUrl
(
kidInfo
.
avatar_url
||
1
);
const
avatarUrl
=
middleLayer
.
getComponent
(
'
middleLayer
'
).
getHeadUrl
(
kidInfo
.
avatar_url
||
1
);
getSpriteFrimeByUrl
(
avatarUrl
,
(
spriteFrame
)
=>
{
getSpriteFrimeByUrl
(
avatarUrl
,
(
spriteFrame
)
=>
{
cc
.
find
(
"
Canvas/avatar_border/defaulte_avatar
"
).
getComponent
(
cc
.
Sprite
).
spriteFrame
=
spriteFrame
;
cc
.
find
(
"
Canvas/avatar_border/defaulte_avatar
"
).
getComponent
(
cc
.
Sprite
).
spriteFrame
=
spriteFrame
;
});
});
this
.
initUserInfoView
();
}
async
initUserInfoView
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
middleLayer
)
{
return
;
}
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
const
userInfo
=
await
middleLayerComponent
.
getUserInfo
();
console
.
log
(
'
userInfo =
'
,
userInfo
);
// middleLayerComponent.showConfirm("确定退出?", () => {
// jumpToBundle('NJ_login');
// });
}
}
initListener
()
{
initListener
()
{
...
@@ -107,9 +121,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -107,9 +121,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
});
const
avatar_border
=
cc
.
find
(
'
Canvas/avatar_border
'
);
const
avatar_border
=
cc
.
find
(
'
Canvas/avatar_border
'
);
buttonOnClick
(
avatar_border
,
()
=>
{
buttonOnClick
(
avatar_border
,
()
=>
{
middleLayerComponent
.
showConfirm
(
"
确定退出?
"
,
()
=>
{
cc
.
find
(
'
Canvas/userInfo
'
).
active
=
true
;
jumpToBundle
(
'
NJ_login
'
);
});
});
});
}
}
}
}
assets/NJ_YouLeChang/textures/userinfo.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "1.1.2",
"uuid": "1dfa5d69-7877-481a-9234-e125c5ce29dc",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/userinfo/btn.png
0 → 100644
View file @
f2ad9cb4
3.73 KB
assets/NJ_YouLeChang/textures/userinfo/btn.png.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "2.3.5",
"uuid": "6d829687-515f-4372-81fb-b7735c7d8321",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 223,
"height": 62,
"platformSettings": {},
"subMetas": {
"btn": {
"ver": "1.0.4",
"uuid": "09115fa4-ba9f-4f80-8b96-cf1977075e57",
"rawTextureUuid": "6d829687-515f-4372-81fb-b7735c7d8321",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 223,
"height": 62,
"rawWidth": 223,
"rawHeight": 62,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/userinfo/btnClose.png
0 → 100644
View file @
f2ad9cb4
3.67 KB
assets/NJ_YouLeChang/textures/userinfo/btnClose.png.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "2.3.5",
"uuid": "652a0a60-8be2-4467-98a2-e3195cf14d10",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 54,
"height": 57,
"platformSettings": {},
"subMetas": {
"btnClose": {
"ver": "1.0.4",
"uuid": "221cb354-ffbc-42df-8d06-a59eabf188b5",
"rawTextureUuid": "652a0a60-8be2-4467-98a2-e3195cf14d10",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 54,
"height": 57,
"rawWidth": 54,
"rawHeight": 57,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/userinfo/frame.png
0 → 100644
View file @
f2ad9cb4
21.5 KB
assets/NJ_YouLeChang/textures/userinfo/frame.png.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "2.3.5",
"uuid": "8a29a16c-711d-49b6-ae1c-eabd648e0380",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "point",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 718,
"height": 518,
"platformSettings": {},
"subMetas": {
"frame": {
"ver": "1.0.4",
"uuid": "6e87b526-8c04-47a0-a01e-df9c594fd0b9",
"rawTextureUuid": "8a29a16c-711d-49b6-ae1c-eabd648e0380",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 718,
"height": 517,
"rawWidth": 718,
"rawHeight": 518,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/userinfo/goldBg.png
0 → 100644
View file @
f2ad9cb4
3.52 KB
assets/NJ_YouLeChang/textures/userinfo/goldBg.png.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "2.3.5",
"uuid": "4236da30-13eb-4adf-ab11-2f1d28646aeb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 267,
"height": 51,
"platformSettings": {},
"subMetas": {
"goldBg": {
"ver": "1.0.4",
"uuid": "440ac7d0-d364-4c1c-9bae-09297f0d8ca1",
"rawTextureUuid": "4236da30-13eb-4adf-ab11-2f1d28646aeb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 267,
"height": 51,
"rawWidth": 267,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/userinfo/headBack.png
0 → 100644
View file @
f2ad9cb4
1.87 KB
assets/NJ_YouLeChang/textures/userinfo/headBack.png.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "2.3.5",
"uuid": "05580bb1-24dd-4f17-9c92-d4f58d15ab8a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 96,
"height": 101,
"platformSettings": {},
"subMetas": {
"headBack": {
"ver": "1.0.4",
"uuid": "9c4402b5-31f8-4c25-994a-52b471ac894d",
"rawTextureUuid": "05580bb1-24dd-4f17-9c92-d4f58d15ab8a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 96,
"height": 101,
"rawWidth": 96,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_YouLeChang/textures/userinfo/headImg.png
0 → 100644
View file @
f2ad9cb4
4.54 KB
assets/NJ_YouLeChang/textures/userinfo/headImg.png.meta
0 → 100644
View file @
f2ad9cb4
{
"ver": "2.3.5",
"uuid": "7a29be13-b2cd-479a-bcdf-0f26ffc385dd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 86,
"height": 108,
"platformSettings": {},
"subMetas": {
"headImg": {
"ver": "1.0.4",
"uuid": "3a503e3a-adef-4882-8efb-2f06d4df9f85",
"rawTextureUuid": "7a29be13-b2cd-479a-bcdf-0f26ffc385dd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 85,
"height": 107,
"rawWidth": 86,
"rawHeight": 108,
"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