From 90bf402cbc11c52db609dc4a6848ef7bad8c3684 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sun, 3 May 2026 11:57:04 -0500 Subject: [PATCH] Fix UI resizing with the top right buttons --- MiraAPI/Patches/HudManagerPatches.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MiraAPI/Patches/HudManagerPatches.cs b/MiraAPI/Patches/HudManagerPatches.cs index 4053363..de8593b 100644 --- a/MiraAPI/Patches/HudManagerPatches.cs +++ b/MiraAPI/Patches/HudManagerPatches.cs @@ -52,12 +52,7 @@ public static class HudManagerPatches continue; } - if (aspect.gameObject.transform.parent.name == "TopRight") - { - continue; - } - - if (aspect.gameObject.transform.parent.transform.parent.name == "TopRight") + if (aspect.gameObject.name.Contains("TopRight")) { continue; } @@ -89,6 +84,11 @@ public static class HudManagerPatches continue; } + if (arrange.gameObject.name.Contains("TopRight")) + { + continue; + } + arrange.gameObject.SetActive(!arrange.isActiveAndEnabled); arrange.CellSize = new Vector2(scaleFactor, scaleFactor); arrange.gameObject.SetActive(!arrange.isActiveAndEnabled);