Tooltip

Methods
5
Fields
None

Getting one

Tooltip.new(…)

Methods

MethodReturnsDescription
getText()string?getText().
setText(string?)()setText(text).
getComponent()LayoutableRenderableEntity?getComponent().
setComponent(LayoutableRenderableEntity?)()setComponent(component).
new(string?)Tooltip(string?) -> Tooltip: Tooltip.new(text): <br> lines, <col=hex> runs and <img=n> mod icons.
new(LayoutableRenderableEntity)Tooltip

Returned by

MethodReturnsDescription
TooltipClass.newTooltip(string?) -> Tooltip: Tooltip.new(text): <br> lines, <col=hex> runs and <img=n> mod icons.

Method details

new

new: ((string?) -> Tooltip) & ((LayoutableRenderableEntity) -> Tooltip)

(string?) -> Tooltip: Tooltip.new(text): <br> lines, <col=hex> runs and <img=n> mod icons.

(LayoutableRenderableEntity) -> Tooltip: Tooltip.new(component): a component drawn where the tooltip goes (a panel's background becomes the configured overlay colour).