Name | Type | Deprecated | Secure | Description |
---|---|---|---|---|
Command.Tooltip | function | Changes the displayed tooltip. | ||
Event.Tooltip | Signals that the tooltip has changed. | |||
Inspect.Tooltip | function | Returns the current contents of the tooltip. |
Changes the displayed tooltip.
Command.Tooltip(target) | |||
Command.Tooltip(target, nil) | |||
Command.Tooltip(owner, buff) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
buff | parameter | buff | The ID of a buff for the new tooltip. |
nil | parameter | nil | Optional placeholder nil. |
owner | parameter | unit | The ID of the owner of the buff. |
target | parameter | variant | The new tooltip. Currently accepts ability, item, itemtype, or unit IDs. Pass nil to clear the tooltip. |
Signals that the tooltip has changed.
Event.Tooltip(type, shown, buff) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
buff | parameter | <nope> | The ID of the tooltip's new buff. "shown" will be a unit in this case. |
shown | parameter | <nope> | The blob describing the new element shown. Generally, some kind of identifier used in another part of the addon system. |
type | parameter | variant | The current tooltip type. Valid values include "ability", "buff", "item", "itemtype", and "unit". |
Returns the current contents of the tooltip.
type, shown = Inspect.Tooltip() | |||
type, unit, buff = Inspect.Tooltip() | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
buff | result | buff | The ID of the tooltip's buff. |
shown | result | variant, nil | The blob describing what is currently shown. Generally, some kind of identifier used in another part of the addon system. |
type | result | string, nil | The current tooltip type. Valid values include "ability", "buff", "item", "itemtype", and "unit". |
unit | result | unit | The unit that the buff is attached to. |