示例#1
0
        public static void HideAllTextHints(Hand hand)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

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

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideText(button);
            }
        }
示例#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);
            }
        }
示例#4
0
        public static void HideButtonHint(Hand hand, params EVRButtonId[] buttons)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

            if (controllerButtonHints != null)
            {
                controllerButtonHints.HideButtonHint(buttons);
            }
        }
示例#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);
        }
示例#6
0
        public static bool IsButtonHintActive(Hand hand, EVRButtonId button)
        {
            ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand);

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