From f85ee1cfe94ee904b8af12ba8ec542e29ee5ff51 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Tue, 20 Dec 2022 21:48:08 +0100 Subject: [PATCH] get fucked you stupid bug --- buildnumber.txt | 2 +- source/funkin/system/MarkdownUtil.hx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/buildnumber.txt b/buildnumber.txt index f5f5440a..6059c637 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1586 \ No newline at end of file +1590 \ No newline at end of file diff --git a/source/funkin/system/MarkdownUtil.hx b/source/funkin/system/MarkdownUtil.hx index 808c6ff8..bcf592cc 100644 --- a/source/funkin/system/MarkdownUtil.hx +++ b/source/funkin/system/MarkdownUtil.hx @@ -27,6 +27,13 @@ class MarkdownUtil { parseWarnings(text.textField.text), changes ); + @:privateAccess { + // hacky fix for the text cutting when bigger text formats are used + text._regen = true; + text.regenGraphic(); + text._regen = true; + text.regenGraphic(); + } } public static function createAdvancedMarkerPair(marker:String, color:FlxColor, size:Null, bold:Bool = false, italic:Bool = false, ?underline:Bool = false, ?blockIndent:Int, ?bullet:Bool) {