From 119911b6296c48410022356a7c4220a5d67205f5 Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:51:31 -0400 Subject: [PATCH] shift view pane buttons and text --- MiraAPI/Patches/Options/LobbyViewPanePatches.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs index 7a69c3c..011b421 100644 --- a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs +++ b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs @@ -14,14 +14,12 @@ public static class LobbyViewPanePatches [HarmonyPatch(nameof(LobbyViewSettingsPane.Awake))] public static void AwakePatch(LobbyViewSettingsPane __instance) { - __instance.gameModeText.transform.localPosition = new Vector3(-4.3f, 2.4f, -2); - __instance.gameModeText.horizontalAlignment = HorizontalAlignmentOptions.Center; - __instance.gameModeText.fontSizeMax = 10f; - __instance.gameModeText.margin = new Vector4(1,0,1,0); + __instance.gameModeText.transform.localPosition = new Vector3(-2.3f, 2.4f, -2); // Create the next button GameObject nextButton = Object.Instantiate(__instance.BackButton, __instance.BackButton.transform.parent).gameObject; - nextButton.transform.localPosition = new Vector3(-2.3f, 2.4f, -2f); + nextButton.GetComponent().size = new Vector2(0.2f, 0.3f); + nextButton.transform.localPosition = new Vector3(-5.4f, 2.4f, -2f); nextButton.transform.localScale = new Vector3(3, 3, 2); nextButton.name = "RightArrowButton";