RaptorSuiteMenuTooltips
A control's tooltip in RAPTOR's window: shown on RAPTOR's own card, and never over a Suite menu that is open.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
public static class RaptorSuiteMenuTooltipsMethods
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.
| Parameter | Type | Description |
|---|---|---|
| r | Rect | The button's rect in GUI coordinates of the current view. |
tooltip | string | The 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.
| Parameter | Type | Description |
|---|---|---|
| r | Rect | The control's rect in GUI coordinates of the current view. |
tooltip | string | The 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.
| Parameter | Type | Description |
|---|---|---|
tooltip | string | The tooltip. |
Returns: The tooltip, or null while a menu is open.