Skip to main content

Interface: CreateTooltipRequiredOptions

Defined in: ui/utilities/create-tooltip.ts:21

Fields of CreateTooltipOptions with no sensible default; callers must always provide these.

Properties​

fontAtlas​

fontAtlas: FontAtlas

Defined in: ui/utilities/create-tooltip.ts:26

The loaded font atlas the text is drawn from.


sprite​

sprite: SpriteEcsComponent

Defined in: ui/utilities/create-tooltip.ts:32

The sprite to draw the tooltip's background panel with, e.g. from createImageSprite.


text​

text: string

Defined in: ui/utilities/create-tooltip.ts:23

The tooltip's text.


textSize​

textSize: number

Defined in: ui/utilities/create-tooltip.ts:29

The text's font size, in reference pixels.