timed titleCard

This commit is contained in:
2021-12-30 14:13:19 -07:00
parent 68fa2fa9ea
commit 22b857880f
4 changed files with 37 additions and 1 deletions

View File

@@ -16,13 +16,15 @@ interface Director<Set, StagePosition, StageFacing, ScreenPosition, Actor, Sound
function hideCharacter(character:Character<StagePosition, StageFacing, Actor>, cc:Continuation):Void;
function playSound(sound:Sound, volumeMod:Float, waitForEnd:Bool, cc:Continuation):Void;
function playSong(song:Song, volumeMod:Float, loop:Bool, waitForEnd:Bool, cc:Continuation):Void;
function stopSong():Void;
function playVoiceTrack(track:VoiceTrack, volumeMod:Float, start:Float, end:Float, cc:Continuation):Void;
function stopVoiceTrack(track:VoiceTrack):Void;
function stopSong():Void;
function startWaitForInput(cc:Continuation):Void;
function stopWaitForInput():Void;
function showDialog(speakerName:String, type:SpeechType<StagePosition, StageFacing, Actor>, wryly:String, dialog:String, cc:Continuation):Void;
function hideDialog():Void;
function showTitleCard(text:Array<String>, cc:Continuation):Void;
function hideTitleCard():Void;
function showPropOnScreen(prop:Prop, position:ScreenPosition, cc:Continuation):Void;
// TODO showPropOnStage
function hideProp(prop:Prop, cc:Continuation):Void;

View File

@@ -233,6 +233,17 @@
(set intercutMap null)
(cc))
(hollywooMethod timedTitleCard true [time :Array<String> lines :Continuation cc]
// TODO allow skipping it
(let [cc ->{(director.hideTitleCard)(cc)}]
(director.showTitleCard lines cc)
(delay time cc)))
// TODO themed titleCard
// TODO timed superText
// TODO themed superText
(hollywooMethod superText true [text :Continuation cc]
(showDialog "" Super "" text cc))