tooltip

inline fun Actor.tooltip(background: String? = null, skin: Skin = Scene2DSkin.defaultSkin, tooltipManager: TooltipManager = TooltipManager.getInstance(), init: KTableWidget.(Tooltip<KTableWidget>) -> Unit = {}): Tooltip<KTableWidget>

Adds a new Tooltip to this actor, storing a flexible Table widget.

Return

a new Tooltip instance added to this actor.

Parameters

background

optional name of a drawable which will be extracted from the Skin and set as the main table's background. Defaults to null.

skin

Skin instance which contains the background. Will be passed to the Table.

tooltipManager

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

init

inlined building block, which allows to manage main Table content and fill it with children. Takes the Tooltip as its parameter, so it can be modified with the it reference. See usage examples.