From 3df4382b4dfe6f623a99ca4e8842eeb31771952d Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 4 Jan 2022 17:10:24 -0700 Subject: [PATCH] timedSuperText --- projects/hollywoo/src/hollywoo/Movie.kiss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/hollywoo/src/hollywoo/Movie.kiss b/projects/hollywoo/src/hollywoo/Movie.kiss index 72c7f71d..e3a46b89 100644 --- a/projects/hollywoo/src/hollywoo/Movie.kiss +++ b/projects/hollywoo/src/hollywoo/Movie.kiss @@ -269,11 +269,17 @@ // TODO themed titleCard (wait for song or sound) -// TODO timed superText -// TODO themed superText (hollywooMethod superText true [text :Continuation cc] - (showDialog "" Super "" text cc)) + // Skip voice track handling: + (director.showDialog "" Super "" text cc)) + +(hollywooMethod timedSuperText true [text :Float sec :Continuation cc] + (let [cc ->:Void {(director.hideDialog) (cc)}] + (superText text cc) + (delay sec cc))) + +// TODO themed superText (hollywooMethod normalSpeech true [actorName wryly text :Continuation cc] (showDialog actorName (OnScreen (dictGet .characters (_currentScene) actorName)) wryly text cc))