Fix UI resizing with the top right buttons

This commit is contained in:
Atony committed 2026-05-03 11:57:04 -05:00
1 parent fed3abafb2
commit 90bf402cbc
1 file changed
+6 -6
+6 -6
View File
@@ -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);