mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
shift view pane buttons and text
This commit is contained in:
1 parent
5affd9f6f1
commit
119911b629
1 file changed
+3
-5
@@ -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<BoxCollider2D>().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";
|
||||
|
||||
|
||||
Reference in new issue
Block a user