public static bool HideControllerTooltip(ControllerTooltipManager.TooltipControllers controller, ControllerTooltipManager.TooltipButtons button) { InitializeControllerTooltips(); if (!ControllersTooltipsInitialized) { return(false); } if (controller == ControllerTooltipManager.TooltipControllers.Both) { _controllerTooltipManager.HideTooltip(ControllerTooltipManager.TooltipControllers.Left, button); _controllerTooltipManager.HideTooltip(ControllerTooltipManager.TooltipControllers.Right, button); } else { _controllerTooltipManager.HideTooltip(controller, button); } return(true); }
public static bool ShowControllerTooltip(string text, ControllerTooltipManager.TooltipControllers controller, ControllerTooltipManager.TooltipButtons button, bool buttonGlow = true) { InitializeControllerTooltips(); if (!ControllersTooltipsInitialized) { return(false); } if (controller == ControllerTooltipManager.TooltipControllers.Both) { _controllerTooltipManager.SetTooltip(text, ControllerTooltipManager.TooltipControllers.Left, button, buttonGlow); _controllerTooltipManager.SetTooltip(text, ControllerTooltipManager.TooltipControllers.Right, button, buttonGlow); } else { _controllerTooltipManager.SetTooltip(text, controller, button, buttonGlow); } return(true); }