resize dialog down AFTER positioning it

This commit is contained in:
2023-09-16 12:02:17 -06:00
parent fe7a3e5e51
commit 4dcdfc3f07

View File

@@ -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 []