Commit 2266d8b9 authored by huoshizhe's avatar huoshizhe

feat: 播放全部增加暂停功能

parent be34b0ce
This diff is collapsed.
...@@ -139,14 +139,25 @@ cc.Class({ ...@@ -139,14 +139,25 @@ cc.Class({
onClickHide() { onClickHide() {
this.sprite.node.active = false this.sprite.node.active = false
this.hideBox() this.hideBox()
this.stopAudio()
},
/**隐藏边框 */
showBox() {
this.quan.active = true
this.hand.active = false
// this.btnX.active = true
// this.icon_stop.active = true
this.quan.getComponent(cc.Sprite).spriteFrame = this.quan_lan;
}, },
/**隐藏边框 */ /**隐藏边框 */
hideBox() { hideBox() {
this.quan.active = false // this.quan.active = false
// this.btnX.active = false // this.btnX.active = false
this.icon_stop.active = false // this.icon_stop.active = false
this.stopAudio() this.hand.active = false
this.quan.getComponent(cc.Sprite).spriteFrame = this.quan_huang;
}, },
/** 播放音乐 */ /** 播放音乐 */
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
}, },
"android": { "android": {
"sceneName": "Book_Read", "sceneName": "Book_Read",
"version": "3a34d" "version": "19dbd"
} }
} }
\ 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