Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbx_pageturn
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
Sbx_pageturn
Commits
eef99449
Commit
eef99449
authored
Jan 20, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 重音问题
parent
92983a2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ItemPage.js
assets/Sbx_pageturn/script/ItemPage.js
+14
-0
No files found.
assets/Sbx_pageturn/script/ItemPage.js
View file @
eef99449
...
@@ -30,6 +30,15 @@ cc.Class({
...
@@ -30,6 +30,15 @@ cc.Class({
}
}
},
},
log
(
str
)
{
const
middleLayerNode
=
cc
.
find
(
'
middleLayer
'
)
if
(
middleLayerNode
)
{
middleLayerNode
.
getComponent
(
'
middleLayer
'
).
log
(
str
);
}
else
{
console
.
log
(
str
);
}
},
onTouchEnd
(
event
)
{
onTouchEnd
(
event
)
{
this
.
scheduleOnce
(()
=>
{
this
.
scheduleOnce
(()
=>
{
if
(
GameData
.
_isPageTurning
)
{
if
(
GameData
.
_isPageTurning
)
{
...
@@ -220,6 +229,11 @@ cc.Class({
...
@@ -220,6 +229,11 @@ cc.Class({
this
.
audioDuration
=
cc
.
audioEngine
.
getDuration
(
this
.
audioID
);
this
.
audioDuration
=
cc
.
audioEngine
.
getDuration
(
this
.
audioID
);
this
.
textDuration
=
this
.
audioDuration
/
this
.
layoutText
.
childrenCount
;
this
.
textDuration
=
this
.
audioDuration
/
this
.
layoutText
.
childrenCount
;
this
.
textIndex
=
0
;
this
.
textIndex
=
0
;
if
(
this
.
textDuration
==
-
1
)
{
this
.
textDuration
=
1
;
}
this
.
schedule
(
this
.
chengeTextColor
,
this
.
textDuration
,
this
.
layoutText
.
childrenCount
,
0.01
)
this
.
schedule
(
this
.
chengeTextColor
,
this
.
textDuration
,
this
.
layoutText
.
childrenCount
,
0.01
)
});
});
},
},
...
...
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