Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WDL_Demo_02
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
WDL_Demo_02
Commits
a6199f9d
Commit
a6199f9d
authored
Jun 14, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改换行对齐
parent
bb42d033
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
karaoke_WDL_Demo_02.js
...Demo_02/components/karaoke/scripts/karaoke_WDL_Demo_02.js
+2
-2
No files found.
assets/WDL_Demo_02/components/karaoke/scripts/karaoke_WDL_Demo_02.js
View file @
a6199f9d
...
...
@@ -12,7 +12,7 @@ var DISPLAY_MODE = cc.Enum({
// wordRegex = /(?<=\s|^|\b)(?:[-'",.?;:@%$#&\/]\b|\b[-'",.?;:@%$#&\/]|[A-Za-z0-9]|\([A-Za-z0-9]+\))+(?=\s|$|\b)|(?:[\u4E00-\u9FFF])
const
LINE_BEAKER
=
'
<br/>
'
;
// '\n'
const
SPACE
=
'
'
;
const
SPACE
=
''
;
class
MyAudioSource
{
play
(){
...
...
@@ -758,7 +758,7 @@ cc.Class({
if
(
played
.
startsWith
(
LINE_BEAKER
))
{
played
=
played
.
substr
(
LINE_BEAKER
.
length
);
}
const
textForCalc
=
`
${
played
}${
this
.
_playedContent
.
length
?
"
"
:
''
}${
playing
}${
this
.
_playingContent
.
length
?
"
"
:
''
}
`
const
textForCalc
=
`
${
played
}${
this
.
_playedContent
.
length
?
"
"
:
''
}${
playing
}${
this
.
_playingContent
.
length
?
"
"
:
''
}
`
// const textForCalc = `${played}${playing}`
this
.
calcHighlightRichText
.
string
=
textForCalc
;
this
.
richText
.
string
=
`
${
textForCalc
}${
remained
}
`
;
...
...
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