From 1fb6c53628ea0d5fa035319d7ba83436c41b8498 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 14 Jun 2023 09:20:11 -0600 Subject: [PATCH] un-clip some credits text --- src/hollywoo_flixel/FlxDirector.kiss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index 7c68f82..207d593 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -691,6 +691,9 @@ (set t1.x (- (* FlxG.width 0.3) t1.width (/ twoColumnGap 2))) (set t1.y textY) (set t2.x (+ (* FlxG.width 0.3) (/ twoColumnGap 2))) + (let [clippedRight (- (+ t2.x t2.width) FlxG.width)] + (when (> clippedRight 0) + (-= t2.x clippedRight))) (set t2.y textY)) (+= textY twoColSize creditMargin)) // Left-justified, centered, right-justified three column lines