Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
ls_gramophone_2
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
ls_gramophone_2
Commits
279f0a69
Commit
279f0a69
authored
Jan 01, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fbefa595
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ls_gramophone_2.ts
assets/ls_gramophone_2/scene/ls_gramophone_2.ts
+9
-1
No files found.
assets/ls_gramophone_2/scene/ls_gramophone_2.ts
View file @
279f0a69
...
...
@@ -197,6 +197,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
cleanLaba
();
this
.
resetText
();
this
.
resetRecord
();
this
.
stopQuestionAudio
();
// cc.audioEngine.stopAll();
// play.active = false;
// stop.active = true;
...
...
@@ -211,6 +212,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
cleanLaba
();
this
.
resetText
();
this
.
resetRecord
();
this
.
stopQuestionAudio
();
// cc.audioEngine.stopAll();
// play.active = false;
// stop.active = true;
...
...
@@ -233,6 +235,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
onMyRecordPlay
(
item
)
{
this
.
cleanLaba
();
// cc.audioEngine.stopAll();
this
.
stopQuestionAudio
();
item
.
getComponent
(
Item
).
stopRecord
();
item
.
getComponent
(
Item
).
stopAction
();
}
...
...
@@ -242,6 +245,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
resetText
();
this
.
resetRecord
();
// cc.audioEngine.stopAll();
this
.
stopQuestionAudio
();
item
.
getComponent
(
Item
).
playRecord
();
item
.
getComponent
(
Item
).
playAction
();
//
...
...
@@ -293,6 +297,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
return
idx
;
}
private
stopQuestionAudio
()
{
if
(
this
.
questionAudioId
>
-
1
)
pg
.
audio
.
stopAudio
(
this
.
questionAudioId
);
}
private
intervalId
;
private
questionAudioId
=
-
1
;
private
playLaba
()
{
...
...
@@ -503,7 +511,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
refreshArrow
();
this
.
arrowAction
();
if
(
this
.
data
.
bgAudio
||
this
.
data
.
bgAudio
!=
""
)
{
if
(
this
.
data
.
bgAudio
&&
this
.
data
.
bgAudio
!=
""
)
{
this
.
btn_audio_on
.
active
=
true
;
}
}
...
...
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