Skip to main content

Interface: CreateButtonRequiredOptions

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

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

Properties​

fontAtlas​

fontAtlas: FontAtlas

Defined in: ui/utilities/create-button.ts:41

The loaded font atlas the label is drawn from.


label​

label: string

Defined in: ui/utilities/create-button.ts:38

The button's label text.


labelSize​

labelSize: number

Defined in: ui/utilities/create-button.ts:44

The label's font size, in reference pixels.


sprite​

sprite: SpriteEcsComponent

Defined in: ui/utilities/create-button.ts:35

The sprite to draw the button's background with, e.g. from createImageSprite - see createPanel's sprite option, which this is passed straight through to.