From ebbc0084eb827889dd115705b6a13bfbf1d5b523 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 3 Nov 2021 14:50:03 -0400 Subject: [PATCH] downsize too-big text --- src/hollywoo_flixel/FlxDirector.kiss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index a1d3322..2696818 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -86,6 +86,10 @@ (set dialogText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE))) (currentState.add dialogText) (set dialogText.text text) + // TODO actually clip the dialogue instead of sizing it down: + // TODO this is downsizing everything: + (when (< 720 (+ dialogText.y dialogText.height)) + (-= dialogText.size 6)) // show the speaker name (unless speakerNameText (set speakerNameText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))