Commit d74fbaab authored by 李帅's avatar 李帅

+ 录音动画

parent c31c6268
...@@ -3175,7 +3175,7 @@ ...@@ -3175,7 +3175,7 @@
"__id__": 66 "__id__": 66
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 68
...@@ -3192,8 +3192,8 @@ ...@@ -3192,8 +3192,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 90, "width": 205,
"height": 83 "height": 208
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3205,7 +3205,7 @@ ...@@ -3205,7 +3205,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-300, -240,
0, 0,
0, 0,
0, 0,
...@@ -3227,10 +3227,10 @@ ...@@ -3227,10 +3227,10 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "daOQLwniBPYokKNgGPFxtK" "_id": "6f5IpqEClFwaKyo48pdbHP"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "dragonBones.ArmatureDisplay",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -3242,24 +3242,32 @@ ...@@ -3242,24 +3242,32 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_srcBlendFactor": 770, "_armatureName": "Armature",
"_dstBlendFactor": 771, "_animationName": "newAnimation",
"_spriteFrame": { "_preCacheMode": 0,
"__uuid__": "5b67343e-8927-4b5f-9653-3aa36a67c245" "_cacheMode": 0,
}, "playTimes": -1,
"_type": 0, "premultipliedAlpha": false,
"_sizeMode": 1, "_armatureKey": "98532705-4bf7-43f5-8016-6d82b5d468b5#3495d729-5f8e-4b65-847c-765a457a73af",
"_fillType": 0, "_accTime": 0,
"_fillCenter": { "_playCount": 0,
"__type__": "cc.Vec2", "_frameCache": null,
"x": 0, "_curFrame": null,
"y": 0 "_playing": false,
}, "_armatureCache": null,
"_fillStart": 0, "_N$dragonAsset": {
"_fillRange": 0, "__uuid__": "98532705-4bf7-43f5-8016-6d82b5d468b5"
"_isTrimmedMode": true, },
"_atlas": null, "_N$dragonAtlasAsset": {
"_id": "18pzExhKhE8bQr0V0P+oaC" "__uuid__": "3495d729-5f8e-4b65-847c-765a457a73af"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "13N8Wx0d5KpaWGqJw5ibYa"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
......
/* /*
* @Author: ls * @Author: ls
* @Date: 2022-05-15 18:22:18 * @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-05-22 19:21:58 * @LastEditTime: 2022-05-23 12:39:28
* @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
...@@ -166,6 +166,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -166,6 +166,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 录音界面 // 录音界面
let mask = cc.find('Canvas/mask'); let mask = cc.find('Canvas/mask');
mask.active = false; mask.active = false;
let icon_record = cc.find('Canvas/mask/icon_record');
icon_record.active = false;
let record_start = cc.find('Canvas/btn_record_start'); let record_start = cc.find('Canvas/btn_record_start');
let record_stop = cc.find('Canvas/btn_record_stop'); let record_stop = cc.find('Canvas/btn_record_stop');
record_start.active = false; record_start.active = false;
...@@ -176,6 +179,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -176,6 +179,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio('btn'); this.playLocalAudio('btn');
mask.active = true; mask.active = true;
icon_record.active = true;
record_start.active = false; record_start.active = false;
record_stop.active = true; record_stop.active = true;
...@@ -189,6 +194,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -189,6 +194,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio('btn'); this.playLocalAudio('btn');
mask.active = false; mask.active = false;
icon_record.active = false;
record_start.active = false; record_start.active = false;
record_stop.active = false; record_stop.active = false;
......
{
"ver": "1.1.2",
"uuid": "66e78df2-a6ed-4f05-a15a-62bbd749b258",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"name":"录音动画","version":"5.5","armature":[{"name":"Armature","slot":[{"name":"椭圆_11","color":{},"parent":"big"},{"name":"椭圆_11_拷贝","color":{},"z":1,"parent":"small"},{"name":"组_1","color":{},"z":2,"parent":"root"}],"bone":[{"name":"root","transform":{"x":0.4842,"skY":-0.0188,"y":0.4842,"skX":-0.0188}},{"name":"big","transform":{"x":-0.5,"skY":89.9812,"y":-1,"skX":89.9812},"parent":"root"},{"name":"small","transform":{"x":1.9369,"skY":179.9812,"y":0.0006,"skX":179.9812},"parent":"root"}],"aabb":{"x":-101.5312185134179,"height":208,"y":-103.03171071912247,"width":205},"defaultActions":[{"gotoAndPlay":"newAnimation"}],"animation":[{"name":"newAnimation","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"big","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":18},{"x":1.5,"y":1.5,"duration":0}]},{"name":"small","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":18},{"x":1.4,"y":1.4,"duration":0}]}],"playTimes":0,"ffd":[],"ik":[],"slot":[{"name":"椭圆_11","displayFrame":[],"colorFrame":[{"duration":18,"tweenEasing":0},{"duration":0,"color":{"aM":0}}]},{"name":"椭圆_11_拷贝","displayFrame":[],"colorFrame":[{"duration":18,"tweenEasing":0},{"duration":0,"color":{"aM":12}}]},{"name":"组_1","displayFrame":[],"colorFrame":[]}],"duration":18}],"ik":[],"skin":[{"name":"","slot":[{"name":"椭圆_11","display":[{"name":"提示/椭圆_11","transform":{"x":1.4845,"skY":-90,"y":-0.9839,"skX":-90},"type":"image","path":"提示/椭圆_11"}]},{"name":"椭圆_11_拷贝","display":[{"name":"提示/椭圆_11_拷贝","transform":{"x":-0.0038,"skY":-179.9215,"y":5.8107,"skX":-179.9215},"type":"image","path":"提示/椭圆_11_拷贝"}]},{"name":"组_1","display":[{"name":"提示/组_1","transform":{"x":1.0034,"y":-5.0077},"type":"image","path":"提示/组_1"}]}]}],"frameRate":24,"type":"Armature"}],"frameRate":24,"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "98532705-4bf7-43f5-8016-6d82b5d468b5",
"subMetas": {}
}
\ No newline at end of file
{"name":"录音动画","SubTexture":[{"name":"提示/椭圆_11","x":1,"height":208,"y":1,"width":205},{"name":"提示/椭圆_11_拷贝","x":208,"height":156,"y":1,"width":156},{"name":"提示/组_1","x":366,"height":130,"y":1,"width":90}],"height":256,"imagePath":"录音动画_tex.png","width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "3495d729-5f8e-4b65-847c-765a457a73af",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d7e3ff14-27f9-42a6-be35-b87c5395383b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 256,
"platformSettings": {},
"subMetas": {
"录音动画_tex": {
"ver": "1.0.4",
"uuid": "ac106ac6-db96-4a08-9375-36bf50588bb0",
"rawTextureUuid": "d7e3ff14-27f9-42a6-be35-b87c5395383b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -27.5,
"offsetY": 23,
"trimX": 1,
"trimY": 1,
"width": 455,
"height": 208,
"rawWidth": 512,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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