From 91360afc69b8c49aa2f883f138e693f0d0fa46d5 Mon Sep 17 00:00:00 2001 From: Hoovy <124418090+MemeHovy@users.noreply.github.com> Date: Fri, 23 Jun 2023 02:46:16 -0400 Subject: [PATCH] =?UTF-8?q?make=20sure=20to=20not=20render=20the=20text=20?= =?UTF-8?q?if=20you=20can=E2=80=99t=20see=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to fix some lag issues --- flixel/addons/text/FlxTypeText.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flixel/addons/text/FlxTypeText.hx b/flixel/addons/text/FlxTypeText.hx index 97bb4389..f564b6c5 100644 --- a/flixel/addons/text/FlxTypeText.hx +++ b/flixel/addons/text/FlxTypeText.hx @@ -547,4 +547,10 @@ class FlxTypeText extends FlxText _sound.loadEmbedded(new TypeSound()); #end } + + override function regenGraphic(){ + if (textField == null || !_regen || !isOnScreen()) + return; + super.regenGraphic(); + } }