Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hzlh-beautifulFunFestival-snake-20241222
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
hzlh-beautifulFunFestival-snake-20241222
Commits
e5fc9be6
Commit
e5fc9be6
authored
Jan 24, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 任务样式调整
parent
14584f96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
TaskItem.prefab
...l-snake-20241222/assets/Bundles/TaskPanel/TaskItem.prefab
+17
-17
TaskItem.ts
...nake-20241222/assets/Scripts/Panels/TaskPanel/TaskItem.ts
+1
-1
No files found.
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/TaskPanel/TaskItem.prefab
View file @
e5fc9be6
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
80
,
"width": 1
56
,
"height": 50.4
"height": 50.4
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -314,8 +314,8 @@
...
@@ -314,8 +314,8 @@
"_string": "邀请好友助力",
"_string": "邀请好友助力",
"_horizontalAlign": 1,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize":
30
,
"_actualFontSize":
26
,
"_fontSize":
30
,
"_fontSize":
26
,
"_fontFamily": "Arial",
"_fontFamily": "Arial",
"_lineHeight": 40,
"_lineHeight": 40,
"_overflow": 0,
"_overflow": 0,
...
@@ -539,7 +539,7 @@
...
@@ -539,7 +539,7 @@
"_string": "<b>游戏机会<color=#e63323><size=28>+0</size></color></b>",
"_string": "<b>游戏机会<color=#e63323><size=28>+0</size></color></b>",
"_horizontalAlign": 0,
"_horizontalAlign": 0,
"_verticalAlign": 1,
"_verticalAlign": 1,
"_fontSize": 2
4
,
"_fontSize": 2
3
,
"_fontColor": {
"_fontColor": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 161,
"r": 161,
...
@@ -607,7 +607,7 @@
...
@@ -607,7 +607,7 @@
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 2
37.242
,
"x": 2
55.62099999999998
,
"y": 0.5799999999999272,
"y": 0.5799999999999272,
"z": 0
"z": 0
},
},
...
@@ -673,9 +673,9 @@
...
@@ -673,9 +673,9 @@
},
},
"_lscale": {
"_lscale": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x":
1
,
"x":
0.8
,
"y":
1
,
"y":
0.8
,
"z":
1
"z":
0.8
},
},
"_mobility": 0,
"_mobility": 0,
"_layer": 33554432,
"_layer": 33554432,
...
@@ -868,9 +868,9 @@
...
@@ -868,9 +868,9 @@
},
},
"_lscale": {
"_lscale": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x":
1
,
"x":
0.8
,
"y":
1
,
"y":
0.8
,
"z":
1
"z":
0.8
},
},
"_mobility": 0,
"_mobility": 0,
"_layer": 33554432,
"_layer": 33554432,
...
@@ -1063,9 +1063,9 @@
...
@@ -1063,9 +1063,9 @@
},
},
"_lscale": {
"_lscale": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x":
1
,
"x":
0.8
,
"y":
1
,
"y":
0.8
,
"z":
1
"z":
0.8
},
},
"_mobility": 0,
"_mobility": 0,
"_layer": 33554432,
"_layer": 33554432,
...
@@ -1233,7 +1233,7 @@
...
@@ -1233,7 +1233,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
95.0000000000000
6,
"width": 1
17.2419999999999
6,
"height": 60
"height": 60
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -1261,8 +1261,8 @@
...
@@ -1261,8 +1261,8 @@
},
},
"_alignFlags": 40,
"_alignFlags": 40,
"_target": null,
"_target": null,
"_left":
497.74199999999996
,
"_left":
555
,
"_right":
23.257999999999967
,
"_right":
43.758000000000024
,
"_top": 0,
"_top": 0,
"_bottom": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
...
...
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Panels/TaskPanel/TaskItem.ts
View file @
e5fc9be6
...
@@ -50,7 +50,7 @@ export class TaskItem extends ScrollListItem {
...
@@ -50,7 +50,7 @@ export class TaskItem extends ScrollListItem {
const
{
taskStatus
,
title
,
subTitle
,
options
,
completedSize
,
intervalLimitSize
}
=
data
;
const
{
taskStatus
,
title
,
subTitle
,
options
,
completedSize
,
intervalLimitSize
}
=
data
;
const
titleStr
=
`
${
title
}
(
${
completedSize
}
/
${
intervalLimitSize
}
)`
const
titleStr
=
`
${
title
}
(
${
completedSize
}
/
${
intervalLimitSize
}
)`
this
.
title
.
string
=
strFormat
(
titleStr
,
27
);
this
.
title
.
string
=
strFormat
(
titleStr
,
34
);
this
.
subTitle
.
string
=
`
${
subTitle
||
''
}
<color=#e63323><b><size=28>+
${
options
[
0
]?.
sendCount
||
0
}
<
/size></
b
><
/color>`
;
this
.
subTitle
.
string
=
`
${
subTitle
||
''
}
<color=#e63323><b><size=28>+
${
options
[
0
]?.
sendCount
||
0
}
<
/size></
b
><
/color>`
;
this
.
doComplete
.
active
=
false
;
this
.
doComplete
.
active
=
false
;
...
...
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