Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hw_lettersort
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
hw_lettersort
Commits
71aa4400
Commit
71aa4400
authored
Aug 02, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
f968896b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
hw_lettersort.js
assets/hw_lettersort/scene/hw_lettersort.js
+22
-2
No files found.
assets/hw_lettersort/scene/hw_lettersort.js
View file @
71aa4400
...
...
@@ -1171,6 +1171,18 @@ cc.Class({
},
showCurWordSound
()
{
if
(
!
this
.
curData
)
{
return
;
}
delayCall
(
0.8
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
playAudioByUrl
(
this
.
curData
.
audio_url
);
})
},
initScorePanel
()
{
...
...
@@ -1262,6 +1274,8 @@ cc.Class({
this
.
curData
=
this
.
data
.
rows
[
this
.
curDataIndex
];
this
.
refreshGroupLabel
();
this
.
showCurWordSound
();
},
initCurWord
()
{
...
...
@@ -1470,10 +1484,16 @@ cc.Class({
const
node
=
new
cc
.
Node
();
// const letterY = this.getRichText(text, 140, "#b4502e", 2, "#ffffff", true, true);
// const letterB = this.getRichText(text, 140, "#3a77ad", 2, "#ffffff", true, true);
const
letterY
=
this
.
getLabelNew
(
text
,
140
,
"
#b4502e
"
,
2
,
"
#ffffff
"
,
true
);
const
letterB
=
this
.
getLabelNew
(
text
,
140
,
"
#3a77ad
"
,
2
,
"
#ffffff
"
,
true
);
const
letterY
=
this
.
getLabelNew
(
text
,
140
,
"
#b4502e
"
,
4
,
"
#ffffff
"
,
true
);
const
letterB
=
this
.
getLabelNew
(
text
,
140
,
"
#3a77ad
"
,
4
,
"
#ffffff
"
,
true
);
letterB
.
cacheMode
=
cc
.
Label
.
CacheMode
.
CHAR
letterY
.
cacheMode
=
cc
.
Label
.
CacheMode
.
CHAR
letterY
.
active
=
false
;
node
.
yNode
=
letterY
;
node
.
bNode
=
letterB
;
...
...
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