textTooltip

inline fun Actor.textTooltip(text: String, style: String = defaultStyle, skin: Skin = Scene2DSkin.defaultSkin, tooltipManager: TooltipManager = TooltipManager.getInstance(), init: Label.(TextTooltip) -> Unit = {}): TextTooltip

Adds a new TextTooltip to this actor.

Return

a new TextTooltip instance added to the actor.

Parameters

text

will be displayed on the tooltip.

style

name of the style of the tooltip. Defaults to defaultStyle.

skin

Skin instance which contains the style. Defaults to Scene2DSkin.defaultSkin.

tooltipManager

manages tooltips and their settings. Defaults to the global manager obtained with TooltipManager.getInstance.

init

inlined building block, which allows to manage Label actor of the TextTooltip. Takes the TextTooltip as its parameter, so it can be modified with the it reference as well. See usage examples.