Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
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
OP_18
Commits
5ef52a31
Commit
5ef52a31
authored
Oct 28, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
9139cef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
OP_18.js
assets/OP_18/scene/OP_18.js
+4
-2
No files found.
assets/OP_18/scene/OP_18.js
View file @
5ef52a31
...
...
@@ -3009,7 +3009,8 @@ cc.Class({
const
{
dotRect
,
labelText
,
key
}
=
dot
;
if
(
labelText
.
toLowerCase
().
indexOf
(
targetLabelText
.
toLowerCase
())
!=
-
1
&&
checkRect
.
intersects
(
dotRect
))
{
if
(
labelText
.
indexOf
(
targetLabelText
)
!=
-
1
&&
checkRect
.
intersects
(
dotRect
))
{
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && checkRect.intersects(dotRect)) {
return
tempWordArr
[
k
];
}
...
...
@@ -3528,7 +3529,8 @@ cc.Class({
// console.log('labelText.toLowerCase() : ', labelText.toLowerCase() );
// console.log('rect.intersects(dotRect) : ', rect.intersects(dotRect) );
if
(
labelText
.
toLowerCase
().
indexOf
(
targetLabelText
.
toLowerCase
())
!=
-
1
&&
rect
.
intersects
(
dotRect
))
{
if
(
labelText
.
indexOf
(
targetLabelText
)
!=
-
1
&&
rect
.
intersects
(
dotRect
))
{
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && rect.intersects(dotRect)) {
const
len
=
targetLabelText
.
trim
().
length
;
// console.log('len: ', len);
...
...
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