Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_08_360
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_08_360
Commits
0ff20a8b
Commit
0ff20a8b
authored
Nov 02, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
2d22900c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
OP_08_360.js
assets/OP_08_360/scene/OP_08_360.js
+16
-4
No files found.
assets/OP_08_360/scene/OP_08_360.js
View file @
0ff20a8b
...
...
@@ -2708,12 +2708,24 @@ cc.Class({
console
.
log
(
"
key:
"
,
key
);
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && rect.intersects(dotRect)) {
if
(
labelText
==
targetLabelText
&&
checkRect
.
contains
(
dotV2
))
{
const
len
=
targetLabelText
.
trim
().
length
;
// if (labelText == targetLabelText && checkRect.contains(dotV2)) {
if
(
checkRect
.
contains
(
dotV2
))
{
// const len = targetLabelText.trim().length;
console
.
log
(
'
len:
'
,
len
);
// console.log('len: ', len);
if
(
labelText
.
length
==
1
)
{
if
(
labelText
.
toLowerCase
().
indexOf
(
targetLabelText
.
toLowerCase
())
!=
-
1
)
{
answerData
[
key
]
=
{
isFinish
:
true
};
}
}
else
{
if
(
labelText
==
targetLabelText
)
{
answerData
[
key
]
=
{
isFinish
:
true
};
}
}
}
...
...
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