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
46eba889
Commit
46eba889
authored
Jun 06, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
044eacf2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
NJ_YouLeChang.fire
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
+6
-6
NJ_YouLeChang.ts
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
+9
-6
headImg.png
assets/NJ_YouLeChang/textures/userinfo/headImg.png
+0
-0
headImg.png.meta
assets/NJ_YouLeChang/textures/userinfo/headImg.png.meta
+6
-6
No files found.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
View file @
46eba889
...
@@ -2405,7 +2405,7 @@
...
@@ -2405,7 +2405,7 @@
"__id__": 74
"__id__": 74
}
}
],
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
"_components": [
{
{
"__id__": 78
"__id__": 78
...
@@ -2628,7 +2628,7 @@
...
@@ -2628,7 +2628,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 718,
"width": 718,
"height":
517
"height":
485
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -2965,8 +2965,8 @@
...
@@ -2965,8 +2965,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 8
5
,
"width": 8
6
,
"height": 10
7
"height": 10
8
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -2977,8 +2977,8 @@
...
@@ -2977,8 +2977,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0
,
-8.477
,
1
39.277
,
1
44.575
,
0,
0,
0,
0,
0,
0,
...
...
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
View file @
46eba889
...
@@ -84,17 +84,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -84,17 +84,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
token
:
cc
.
sys
.
localStorage
.
getItem
(
'
token
'
)
token
:
cc
.
sys
.
localStorage
.
getItem
(
'
token
'
)
});
});
console
.
log
(
'
goldDataStr =
'
,
goldDataStr
);
console
.
log
(
'
goldDataStr =
'
,
goldDataStr
);
const
goldData
=
JSON
.
parse
(
goldDataStr
);
const
goldNumber
=
cc
.
find
(
'
Canvas/userInfo/frame/goldBg/goldNumber
'
);
goldNumber
.
getComponent
(
cc
.
Label
).
string
=
goldData
.
data
;
const
nickname
=
cc
.
find
(
'
Canvas/userInfo/frame/nickname
'
);
const
nickname
=
cc
.
find
(
'
Canvas/userInfo/frame/nickname
'
);
nickname
.
getComponent
(
cc
.
Label
).
string
=
userInfo
.
nick_name
;
nickname
.
getComponent
(
cc
.
Label
).
string
=
userInfo
.
nick_name
;
if
(
userInfo
.
avatar_url
)
{
if
(
userInfo
.
avatar_url
)
{
}
const
headUrl
=
middleLayerComponent
.
getHeadUrl
();
const
headImg
=
cc
.
find
(
'
Canvas/userInfo/frame/mask/headImg
'
);
const
headImg
=
cc
.
find
(
'
Canvas/userInfo/frame/mask/headImg
'
);
cc
.
assetManager
.
loadRemote
(
userInfo
.
avatar_u
rl
,
(
err
,
tex
)
=>
{
cc
.
assetManager
.
loadRemote
(
headU
rl
,
(
err
,
tex
)
=>
{
headImg
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
new
cc
.
SpriteFrame
(
tex
);
headImg
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
new
cc
.
SpriteFrame
(
tex
);
});
});
}
}
}
initListener
()
{
initListener
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
...
...
assets/NJ_YouLeChang/textures/userinfo/headImg.png
View replaced file @
044eacf2
View file @
46eba889
10.4 KB
|
W:
|
H:
6.44 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/NJ_YouLeChang/textures/userinfo/headImg.png.meta
View file @
46eba889
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"premultiplyAlpha": false,
"genMipmaps": false,
"genMipmaps": false,
"packable": true,
"packable": true,
"width":
86
,
"width":
648
,
"height":
108
,
"height":
209
,
"platformSettings": {},
"platformSettings": {},
"subMetas": {
"subMetas": {
"headImg": {
"headImg": {
...
@@ -22,10 +22,10 @@
...
@@ -22,10 +22,10 @@
"offsetY": 0,
"offsetY": 0,
"trimX": 0,
"trimX": 0,
"trimY": 0,
"trimY": 0,
"width":
648
,
"width":
86
,
"height":
209
,
"height":
108
,
"rawWidth":
648
,
"rawWidth":
86
,
"rawHeight":
209
,
"rawHeight":
108
,
"borderTop": 0,
"borderTop": 0,
"borderBottom": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderLeft": 0,
...
...
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