visTooltip

fun Actor.visTooltip(content: Actor, style: String = defaultStyle, init: Tooltip.() -> Unit = {}): Tooltip

Creates and adds Tooltip to this Actor.

Return

a new instance of Tooltip added to this Actor.

Parameters

content

content of the displayed tooltip. Can be defined with scene2d.

style

name of the tooltip style. Defaults to defaultStyle.

init

will be invoked on the Tooltip, allowing to customize it.