add actor name to FlxHollywoo dialog box

This commit is contained in:
2021-11-01 11:19:40 -04:00
parent 02bb28b1a3
commit ef343ea1d3
2 changed files with 3 additions and 3 deletions

View File

@@ -13,5 +13,5 @@ interface Director<Set, StagePosition, StageFacing, ScreenPosition, Actor> {
function showScene(scene:Scene<Set, StagePosition, StageFacing, ScreenPosition, Actor>, appearance:Appearance, cc:Continuation):Void;
function showCharacter(character:Character<StagePosition, StageFacing, Actor>, appearance:Appearance, cc:Continuation):Void;
function waitForInputOrDelay(delaySeconds:Float, cc:Continuation):Void;
function showDialog(type:SpeechType<StagePosition, StageFacing, Actor>, wryly:String, dialog:String, cc:Continuation):Void;
function showDialog(speakerName:String, type:SpeechType<StagePosition, StageFacing, Actor>, wryly:String, dialog:String, cc:Continuation):Void;
}

View File

@@ -76,9 +76,9 @@
// TODO moveCharacterAndFollow remove them, add them to another scene, set that the scene
(method normalSpeech [actorName wryly text cc]
(director.showDialog (OnScreen (dictGet .characters (_currentScene) actorName)) wryly text cc))
(director.showDialog actorName (OnScreen (dictGet .characters (_currentScene) actorName)) wryly text cc))
(method onPhoneSpeech [actorName wryly text cc]
(director.showDialog (ifLet [charOnScreen (dictGet .characters (_currentScene) actorName)]
(director.showDialog actorName (ifLet [charOnScreen (dictGet .characters (_currentScene) actorName)]
(OnScreen charOnScreen)
(FromPhone (dictGet actors actorName))) wryly text cc))