Commit bc84bf88 authored by 杨一航's avatar 杨一航

添加新功能

parent a17019a7
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "2241d503-736a-48c3-b0cb-ce0cb42379f3",
"subMetas": {}
}
\ No newline at end of file
{"width":256,"imagePath":"mao_ske_tex.png","height":512,"name":"mao_ske","SubTexture":[{"width":169,"y":175,"height":33,"name":"猫01/影子","x":64},{"width":88,"y":299,"height":55,"name":"猫01/尾巴","x":1},{"width":52,"y":210,"height":59,"name":"猫01/右腿","x":126},{"width":32,"y":249,"height":58,"name":"猫01/左腿","x":181},{"width":35,"y":335,"height":61,"name":"猫01/右手","x":178},{"width":62,"y":210,"height":37,"name":"猫01/左手","x":180},{"width":84,"y":1,"height":85,"name":"猫01伸/左手伸直","x":151},{"width":84,"y":88,"height":85,"name":"猫01伸/右手伸直","x":151},{"width":61,"y":207,"height":90,"name":"猫01/身体","x":1},{"width":60,"y":210,"height":78,"name":"猫01/领带","x":64},{"width":45,"y":369,"height":38,"name":"猫01/右耳","x":46},{"width":43,"y":356,"height":43,"name":"猫01/左耳","x":1},{"width":148,"y":1,"height":93,"name":"猫01/组_1","x":1},{"width":30,"y":249,"height":30,"name":"猫01/右眼","x":215},{"width":17,"y":285,"height":3,"name":"猫01/右眉毛","x":161},{"width":30,"y":401,"height":30,"name":"猫01/左眼","x":1},{"width":16,"y":290,"height":6,"name":"猫01/左眉毛","x":64},{"width":85,"y":335,"height":32,"name":"猫01/眼镜","x":91},{"width":88,"y":290,"height":43,"name":"猫01/胡子","x":91},{"width":14,"y":271,"height":12,"name":"猫01/鼻子","x":161},{"width":33,"y":271,"height":15,"name":"猫01/嘴","x":126},{"width":79,"y":96,"height":51,"name":"猫01/帽子","x":64},{"width":61,"y":96,"height":109,"name":"猫拿话筒(1)/左小手","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8ec09651-e5e1-4946-bd0a-226590f5cd22",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a51632dd-73b8-42bd-9ab2-d2b15164086a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 512,
"platformSettings": {},
"subMetas": {
"mao_ske_tex": {
"ver": "1.0.4",
"uuid": "44fef234-0c33-4a45-97ee-da0241385b79",
"rawTextureUuid": "a51632dd-73b8-42bd-9ab2-d2b15164086a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -5,
"offsetY": 40,
"trimX": 1,
"trimY": 1,
"width": 244,
"height": 430,
"rawWidth": 256,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -18,7 +18,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -18,7 +18,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
cat = null cat = null
@property(cc.Node) @property(cc.Node)
cover = null cover = null
@property(cc.Node)
recordCat = null
_cardList: Array<cc.Node> = []; _cardList: Array<cc.Node> = [];
private _isRolling: any; private _isRolling: any;
...@@ -31,6 +32,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -31,6 +32,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private _blueOriginPos: any; private _blueOriginPos: any;
private _playingAudio: boolean; private _playingAudio: boolean;
private _canClick: any; private _canClick: any;
private _recordBefore: boolean = false;
addPreloadImage() { addPreloadImage() {
...@@ -45,6 +47,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -45,6 +47,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this._audioResList.push({ url: this.data.waitingWheel }); this._audioResList.push({ url: this.data.waitingWheel });
this._audioResList.push({ url: this.data.waitingPiece }); this._audioResList.push({ url: this.data.waitingPiece });
this._audioResList.push({ url: this.data.waitingTurn }); this._audioResList.push({ url: this.data.waitingTurn });
this._audioResList.push({ url: this.data.recordTip });
} }
addPreloadAnima() { } addPreloadAnima() { }
...@@ -488,6 +491,21 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -488,6 +491,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
probar.getComponent(cc.ProgressBar).unscheduleAllCallbacks(); probar.getComponent(cc.ProgressBar).unscheduleAllCallbacks();
let total = 1; let total = 1;
probar.getComponent(cc.ProgressBar).progress = total; probar.getComponent(cc.ProgressBar).progress = total;
if (!this._recordBefore && this.data.recordTip) {//
this._recordBefore = true;
await new Promise((resolve) => {
this.recordCat.getComponent(dragonBones.ArmatureDisplay).playAnimation("normal", 0);
this.playAudioByUrl(this.data.recordTip, () => {
this.recordCat.getComponent(dragonBones.ArmatureDisplay).playAnimation("record", 0);
console.log("record audio done==============");
resolve("")
});
})
} else {
this.recordCat.getComponent(dragonBones.ArmatureDisplay).playAnimation("record", 0);
}
this._startCourseware(word); this._startCourseware(word);
await asyncDelay(0.5); await asyncDelay(0.5);
probar.getComponent(cc.ProgressBar).schedule(() => { probar.getComponent(cc.ProgressBar).schedule(() => {
......
...@@ -31,5 +31,11 @@ ...@@ -31,5 +31,11 @@
<app-audio-recorder [audioUrl]="item.waitingTurn" (audioUploaded)="onAudioUploadSuccess($event, 'waitingTurn')"> <app-audio-recorder [audioUrl]="item.waitingTurn" (audioUploaded)="onAudioUploadSuccess($event, 'waitingTurn')">
</app-audio-recorder> </app-audio-recorder>
</div> </div>
<div style="margin-bottom: 20px;">
<span style="font-size: 20px;"><b>录音提示音频</b>: </span>
<app-audio-recorder [audioUrl]="item.recordTip" (audioUploaded)="onAudioUploadSuccess($event, 'recordTip')">
</app-audio-recorder>
</div>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -26,6 +26,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -26,6 +26,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
waitingWheel: '', waitingWheel: '',
waitingPiece: '', waitingPiece: '',
waitingTurn: '', waitingTurn: '',
recordTip: '',
}; };
// 获取存储的数据 // 获取存储的数据
......
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