public override void VRChat_OnUiManagerInit() { QMNestedButton TabButton = new QMNestedButton("Hentai", Icon); _invisbleToggleButton = new QMToggleButton(TabButton, 1, 0, "Safe Invisble On", delegate() { _goInvisble = true; }, "Safe Invisble Off", delegate() { _goInvisble = false; }, "Toggle for joining worlds either Invisble or Visble", Color.cyan, Color.white); new QMSingleButton(TabButton, 2, 0, "Join World\n(Clipboard)", delegate() { _goInvisble = true; string ImGay = GUIUtility.systemCopyBuffer; new PortalInternal().Method_Private_Void_String_String_PDM_0(ImGay.Split(':')[0], ImGay.Split(':')[1]); }, "Tries to join world from clipboard"); }
public override void OnStart() { FOVChangerMenu = new QMNestedButton(UI.mainMenuP1, 1, 1, "FOV\nMenu", "Field Of View Menu"); FOVUp = new QMHalfButton(FOVChangerMenu, 2, -0.5f, "▲", new Action(() => { if (GlobalUtils.cameraFOV < 100) { GlobalUtils.cameraFOV++; } Wrapper.GetPlayerCamera().GetComponent <Camera>().fieldOfView = GlobalUtils.cameraFOV; resetFOV.setButtonText("Reset\nFOV\n[" + GlobalUtils.cameraFOV + "]"); }), "Fly Speed Up"); FOVDown = new QMHalfButton(FOVChangerMenu, 2, 0.5f, "▼", new Action(() => { if (GlobalUtils.cameraFOV > 0) { GlobalUtils.cameraFOV--; } Wrapper.GetPlayerCamera().GetComponent <Camera>().fieldOfView = GlobalUtils.cameraFOV; resetFOV.setButtonText("Reset\nFOV\n[" + GlobalUtils.cameraFOV + "]"); }), "Fly Speed Down"); FOVUpX = new QMHalfButton(FOVChangerMenu, 3, -0.5f, "▲▲▲", new Action(() => { if (GlobalUtils.cameraFOV < 100) { GlobalUtils.cameraFOV += 3; } Wrapper.GetPlayerCamera().GetComponent <Camera>().fieldOfView = GlobalUtils.cameraFOV; resetFOV.setButtonText("Reset\nFOV\n[" + GlobalUtils.cameraFOV + "]"); }), "Fly Speed Up 3X"); FOVDownX = new QMHalfButton(FOVChangerMenu, 3, 0.5f, "▼▼▼", new Action(() => { if (GlobalUtils.cameraFOV > 0) { GlobalUtils.cameraFOV -= 3; } Wrapper.GetPlayerCamera().GetComponent <Camera>().fieldOfView = GlobalUtils.cameraFOV; resetFOV.setButtonText("Reset\nFOV\n[" + GlobalUtils.cameraFOV + "]"); }), "Fly Speed Down 3X"); resetFOV = new QMSingleButton(FOVChangerMenu, 1, 0, "Reset\nFOV\n[" + GlobalUtils.cameraFOV + "]", new Action(() => { GlobalUtils.cameraFOV = 60; Wrapper.GetPlayerCamera().GetComponent <Camera>().fieldOfView = GlobalUtils.cameraFOV; resetFOV.setButtonText("Reset\nFOV\n[" + GlobalUtils.cameraFOV + "]"); }), "Reset To Default Field Of View [60]"); Wrapper.GetPlayerCamera().GetComponent <Camera>().fieldOfView = GlobalUtils.cameraFOV; }
public VRUtilsMenu(QMNestedButton parent, MClientVRButton config) : base(parent, config.X, config.Y, config.Name, config.Tooltip, GeneralUtils.GetColor(config.ColorScheme.Colors[0]), GeneralUtils.GetColor(config.ColorScheme.Colors[1]), GeneralUtils.GetColor(config.ColorScheme.Colors[2]), GeneralUtils.GetColor(config.ColorScheme.Colors[3])) { new AudioVRMenu(this); new ProgramVRMenu(this); }