From ef8b4af2313895763466a508e36d8c9df5df825c Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Wed, 23 Sep 2026 01:57:10 -0500 Subject: [PATCH] Fix masking and text positions --- MiraAPI/Patches/RoleGuidePatches.cs | 3 ++- MiraAPI/Roles/ICustomRole.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Patches/RoleGuidePatches.cs b/MiraAPI/Patches/RoleGuidePatches.cs index 0b5c88b..390e3e7 100644 --- a/MiraAPI/Patches/RoleGuidePatches.cs +++ b/MiraAPI/Patches/RoleGuidePatches.cs @@ -120,6 +120,7 @@ public static class RoleGuidePatches __instance.MatchInfoRoleMaskArea.material.SetInt(PlayerMaterial.MaskLayer, 50); __instance.matchInfoSettingsMaskArea.material.SetInt(PlayerMaterial.MaskLayer, 50); var wikiTab = Object.Instantiate(__instance.settingsTabs[2], __instance.settingsTabs[2].transform.parent); + wikiTab.transform.FindChild("MaskArea")?.transform.localPosition = new Vector3(-0.0184f, 0.15f, -0.1f); AdvancedWikiTab = wikiTab.GetComponent(); DisplayNormalRoleSettings(__instance, true); } @@ -339,10 +340,10 @@ public static class RoleGuidePatches } desc.text = description; - desc.transform.localPosition = new Vector3(0, 0.925f, 0); desc.rectTransform.sizeDelta = new Vector2(7.5f, 0.3f); desc.alignment = TextAlignmentOptions.TopLeft; CurrentAdvancedTabObject.transform.SetParent(AdvancedWikiTab.Inner.transform); + desc.transform.localPosition = new Vector3(0, 1.125f, 0); CurrentAdvancedTabObject.transform.localPosition = new Vector3(0f, 0f, 0f); } } diff --git a/MiraAPI/Roles/ICustomRole.cs b/MiraAPI/Roles/ICustomRole.cs index 233a836..25c83c1 100644 --- a/MiraAPI/Roles/ICustomRole.cs +++ b/MiraAPI/Roles/ICustomRole.cs @@ -323,10 +323,10 @@ public interface ICustomRole : IOptionable var desc = Object.Instantiate(guide.MatchInfoRolePanelPrefab.roleCount, obj.transform); desc.fontSizeMin = desc.fontSizeMax = desc.fontSize = 2f; desc.text = RoleWikiDescription; - desc.transform.localPosition = new Vector3(0, 0.925f, 0); desc.rectTransform.sizeDelta = new Vector2(7.5f, 0.3f); desc.alignment = TextAlignmentOptions.TopLeft; obj.transform.SetParent(parent.Inner.transform); + desc.transform.localPosition = new Vector3(0, 1.125f, 0); return obj; }