Skip to content
João Cardoso edited this page Dec 5, 2019 · 4 revisions

Tipped is an abstract class which exposes methods for providing mouse-over widget tooltips. Inherits from the Callable class.

Methods

Name Description
SetTip (h1, p) Sets the header and body of the tooltip. Both arguments are optional and, if simultaneously set to false or nil, no tooltip will be shown.
GetTip Returns the tooltip's header and body.
GetTipAnchor Returns an appropriate tooltip anchor given the frame position on the screen.

Calls

Name Description
OnEnter Fired on mouseover.
OnLeave Fired when the frame loses mouse focus.

Example

someFrame:SetTip("Hello World!", "This is an hello world.")
// On mouse-over, displays a tooltip with both header and body text

someFrame:SetTip("Hello World!")
// On mouse-over, displays a tooltip only with a header

someFrame:SetTip(nil, "This is an hello world.")
// On mouse-over, displays a tooltip only with body text

someFrame:SetTip(nil)
// No tooltip is shown

Sushi-3.1 🍣

Documentation
Class Reference
Best Practices

Feedback
Post an issue

Clone this wiki locally