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
cee553b3
Commit
cee553b3
authored
Jun 13, 2022
by
李帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+1
parent
739d6661
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ls_gramophone.ts
assets/ls_gramophone/scene/ls_gramophone.ts
+2
-2
defaultData.ts
assets/ls_gramophone/script/defaultData.ts
+6
-6
No files found.
assets/ls_gramophone/scene/ls_gramophone.ts
View file @
cee553b3
/*
/*
* @Author: ls
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-13
13:02:23
* @LastEditTime: 2022-06-13
20:02:45
* @LastEditors: ls
* @LastEditors: ls
* @Description:
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
...
@@ -207,7 +207,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -207,7 +207,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
cd
=
10
;
let
cd
=
10
;
if
(
this
.
_curIndex
!==
-
1
)
{
if
(
this
.
_curIndex
!==
-
1
)
{
cd
=
this
.
data
.
sentences
[
this
.
_curIndex
].
countdow
n
;
cd
=
this
.
data
.
sentences
[
this
.
_curIndex
].
duratio
n
;
}
}
this
.
unschedule
(
this
.
onCountdown
);
this
.
unschedule
(
this
.
onCountdown
);
this
.
_countdown
=
cd
+
1
;
this
.
_countdown
=
cd
+
1
;
...
...
assets/ls_gramophone/script/defaultData.ts
View file @
cee553b3
/*
/*
* @Author: ls
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-13
10:24:39
* @LastEditTime: 2022-06-13
20:02:30
* @LastEditors: ls
* @LastEditors: ls
* @Description:
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\script\defaultData.ts
* @FilePath: \ls_gramophone\assets\ls_gramophone\script\defaultData.ts
...
@@ -15,27 +15,27 @@ export const defaultData = {
...
@@ -15,27 +15,27 @@ export const defaultData = {
pageAudio
:
'
http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3
'
,
// 整体音频
pageAudio
:
'
http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3
'
,
// 整体音频
sentences
:
[
sentences
:
[
{
{
countdow
n
:
7
,
duratio
n
:
7
,
text
:
'
Good morning
'
,
text
:
'
Good morning
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3
'
,
},
},
{
{
countdow
n
:
8
,
duratio
n
:
8
,
text
:
'
what can i do for you
'
,
text
:
'
what can i do for you
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3
'
,
},
},
{
{
countdow
n
:
9
,
duratio
n
:
9
,
text
:
'
Hello, how are you
'
,
text
:
'
Hello, how are you
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3
'
,
},
},
{
{
countdow
n
:
10
,
duratio
n
:
10
,
text
:
'
Hello, how old are you you
'
,
text
:
'
Hello, how old are you you
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3
'
,
},
},
{
{
countdow
n
:
11
,
duratio
n
:
11
,
text
:
'
Hello, how dare you, Hello, how dare you how dare you how dare you how dare you h
'
,
text
:
'
Hello, how dare you, Hello, how dare you how dare you how dare you how dare you h
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3
'
,
audio
:
'
http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3
'
,
},
},
...
...
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