Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
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
DG_FAF
Commits
18f5d9ee
Commit
18f5d9ee
authored
May 08, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复颜色检查报错
parent
f42644eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+7
-3
No files found.
assets/DG_FAF/scene/DG_FAF.ts
View file @
18f5d9ee
...
...
@@ -2993,6 +2993,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
resultRectData
=
this
.
data
.
hotZoneItemArr
[
contentData
.
linkResultShowHotZoneIndex
];
const
resultRect
=
this
.
newRectNode
(
resultRectData
,
layer_2
,
debugMode
);
// 如果没有配置则为默认空
if
(
contentData
.
drawingCheckCorrectColors
==
undefined
)
{
contentData
.
drawingCheckCorrectColors
=
[];
}
// // 正确校验方法 - 默认返null
let
validater
=
()
=>
{
const
result
=
{
...
...
@@ -3023,10 +3028,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
let
isRight
=
false
;
if
(
contentData
.
drawingCheck
CorrectColors
.
drawingCheck
StrictEqual
)
{
if
(
contentData
.
drawingCheckStrictEqual
)
{
isRight
=
sameColorCount
===
contentData
.
drawingCheckCorrectColors
.
length
&&
sameColorCount
===
colorsExist
.
length
;
}
else
{
}
else
{
isRight
=
sameColorCount
===
contentData
.
drawingCheckCorrectColors
.
length
;
}
...
...
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