Commit 1a334543 authored by 李维's avatar 李维

feat:更新音频小喇叭的样式

parent adc9df2f
{
"ver": "1.1.2",
"uuid": "3de408d3-8956-4bdc-abf9-180ea726de9d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "laba",
"_objFlags": 0,
"_native": "",
"_duration": 0.7333333333333333,
"sample": 30,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "b577ed22-321b-4985-a04d-20cbc53bfb6f"
}
},
{
"frame": 0.23333333333333334,
"value": {
"__uuid__": "ecc2e0ff-eb4a-44c2-8063-330da475547d"
}
},
{
"frame": 0.4666666666666667,
"value": {
"__uuid__": "95b50ca7-21ce-4c6d-bc63-fa24cf687e63"
}
},
{
"frame": 0.7,
"value": {
"__uuid__": "89656bbb-d764-4d07-bcb8-bbb8dc2df91d"
}
}
]
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "f327ad75-ffec-4936-82f4-dd33e24537d2",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
......@@ -180,33 +180,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.tween(seabed).by(1.5, { x: -150 }).start();
cc.tween(could).by(1.5, { x: -150 }).start();
}
private intervalId;
private stopLaba() {
cc.audioEngine.stopAllEffects();
if (this.intervalId) clearInterval(this.intervalId);
let btn_kaba2 = this.btn_laba.getChildByName("btn_laba2");
btn_kaba2.active = false;
this.btn_laba.getChildByName("btn_laba2").active = true;
this.btn_laba.getChildByName("ani").active = false;
}
private playLaba() {
let btn_kaba2 = this.btn_laba.getChildByName("btn_laba2");
btn_kaba2.active = true;
cc.audioEngine.stopAllEffects();
let count = 0;
if (this.intervalId) clearInterval(this.intervalId);
let stop = false;
this.intervalId = setInterval(() => {
count++;
btn_kaba2.active = count % 2 == 0;
if (stop && count % 2 == 1) {
clearInterval(this.intervalId);
btn_kaba2.active = false;
} else {
}
}, 150)
this.btn_laba.getChildByName("btn_laba2").active = false;
this.btn_laba.getChildByName("ani").active = true;
pg.audio.playAudioByUrl(this.starData.audioUrl, (() => {
stop = true;
this.btn_laba.getChildByName("btn_laba2").active = true;
this.btn_laba.getChildByName("ani").active = false;
}))
}
......
{
"ver": "2.3.5",
"uuid": "1ac41de3-5f9d-44a4-a5b6-bd1a06595964",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_1": {
"ver": "1.0.4",
"uuid": "b577ed22-321b-4985-a04d-20cbc53bfb6f",
"rawTextureUuid": "1ac41de3-5f9d-44a4-a5b6-bd1a06595964",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "92c98437-35bd-483e-9fb2-2d06f26fb100",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_2": {
"ver": "1.0.4",
"uuid": "ecc2e0ff-eb4a-44c2-8063-330da475547d",
"rawTextureUuid": "92c98437-35bd-483e-9fb2-2d06f26fb100",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fe78709f-fa55-436f-8bc2-5288260f17f4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_3": {
"ver": "1.0.4",
"uuid": "95b50ca7-21ce-4c6d-bc63-fa24cf687e63",
"rawTextureUuid": "fe78709f-fa55-436f-8bc2-5288260f17f4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e541998b-6613-48b2-958c-c7d2064935f1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_4": {
"ver": "1.0.4",
"uuid": "89656bbb-d764-4d07-bcb8-bbb8dc2df91d",
"rawTextureUuid": "e541998b-6613-48b2-958c-c7d2064935f1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"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