Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_write_01
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
cc_mz_write_01
Commits
e4088136
Commit
e4088136
authored
May 26, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
29af44d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
cc_mz_write_01.js
assets/cc_mz_write_01/scene/cc_mz_write_01.js
+7
-3
No files found.
assets/cc_mz_write_01/scene/cc_mz_write_01.js
View file @
e4088136
...
...
@@ -547,8 +547,12 @@ cc.Class({
}
else
if
(
this
.
firstItemData
)
{
const
firstText
=
this
.
firstItemData
.
labelText
const
firstTextArr
=
firstText
.
split
(
'
'
);
const
topLeftLetter
=
this
.
getPhotoLabelData
(
firstTextArr
,
block
);
const
topLeftLetter
=
this
.
getTopLeftLetter
(
this
.
firstItemData
.
labelText
,
block
,
topLabelData
);
// const topLeftLetter = this.getTopLeftLetter(this.firstItemData.labelText, block, topLabelData);
if
(
!
topLeftLetter
)
{
return
false
;
}
...
...
@@ -1507,9 +1511,9 @@ cc.Class({
console
.
log
(
'
in initDebugLayer
'
);
const
layer
=
new
cc
.
Node
();
//
if (this.data.isDebug) {
if
(
this
.
data
.
isDebug
)
{
layer
.
parent
=
cc
.
find
(
'
Canvas
'
);
//
}
}
layer
.
width
=
this
.
canvas
.
width
/
2
;
...
...
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