private IEnumerator DelayedStart() { yield return(new WaitForSeconds(10)); m_uiDump = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetPlayerDetailsBase(), VrcOverrideUI.GetPlayerDetailsBase().transform.parent.gameObject, "DUMP", () => { APIUser target = QuickMenuWrappers.SelectedUser; Player player = PlayerManager.GetPlayer(target.id); QueueCoroutine(DumpPlayer(player)); }, new[] { Vector2.left, Vector2.down }); }
private void InstantiateStopTrackingButton() { m_uiStopTracking = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetUIElementsBase(), VrcOverrideUI.GetUIElementsBase().transform.parent.gameObject, "STOP\nTRACKING", () => { if (trackingUser) { trackingUser = !trackingUser; trackedUser = null; VrcOverrideUI.ChangeUIButtonText(m_uiTrackUser, "TRACK"); Object.Destroy(m_uiStopTracking); } }, new[] { Vector2.left, Vector2.left }); }
//private Dictionary<PhotonPlayer, PingFreezer> m_freezes = new Dictionary<PhotonPlayer, PingFreezer>(); private IEnumerator DelayedStart() { yield return(new WaitForSeconds(10)); /*m_uiGen5 = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetPlayerDetailsBase(), VrcOverrideUI.GetPlayerDetailsBase().transform.parent.gameObject, "GEN5", () => * { * APIUser targetUser = QuickMenuWrappers.SelectedUser; * VRC.Player targetPlayer = PlayerManager.GetPlayer(targetUser.id); * var photonPlayer = PlayerWrappers.PhotonPlayer(targetPlayer); * * Log.Info($"Logging out user {targetUser.displayName}"); * * Gen5 gen5 = new Gen5(photonPlayer); * gen5.Trigger(); * }, new[] { Vector2.down, Vector2.left, Vector2.left, Vector2.left, Vector2.left }); * * m_uiGen7 = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetPlayerDetailsBase(), VrcOverrideUI.GetPlayerDetailsBase().transform.parent.gameObject, "GEN7", () => * { * APIUser targetUser = QuickMenuWrappers.SelectedUser; * VRC.Player targetPlayer = PlayerManager.GetPlayer(targetUser.id); * var photonPlayer = PlayerWrappers.PhotonPlayer(targetPlayer); * * Log.Info($"Logging out user {targetUser.displayName}"); * * Gen7 gen7 = new Gen7(photonPlayer); * gen7.Trigger(); * }, new[] { Vector2.down, Vector2.left, Vector2.left, Vector2.left }); */ m_uiQuestionMark = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetPlayerDetailsBase(), VrcOverrideUI.GetPlayerDetailsBase().transform.parent.gameObject, "?: <color=red>OFF</color>", () => { APIUser targetUser = QuickMenuWrappers.SelectedUser; VRC.Player targetPlayer = PlayerManager.GetPlayer(targetUser.id); var photonPlayer = PlayerWrappers.PhotonPlayer(targetPlayer); Log.Info($"Beginning ping freeze on {targetUser.displayName}"); m_active = !m_active; if (m_active) { m_qq = new LoglessGen2(photonPlayer); m_qq.Trigger(); VrcOverrideUI.ChangeUIButtonText(m_uiQuestionMark, "?: <color=green>ON</color>"); } else { m_qq.Stop(); VrcOverrideUI.ChangeUIButtonText(m_uiQuestionMark, "?: <color=green>OFF</color>"); } }, new[] { Vector2.down, Vector2.left, Vector2.left, Vector2.left }); }
private IEnumerator DelayedStart() { yield return(new WaitForSeconds(10)); m_uiNoClip = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetUIElementsBase(), VrcOverrideUI.GetUIElementsBase().transform.parent.gameObject, "NoClip:\n<color=red>OFF</color>", () => { if (m_airbreakActive) { DisableAirbreak(); } else { SetupAirbreak(); } m_airbreakActive = !m_airbreakActive; }, new[] { Vector2.left }); }