From 90c3b9b785cdbd534371a5b6986439515aff19c1 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 12 Mar 2024 16:19:05 -0400 Subject: [PATCH] Fix subtitle breaking when theres only one --- NewHorizons/Handlers/SubtitlesHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NewHorizons/Handlers/SubtitlesHandler.cs b/NewHorizons/Handlers/SubtitlesHandler.cs index 04706388..7207a8a5 100644 --- a/NewHorizons/Handlers/SubtitlesHandler.cs +++ b/NewHorizons/Handlers/SubtitlesHandler.cs @@ -72,6 +72,7 @@ namespace NewHorizons.Handlers _subtitleDisplay.transform.localPosition = new Vector3(0, 0, 0); _subtitleDisplay.transform.localScale = new Vector3(0.75f, 0.75f, 0.75f); _graphic = _subtitleDisplay.gameObject.GetAddComponent(); + _subtitleDisplay.gameObject.GetAddComponent().minWidth = SUBTITLE_WIDTH; AddSubtitles(); } @@ -126,6 +127,8 @@ namespace NewHorizons.Handlers if (_subtitleDisplay.sprite == null) { _subtitleDisplay.sprite = possibleSubtitles[0]; + // Always call this in case we stop changing subtitles after + ChangeSubtitle(); } // don't fade transition subtitles if there's only one subtitle