allow skipping awaitplaysound
This commit is contained in:
@@ -791,12 +791,14 @@
|
|||||||
(delay skipping (min MAX_CAPTION_DURATION (director.getSoundLength sound))
|
(delay skipping (min MAX_CAPTION_DURATION (director.getSoundLength sound))
|
||||||
(makeCC
|
(makeCC
|
||||||
(director.hideCaption id))))
|
(director.hideCaption id))))
|
||||||
(director.playSound sound volumeMod (when waitForEnd cc)))
|
|
||||||
|
(withFunctions [(:Void innerCC [] (director.stopSound sound)(director.stopWaitForInput innerCC)(cc))]
|
||||||
|
(director.startWaitForInput innerCC)
|
||||||
|
(director.playSound sound volumeMod (when waitForEnd innerCC))))
|
||||||
(unless waitForEnd
|
(unless waitForEnd
|
||||||
(cc)))
|
(cc)))
|
||||||
|
|
||||||
(hollywooMethod awaitPlaySound [:Bool skipping :String name :Continuation cc &opt :Float volumeMod]
|
(hollywooMethod awaitPlaySound [:Bool skipping :String name :Continuation cc &opt :Float volumeMod]
|
||||||
(director.startWaitForInput cc)
|
|
||||||
(playSound skipping name cc volumeMod true))
|
(playSound skipping name cc volumeMod true))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user