diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index c8b582d..0428a24 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -369,13 +369,16 @@ (localVar &mut :Float speakerNameX -1) (case type (Super + (when superText (FlxG.state.remove superText)) (set superText (SpriteTools.textPlate text DIALOG_SIZE SUPER_MARGIN)) - (set superText.cameras [flxMovie.uiCamera]) - (superText.screenCenter) - (set superText.y flxMovie.DIALOG_Y) - (FlxG.state.add superText) - (startWaitForInput cc) - (return)) + // If supertext can be done in a single centered line, do so + (when (<= superText.width FlxG.width) + (set superText.cameras [flxMovie.uiCamera]) + (superText.screenCenter) + (set superText.y flxMovie.DIALOG_Y) + (FlxG.state.add superText) + (startWaitForInput cc) + (return))) ((OnScreen character) (set speakerNameX (+ character.actor.x (fHalf character.actor.width))) // When an actor is associated with the line, check for an animation matching the wryly