Commit f4a57bb1 authored by Tt's avatar Tt

音频播放调整效果

parent f8ba5ef3
......@@ -1571,7 +1571,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1020,
"width": 1135,
"height": 60
},
"_anchorPoint": {
......@@ -1637,8 +1637,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 920,
"height": 126
"width": 1035,
"height": 75.6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1818,8 +1818,8 @@
"_dstBlendFactor": 771,
"_string": "题目:请参照图片移动下方按钮,组成完整的一句话",
"_N$string": "题目:请参照图片移动下方按钮,组成完整的一句话",
"_fontSize": 40,
"_lineHeight": 100,
"_fontSize": 45,
"_lineHeight": 60,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "da919d2c-e1fd-4dfa-889b-82c53f3adb51"
......@@ -1846,7 +1846,7 @@
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1020,
"width": 1135,
"height": 60
},
"_resize": 1,
......
......@@ -565,7 +565,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.currentDt = data;
this.touchForbid = true;
this.playLocalAudio("move")
cc.tween(this.gou_node)
// 移动钩子
......@@ -672,6 +672,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onTouchRecordClose() {
this.playBgmP100();
this.layout_record.active = false;
this.currentItem && (this.currentItem.active = true)
}
......@@ -924,6 +925,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node)
bgmNode: cc.Node = null;
playBgmP10() {
let vol = cc.audioEngine.getMusicVolume();
if (vol < 0.7) return;
this.scheduleOnce(() => {
cc.audioEngine.setMusicVolume(0.8);
this.scheduleOnce(() => {
......@@ -947,6 +950,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.audioEngine.resumeMusic();
}
playBgmP100() {
let vol = cc.audioEngine.getMusicVolume();
if (vol > 0.9) return;
this.scheduleOnce(() => {
cc.audioEngine.setMusicVolume(0.2);
this.scheduleOnce(() => {
......
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