From a90a9adc28afa6ebc22c50276d90ca3342ff91fb Mon Sep 17 00:00:00 2001 From: Robbie Cargill Date: Sun, 7 Jan 2024 17:05:54 +0000 Subject: [PATCH] Don't show arrows facing towards character if dontFollowCharacter is true --- Scripts/SubtitlePanel.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Scripts/SubtitlePanel.cs b/Scripts/SubtitlePanel.cs index cadb052..9443492 100644 --- a/Scripts/SubtitlePanel.cs +++ b/Scripts/SubtitlePanel.cs @@ -320,10 +320,17 @@ namespace R0bbie.VRSubtitles panelCanvasGroup.transform.localEulerAngles = childCanvasOffscreenDefaultRot; // Show left/right arrows - if (activeCharScreenPosition == CharScreenPosition.OffToLeft) - UpdateArrow(ArrowDirection.Left); + if (!dontFollowCharacter) + { + if (activeCharScreenPosition == CharScreenPosition.OffToLeft) + UpdateArrow(ArrowDirection.Left); + else + UpdateArrow(ArrowDirection.Right); + } else - UpdateArrow(ArrowDirection.Right); + { + UpdateArrow(ArrowDirection.Off); + } } else // otherwise we'll position the subtitle UI next to the character, locked in pos {