From 9d2576c2456b031d15140a421623d769922ca89b Mon Sep 17 00:00:00 2001 From: Kaede159 Date: Sat, 9 May 2026 08:21:57 -0500 Subject: [PATCH 1/2] Changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix: MenuButton.rectTransform is now explicitly assigned from REPOButton.Awake() — prevents NullReferenceException in SemiFunc.UIGetRectTransformPositionOnScreen when hovering over admin menu buttons. This occurs because in recent game versions, MenuButton.Awake() does not guarantee the rectTransform field is initialized in time. --- MenuLib/MenuLib.csproj | 4 ++-- MenuLib/MonoBehaviors/REPOButton.cs | 2 ++ MenuLib/REPOReflection.cs | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MenuLib/MenuLib.csproj b/MenuLib/MenuLib.csproj index 20a3c48..e1a4971 100644 --- a/MenuLib/MenuLib.csproj +++ b/MenuLib/MenuLib.csproj @@ -1,8 +1,8 @@  - E:\SteamLibrary\steamapps\common\REPO - $(GameBaseDir)\REPO_Data\Managed + /home/kaede159/.local/share/Steam/steamapps/common/REPO + $(GameBaseDir)/REPO_Data/Managed 2.5.3 diff --git a/MenuLib/MonoBehaviors/REPOButton.cs b/MenuLib/MonoBehaviors/REPOButton.cs index e831925..fc9cf1c 100644 --- a/MenuLib/MonoBehaviors/REPOButton.cs +++ b/MenuLib/MonoBehaviors/REPOButton.cs @@ -36,6 +36,8 @@ private void Awake() rectTransform = transform as RectTransform; button = GetComponent