Get RAPTOR

RaptorSuiteMenuTooltips

A control's tooltip in RAPTOR's window: shown on RAPTOR's own card, and never over a Suite menu that is open.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0
public static class RaptorSuiteMenuTooltips

Methods

Button

public static bool Button(Rect r, string tooltip)

An unseen button over r with a tooltip: what GUI.Button(r, new GUIContent("", tooltip), GUIStyle.none) was, with the tooltip given through Raise.

ParameterTypeDescription
rRectThe button's rect in GUI coordinates of the current view.
tooltipstringThe tooltip, or null for none.

Returns: True when clicked.

Call from IMGUI drawing code.

Raise

public static void Raise(Rect r, string tooltip)

Gives the control at r its tooltip. In RAPTOR's window it shows on RAPTOR's own card and Unity's tooltip never does. In any other window it is Unity's tooltip, as a GUIContent tooltip would be. The last control under the pointer wins.

ParameterTypeDescription
rRectThe control's rect in GUI coordinates of the current view.
tooltipstringThe tooltip, or null for none.

Call from IMGUI drawing code.

Tip

public static string Tip(string tooltip)

Wraps a control's tooltip so it is hidden while a Suite menu is open.

ParameterTypeDescription
tooltipstringThe tooltip.

Returns: The tooltip, or null while a menu is open.