Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
ls_gramophone
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
Commits
44d15aaf
Commit
44d15aaf
authored
Jan 06, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
eccee385
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
366 additions
and
356 deletions
+366
-356
ls_gramophone.fire
assets/ls_gramophone/scene/ls_gramophone.fire
+355
-355
ls_gramophone.ts
assets/ls_gramophone/scene/ls_gramophone.ts
+11
-1
No files found.
assets/ls_gramophone/scene/ls_gramophone.fire
View file @
44d15aaf
This diff is collapsed.
Click to expand it.
assets/ls_gramophone/scene/ls_gramophone.ts
View file @
44d15aaf
...
...
@@ -92,6 +92,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
_results
[
idx
].
push
(
null
);
});
});
this
.
isPlayBgAudio
=
true
;
}
private
stopQuestionAudio
()
{
...
...
@@ -160,9 +161,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
play
.
active
=
false
;
stop
.
active
=
true
;
pg
.
audio
.
stopAudio
(
this
.
itemAudio
);
element
.
getComponent
(
Item
).
playing
();
this
.
playAudioByUrl
(
quest
.
audio
,
()
=>
{
pg
.
audio
.
playAudioByUrl
(
quest
.
audio
,
()
=>
{
element
.
getComponent
(
Item
).
stop
();
}).
then
((
audioId
:
number
)
=>
{
this
.
itemAudio
=
audioId
;
});
});
...
...
@@ -237,6 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
record_start
.
on
(
'
click
'
,
()
=>
{
this
.
playLocalAudio
(
'
btn
'
);
this
.
stopBgAudio
();
mask
.
active
=
true
;
// icon_record.getComponent(dragonBones.ArmatureDisplay).timeScale = 1;
...
...
@@ -319,6 +324,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
log
(
'
idx:
'
+
idx
);
if
(
window
[
'
courseware
'
])
{
this
.
playBgAudio
();
window
[
'
courseware
'
].
stopTest
((
res
)
=>
{
this
.
log
(
'
--------录音返回结果 stopTest ------------
'
);
this
.
log
(
'
res
'
+
res
);
...
...
@@ -386,6 +392,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
onHomeworkFinish
({
stone
:
10
,
details
:
this
.
_results
});
});
}
else
{
this
.
playBgAudio
();
if
(
idx
!==
-
1
)
{
let
content
=
cc
.
find
(
"
view/content
"
,
this
.
pagContent
.
children
[
this
.
roundIdx
]);
content
.
children
[
idx
].
getComponent
(
Item
).
recorded
();
...
...
@@ -397,12 +404,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
this
.
btn_arrow
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onArrow
,
this
);
this
.
btn_last
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onLast
,
this
);
this
.
btn_audio_off
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onAudioOff
,
this
);
this
.
btn_audio_on
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onAudioOn
,
this
);
this
.
setPagBg
();
this
.
refreshArrow
();
if
(
this
.
data
.
bgAudio
&&
this
.
data
.
bgAudio
!=
""
)
{
this
.
btn_audio_on
.
active
=
true
;
}
}
private
itemAudio
=
-
1
;
private
onAudioOn
()
{
this
.
btn_audio_off
.
active
=
true
;
this
.
btn_audio_on
.
active
=
false
;
...
...
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