Commit ab332523 authored by liujiangnan's avatar liujiangnan

feat: 修改录音时长和隐藏按钮

parent 70b8866d
{"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
...@@ -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 = true; btnStart.active = false;
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 = true; btnStart.active = false;
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment