Esempio n. 1
0
        public static void HideAllTextHints(Hand hand)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideAllText();
            }
        }
Esempio n. 2
0
        public static void HideTextHint(Hand hand, EVRButtonId button)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideText(button);
            }
        }
Esempio n. 3
0
        public static void ShowTextHint(Hand hand, EVRButtonId button, string text, bool highlightButton = true)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.ShowText(button, text, highlightButton);
            }
        }
Esempio n. 4
0
        public static void HideButtonHint(Hand hand, params EVRButtonId[] buttons)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideButtonHint(buttons);
            }
        }
Esempio n. 5
0
        public static string GetActiveHintText(Hand hand, EVRButtonId button)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                return(controllerButtonHints.GetActiveHintText(button));
            }
            return(string.Empty);
        }
Esempio n. 6
0
        public static bool IsButtonHintActive(Hand hand, EVRButtonId button)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            return(controllerButtonHints != null && controllerButtonHints.IsButtonHintActive(button));
        }