> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/content/03.-content/03.8-ui-toolkit/tooltipmanager.md).

# TooltipManager

Allows to visually indicate the current hovered Item ( If available ) in the Inventory. This action is not immediate, though, players need to hover the Item for a minimum amount of time before the Tooltip is enabled.

<figure><img src="https://82980203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXr4tnFxEQlPvYDitAgDT%2Fuploads%2FWBnKPYVw83RXabJpcLGB%2Fimage.png?alt=media&amp;token=34839ed8-3dfe-4d89-80c4-fd3d060f8629" alt=""><figcaption></figcaption></figure>

Additionally, Tooltips can contains Descriptions, as shown in the picture below:

<figure><img src="https://82980203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXr4tnFxEQlPvYDitAgDT%2Fuploads%2F6mBwJ8jHbq8sJkyHL4OH%2Fimage.png?alt=media&amp;token=1efd614a-565f-4c03-87d5-2b1183726991" alt=""><figcaption></figcaption></figure>

***

* <mark style="color:purple;">dragImage:</mark> Image that displays the Icon of the current Dragged Item.
* <mark style="color:purple;">tooltip:</mark> Object that contains the Tooltip UI
* <mark style="color:purple;">rotateText:</mark> Text that displays the Input Keybind to rotate text ( only visible if using Tetris Inventory )
* <mark style="color:purple;">tooltipText:</mark> Text that displays the current hovered Item Name
* <mark style="color:purple;">tooltipDescription:</mark> Text that displays the current hovered Item Description
* <mark style="color:purple;">tooltipOffset:</mark> Offset Position added to the tooltip to avoid displaying it exactly on the mouse, for better readability
* <mark style="color:purple;">rightPadding:</mark> Horizontal space added to the text at the end of the line.

### Functions | FavItemsMenu.cs

> <mark style="color:green;">SetActive(bool value)</mark>
>
> Visually enables or disables Tooltip and activates or deactivates it based on the given value

> <mark style="color:green;">SetDragImageVisibility(bool visible, Sprite sprite, bool showRotateText)</mark>
>
> Update Drag Image State ( Whether it is visible or not ) and the visuals to display

> <mark style="color:green;">SetTooltipVisibility(bool visible, string name, string description)</mark>
>
> Update Tooltip State ( Whether it is visible or not ) and the Item Parameters to represent ( Name & Description )

> <mark style="color:green;">Disable()</mark>
>
> Disables the Tooltip so it cannot be shown nor used.

> <mark style="color:green;">Rotate(int rotation)</mark>
>
> Rotates Drag Image. Used by Tetris Inventory only. Items in Grid Inventory cannot be rotated.

> <mark style="color:green;">SetPosition(Vector2 pos)</mark>
>
> Updates Tooltip Position in the UI
