Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dc_NS_04
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
dc_NS_04
Commits
ab332523
Commit
ab332523
authored
Mar 28, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改录音时长和隐藏按钮
parent
70b8866d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
dc_NS_04.meta
assets/dc_NS_04.meta
+15
-1
dc_NS_04.ts
assets/dc_NS_04/scene/dc_NS_04.ts
+3
-3
No files found.
assets/dc_NS_04.meta
View file @
ab332523
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
{
\ No newline at end of file
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/dc_NS_04/scene/dc_NS_04.ts
View file @
ab332523
...
@@ -205,7 +205,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -205,7 +205,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
btnStart
=
baseSpeaker
.
getChildByName
(
'
btnStart
'
);
const
btnStart
=
baseSpeaker
.
getChildByName
(
'
btnStart
'
);
const
btnStop
=
baseSpeaker
.
getChildByName
(
'
btnStop
'
);
const
btnStop
=
baseSpeaker
.
getChildByName
(
'
btnStop
'
);
btnStart
.
active
=
tru
e
;
btnStart
.
active
=
fals
e
;
btnStop
.
active
=
false
;
btnStop
.
active
=
false
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -225,7 +225,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -225,7 +225,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
baseSpeaker
=
cc
.
find
(
'
Canvas/bg/speaker
'
);
const
baseSpeaker
=
cc
.
find
(
'
Canvas/bg/speaker
'
);
baseSpeaker
.
active
=
false
;
baseSpeaker
.
active
=
false
;
const
btnStart
=
baseSpeaker
.
getChildByName
(
'
btnStart
'
);
const
btnStart
=
baseSpeaker
.
getChildByName
(
'
btnStart
'
);
btnStart
.
active
=
tru
e
;
btnStart
.
active
=
fals
e
;
const
btnStop
=
baseSpeaker
.
getChildByName
(
'
btnStop
'
);
const
btnStop
=
baseSpeaker
.
getChildByName
(
'
btnStop
'
);
btnStop
.
active
=
false
;
btnStop
.
active
=
false
;
const
tryAgain
=
baseSpeaker
.
getChildByName
(
'
tryAgain
'
);
const
tryAgain
=
baseSpeaker
.
getChildByName
(
'
tryAgain
'
);
...
@@ -382,7 +382,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -382,7 +382,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
}
else
{
console
.
log
(
'
word =
'
+
word
);
console
.
log
(
'
word =
'
+
word
);
}
}
await
asyncDelay
(
5
);
await
asyncDelay
(
3
);
const
dragonDisplay
=
speaker
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
const
dragonDisplay
=
speaker
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
playAnimation
(
'
newAnimation
'
,
-
1
);
dragonDisplay
.
playAnimation
(
'
newAnimation
'
,
-
1
);
dragonDisplay
.
timeScale
=
0.00000001
;
dragonDisplay
.
timeScale
=
0.00000001
;
...
...
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