public static void HideAllTextHints(Hand hand) { ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand); if (controllerButtonHints != null) { controllerButtonHints.HideAllText(); } }
public static void HideTextHint(Hand hand, EVRButtonId button) { ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand); if (controllerButtonHints != null) { controllerButtonHints.HideText(button); } }
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); } }
public static void HideButtonHint(Hand hand, params EVRButtonId[] buttons) { ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand); if (controllerButtonHints != null) { controllerButtonHints.HideButtonHint(buttons); } }
public static string GetActiveHintText(Hand hand, EVRButtonId button) { ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand); if (controllerButtonHints != null) { return(controllerButtonHints.GetActiveHintText(button)); } return(string.Empty); }
public static bool IsButtonHintActive(Hand hand, EVRButtonId button) { ControllerButtonHints controllerButtonHints = ControllerButtonHints.GetControllerButtonHints(hand); return(controllerButtonHints != null && controllerButtonHints.IsButtonHintActive(button)); }