static void Postfix(uGUI_CameraCyclops __instance) { GameObject cyclopsCamera = __instance.transform.Find("Content").Find("CameraCyclops").gameObject; if (cyclopsCamera != null) { cyclopsCamera.GetComponent <RectTransform>().localScale = new Vector3(0.7f, 0.7f, 1f); return; } }
public static void CameraCyclopsAwake_Postfix(uGUI_CameraCyclops __instance) { GameObject gameObject = __instance.transform.Find("Content").Find("CameraCyclops").gameObject; if (gameObject != null) { gameObject.GetComponent <RectTransform>().localScale = new Vector3(0.7f, 0.7f, 1f); return; } Debug.Log("VR Enhancements Mod: Cannot set CyclopsCamera UI scale. Cyclops Camera Not Found"); }
static bool Prefix(uGUI_CameraCyclops __instance) { string rightHand = uGUI.FormatButton(GameInput.Button.RightHand, false, " / ", false); string leftHand = uGUI.FormatButton(GameInput.Button.LeftHand, false, " / ", false); string slot1 = uGUI.FormatButton(GameInput.Button.Slot1, false, " / ", false); string slot2 = uGUI.FormatButton(GameInput.Button.Slot2, false, " / ", false); string slot3 = uGUI.FormatButton(GameInput.Button.Slot3, false, " / ", false); var exitText = LanguageCache.GetButtonFormat("PressToExit", GameInput.Button.Exit); var onLightText = "Lights On (" + rightHand + ")"; var offLightText = "Lights Off (" + leftHand + ")"; var selectCamera = "Select Camera (" + slot1 + "/" + slot2 + "/" + slot3 + ")"; __instance.stringControls = "\n" + exitText + "\n" + offLightText + " / " + onLightText + "\n" + selectCamera; return(false); }