From 4dcdfc3f07325cec62ca20cb9dd926b7681454ae Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 16 Sep 2023 12:02:17 -0600 Subject: [PATCH] resize dialog down AFTER positioning it --- src/hollywoo_flixel/FlxDirector.kiss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index c7ad59d..5774a02 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -653,9 +653,6 @@ (set dialogText.text text) (applyFormat dialogText) - (set dialogText.size DIALOG_SIZE) - (while (< FlxG.height (+ dialogText.y dialogText.height)) - (-= dialogText.size 6)) // show the speaker name (set speakerNameText null) (set speakerNameText (new FlxText flxMovie.DIALOG_X flxMovie.DIALOG_Y 0 "" DIALOG_SIZE)) @@ -672,6 +669,9 @@ (set dialogText.y (+ flxMovie.DIALOG_Y speakerNameText.height)) } (set dialogText.y flxMovie.DIALOG_Y)) + (set dialogText.size DIALOG_SIZE) + (while (< FlxG.height (+ dialogText.y dialogText.height)) + (-= dialogText.size 6)) (startWaitForInput cc)) (method :Void hideDialog []