IslandMenuOptions
import type { IslandMenuOptions } from 'pixi-silk/ui/island';
Options of IslandMenu.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
accent? | ColorSource | Colour of switches that are on. Default 0x30d158. | packages/pixi-silk/src/ui/island/menu.ts:49 |
items | readonly IslandMenuItem[] | The rows, top to bottom. | packages/pixi-silk/src/ui/island/menu.ts:41 |
label? | LabelFactory | Builds the text. Default PixiJS Text. | packages/pixi-silk/src/ui/island/menu.ts:53 |
onSelect? | (id: string) => void | Called after a row is tapped, with its id, once a toggle or choice has changed. | packages/pixi-silk/src/ui/island/menu.ts:51 |
rowHeight? | number | Row height. Default 40. | packages/pixi-silk/src/ui/island/menu.ts:47 |
ticker? | Ticker | null | null to step it by hand with IslandMenu.tick. Default Ticker.shared. | packages/pixi-silk/src/ui/island/menu.ts:55 |
title? | string | Small grey heading above the rows. | packages/pixi-silk/src/ui/island/menu.ts:43 |
width? | number | Width, local units. Default 220. | packages/pixi-silk/src/ui/island/menu.ts:45 |