Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
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_kyxq
Commits
0b1501a4
Commit
0b1501a4
authored
Nov 09, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复单元页没有标题的问题
parent
107e6107
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
middleLayer_for_kyxq.fire
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
+2
-2
UnitPage.ts
assets/middleLayer_for_kyxq/script/UnitPage.ts
+2
-1
No files found.
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
View file @
0b1501a4
...
...
@@ -14013,7 +14013,7 @@
"__id__": 308
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 310
...
...
@@ -18820,7 +18820,7 @@
"__id__": 416
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 418
...
...
assets/middleLayer_for_kyxq/script/UnitPage.ts
View file @
0b1501a4
...
...
@@ -60,8 +60,9 @@ export default class NewClass extends cc.Component {
initScrollEvent
()
{
const
sv
=
cc
.
find
(
"
middleLayer/Views/UnitPage/unit_list_node/scrollView
"
)
const
canvas
=
cc
.
find
(
"
Canvas
"
);
sv
.
off
(
"
scrolling
"
)
sv
.
on
(
"
scrolling
"
,
(
e
)
=>
{
this
.
allListItemNodes
.
forEach
((
node
,
i
)
=>
{
this
.
allListItemNodes
.
forEach
((
node
)
=>
{
const
worldPos
=
node
.
parent
.
convertToWorldSpaceAR
(
cc
.
v2
(
node
.
x
,
node
.
y
));
if
(
worldPos
.
x
>=
-
node
.
width
&&
worldPos
.
x
<=
canvas
.
width
)
{
node
.
opacity
=
255
...
...
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