Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
e6c67a90
Commit
e6c67a90
authored
Dec 25, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
0d2e40ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+2
-2
RankScene.ts
assets/Scripts/Scenes/RankScene.ts
+2
-2
No files found.
assets/Scripts/Scenes/HomeScene.ts
View file @
e6c67a90
...
@@ -137,7 +137,7 @@ export class HomeScene extends Scene {
...
@@ -137,7 +137,7 @@ export class HomeScene extends Scene {
bagLightFlag
,
bagLightFlag
,
}
=
store
.
homeInfo
||
{};
}
=
store
.
homeInfo
||
{};
this
.
userName
.
string
=
strFormat
(
nickname
||
"
鸣鸣很忙
用户"
,
8
);
this
.
userName
.
string
=
strFormat
(
nickname
||
"
微信
用户"
,
8
);
this
.
pointNum
.
string
=
`
${
creditsNum
>
999999
?
"999999+"
:
creditsNum
}
`
;
this
.
pointNum
.
string
=
`
${
creditsNum
>
999999
?
"999999+"
:
creditsNum
}
`
;
this
.
userImg
.
spriteFrame
=
avatar
||
this
.
avatar
;
this
.
userImg
.
spriteFrame
=
avatar
||
this
.
avatar
;
this
.
signTxt
.
string
=
`连续签到
${
continueSignDays
||
0
}
天`
;
this
.
signTxt
.
string
=
`连续签到
${
continueSignDays
||
0
}
天`
;
...
@@ -154,7 +154,7 @@ export class HomeScene extends Scene {
...
@@ -154,7 +154,7 @@ export class HomeScene extends Scene {
node
.
active
=
true
node
.
active
=
true
node
.
getChildByPath
(
"mask/rank_img"
).
getComponent
(
Sprite
).
spriteFrame
=
item
.
avatar
||
this
.
avatar
;
node
.
getChildByPath
(
"mask/rank_img"
).
getComponent
(
Sprite
).
spriteFrame
=
item
.
avatar
||
this
.
avatar
;
node
.
getChildByName
(
"rank_name"
).
getComponent
(
Label
).
string
=
strFormat
(
item
.
nickname
||
"
鸣鸣很忙
用户"
,
8
);
node
.
getChildByName
(
"rank_name"
).
getComponent
(
Label
).
string
=
strFormat
(
item
.
nickname
||
"
微信
用户"
,
8
);
})
})
}
else
{
}
else
{
this
.
rankList
.
active
=
false
;
this
.
rankList
.
active
=
false
;
...
...
assets/Scripts/Scenes/RankScene.ts
View file @
e6c67a90
...
@@ -332,7 +332,7 @@ export class RankScence extends Scene {
...
@@ -332,7 +332,7 @@ export class RankScence extends Scene {
}
}
cell
.
getChildByName
(
`rank`
).
getComponent
(
Label
).
string
=
rankTxt
;
cell
.
getChildByName
(
`rank`
).
getComponent
(
Label
).
string
=
rankTxt
;
cell
.
getChildByName
(
`sheng`
).
getComponent
(
Label
).
string
=
province
||
strFormat
(
`
${
nickname
||
"
鸣鸣很忙
用户"
}
`
,
12
);
cell
.
getChildByName
(
`sheng`
).
getComponent
(
Label
).
string
=
province
||
strFormat
(
`
${
nickname
||
"
微信
用户"
}
`
,
12
);
cell
.
getChildByName
(
`length`
).
getComponent
(
Label
).
string
=
(
score
>
99999999
?
"99999999+"
:
score
)
||
"0"
;
cell
.
getChildByName
(
`length`
).
getComponent
(
Label
).
string
=
(
score
>
99999999
?
"99999999+"
:
score
)
||
"0"
;
}
}
...
@@ -364,7 +364,7 @@ export class RankScence extends Scene {
...
@@ -364,7 +364,7 @@ export class RankScence extends Scene {
}
}
cell
.
getChildByName
(
`rank`
).
getComponent
(
Label
).
string
=
rankTxt
;
cell
.
getChildByName
(
`rank`
).
getComponent
(
Label
).
string
=
rankTxt
;
cell
.
getChildByName
(
`sheng`
).
getComponent
(
Label
).
string
=
province
||
strFormat
(
`
${
nickname
||
"
鸣鸣很忙
用户"
}
`
,
12
)
+
"(我)"
;
cell
.
getChildByName
(
`sheng`
).
getComponent
(
Label
).
string
=
province
||
strFormat
(
`
${
nickname
||
"
微信
用户"
}
`
,
12
)
+
"(我)"
;
cell
.
getChildByName
(
`length`
).
getComponent
(
Label
).
string
=
(
score
>
99999999
?
"99999999+"
:
score
)
||
"0"
;
cell
.
getChildByName
(
`length`
).
getComponent
(
Label
).
string
=
(
score
>
99999999
?
"99999999+"
:
score
)
||
"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