private void InstantiateButtons() { m_uiBitrate = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetUIElementsBase(), VrcOverrideUI.GetUIElementsBase().transform.parent.gameObject, "BITRATE:\n<color=red>OFF</color>", () => { m_bitrateSwitched = !m_bitrateSwitched; FuckupBitrate(m_bitrateSwitched); if (m_bitrateSwitched) { VrcOverrideUI.ChangeUIButtonText(m_uiBitrate, "BITRATE:\n<color=green>ON</color>"); } else { VrcOverrideUI.ChangeUIButtonText(m_uiBitrate, "BITRATE:\n<color=red>OFF</color>"); } }, new[] { Vector2.up, Vector2.left }); m_uiMicGain = VrcOverrideUI.InstantiateUIButton(VrcOverrideUI.GetUIElementsBase(), VrcOverrideUI.GetUIElementsBase().transform.parent.gameObject, "GAIN:\n<color=red>OFF</color>", () => { m_gainSwitched = !m_gainSwitched; FuckupGain(m_gainSwitched); if (m_gainSwitched) { VrcOverrideUI.ChangeUIButtonText(m_uiMicGain, "GAIN:\n<color=green>ON</color>"); } else { VrcOverrideUI.ChangeUIButtonText(m_uiMicGain, "GAIN:\n<color=red>OFF</color>"); } }, new[] { Vector2.up }); }
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 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 }); }