Exemple #1
0
        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 });
        }
Exemple #2
0
 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 });
 }
Exemple #3
0
        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 });
        }