Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP26
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
OP26
Commits
d05bf343
Commit
d05bf343
authored
Apr 19, 2022
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
eeebc9b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
OP26.fire
assets/OP26/scene/OP26.fire
+1
-1
OP26.js
assets/OP26/scene/OP26.js
+2
-2
item.js
assets/OP26/script/game/item.js
+2
-2
No files found.
assets/OP26/scene/OP26.fire
View file @
d05bf343
...
@@ -4865,4 +4865,4 @@
...
@@ -4865,4 +4865,4 @@
"_atlas": null,
"_atlas": null,
"_id": "9c32UJ8npPT5bPpyfhEDX6"
"_id": "9c32UJ8npPT5bPpyfhEDX6"
}
}
]
]
\ No newline at end of file
assets/OP26/scene/OP26.js
View file @
d05bf343
...
@@ -92,8 +92,8 @@ var game = cc.Class({
...
@@ -92,8 +92,8 @@ var game = cc.Class({
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
let
svBBoxRect
=
cc
.
rect
(
let
svBBoxRect
=
cc
.
rect
(
svLeftBottomPoint
.
x
-
node
.
anchorX
*
node
.
width
/
2
,
svLeftBottomPoint
.
x
,
svLeftBottomPoint
.
y
-
node
.
anchorY
*
node
.
height
/
2
,
svLeftBottomPoint
.
y
,
node
.
width
,
node
.
width
,
node
.
height
node
.
height
);
);
...
...
assets/OP26/script/game/item.js
View file @
d05bf343
...
@@ -110,8 +110,8 @@ cc.Class({
...
@@ -110,8 +110,8 @@ cc.Class({
// 获取 ScrollView Node 的左下角坐标在世界坐标系中的坐标
// 获取 ScrollView Node 的左下角坐标在世界坐标系中的坐标
let
svLeftBottomPoint
=
this
.
node
.
parent
.
convertToWorldSpaceAR
(
let
svLeftBottomPoint
=
this
.
node
.
parent
.
convertToWorldSpaceAR
(
cc
.
v2
(
cc
.
v2
(
this
.
node
.
x
-
this
.
node
.
anchorX
*
this
.
node
.
width
,
this
.
node
.
x
,
this
.
node
.
y
-
this
.
node
.
anchorY
*
this
.
node
.
height
this
.
node
.
y
)
)
);
);
...
...
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