visTextTooltip

fun Actor.visTextTooltip(text: CharSequence, textAlign: Int = Align.center, style: String = defaultStyle, init: Tooltip.() -> Unit = {}): Tooltip

Creates and adds Tooltip with a VisLabel to this Actor.

Return

a new instance of Tooltip added to this Actor.

Parameters

text

content of the VisLabel.

textAlign

allows to customize text alignment of the VisLabel.

style

name of the tooltip style. Defaults to defaultStyle.

init

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