Esempio n. 1
0
        //-------------------------------------------------
        // Cycles through all the text hints on the controller
        //-------------------------------------------------
        private IEnumerator TestTextHints(Hand hand)
        {
            ControllerButtonHints.HideAllTextHints(hand);

            while (true)
            {
                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_ApplicationMenu, "Application");
                yield return(new WaitForSeconds(3.0f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_System, "System");
                yield return(new WaitForSeconds(3.0f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_Grip, "Grip");
                yield return(new WaitForSeconds(3.0f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_SteamVR_Trigger, "Trigger");
                yield return(new WaitForSeconds(3.0f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_SteamVR_Touchpad, "Touchpad");
                yield return(new WaitForSeconds(3.0f));

                ControllerButtonHints.HideAllTextHints(hand);
                yield return(new WaitForSeconds(3.0f));
            }
        }
Esempio n. 2
0
        // Token: 0x06005DEA RID: 24042 RVA: 0x0020DD30 File Offset: 0x0020C130
        private IEnumerator TestTextHints(Hand hand)
        {
            ControllerButtonHints.HideAllTextHints(hand);
            for (;;)
            {
                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_ApplicationMenu, "Application", true);
                yield return(new WaitForSeconds(3f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_System, "System", true);
                yield return(new WaitForSeconds(3f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_Grip, "Grip", true);
                yield return(new WaitForSeconds(3f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_Axis1, "Trigger", true);
                yield return(new WaitForSeconds(3f));

                ControllerButtonHints.ShowTextHint(hand, EVRButtonId.k_EButton_Axis0, "Touchpad", true);
                yield return(new WaitForSeconds(3f));

                ControllerButtonHints.HideAllTextHints(hand);
                yield return(new WaitForSeconds(3f));
            }
            yield break;
        }
Esempio n. 3
0
 // Token: 0x06005DE8 RID: 24040 RVA: 0x0020DC9C File Offset: 0x0020C09C
 public void DisableHints()
 {
     if (this.buttonHintCoroutine != null)
     {
         base.StopCoroutine(this.buttonHintCoroutine);
         this.buttonHintCoroutine = null;
     }
     if (this.textHintCoroutine != null)
     {
         base.StopCoroutine(this.textHintCoroutine);
         this.textHintCoroutine = null;
     }
     foreach (Hand hand in Player.instance.hands)
     {
         ControllerButtonHints.HideAllButtonHints(hand);
         ControllerButtonHints.HideAllTextHints(hand);
     }
 }
Esempio n. 4
0
        //-------------------------------------------------
        public void DisableHints()
        {
            if (buttonHintCoroutine != null)
            {
                StopCoroutine(buttonHintCoroutine);
                buttonHintCoroutine = null;
            }

            if (textHintCoroutine != null)
            {
                StopCoroutine(textHintCoroutine);
                textHintCoroutine = null;
            }

            foreach (var hand in Player.instance.hands)
            {
                ControllerButtonHints.HideAllButtonHints(hand);
                ControllerButtonHints.HideAllTextHints(hand);
            }
        }