From 9bcb040019373574b868f54037fafdadee05c5dc Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 16 Dec 2021 17:36:32 +0800 Subject: [PATCH] =?UTF-8?q?bgm=E6=A8=A1=E5=9D=97=E6=96=B0=E5=A2=9EisPlayin?= =?UTF-8?q?g=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/bgm.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zframework/bgm.lua b/Zframework/bgm.lua index d13b2f95..d1717d1e 100644 --- a/Zframework/bgm.lua +++ b/Zframework/bgm.lua @@ -150,6 +150,9 @@ function BGM.init(list) BGM.playing:seek(t) end end + function BGM.isPlaying() + return BGM.playing and BGM.playing:isPlaying() + end function BGM.continue() if BGM.lastPlayed then BGM.nowPlay,BGM.playing=BGM.lastPlayed,SourceObjList[BGM.lastPlayed].source