Skip to content

Documentation / @debuffjp/ui / MenuStyle

Interface: MenuStyle ​

Defined in: menu.ts:34

Extended by ​

Properties ​

align? ​

optional align?: "left" | "center"

Defined in: menu.ts:43

"left" lines labels up after the cursor; "center" centres each label. Default "left".


color? ​

optional color?: string | number

Defined in: menu.ts:37


cursor? ​

optional cursor?: string

Defined in: menu.ts:45

Drawn beside the focused label, in its own column so labels never shift. Default ">".


cursorGap? ​

optional cursorGap?: number

Defined in: menu.ts:47

Pixels between the cursor and its label. Default 4.


disabledColor? ​

optional disabledColor?: string | number

Defined in: menu.ts:39


focusColor? ​

optional focusColor?: string | number

Defined in: menu.ts:38


font? ​

optional font?: FontLike

Defined in: menu.ts:36

CSS font or BitmapFont. Default: draw.text's, debuff sans.


gap? ​

optional gap?: number

Defined in: menu.ts:41

Extra pixels between rows. Default 3.


highlight? ​

optional highlight?: string | number | false

Defined in: menu.ts:54

A soft pill behind the focused row that squashes and springs back when focus moves. Default on with debuff's look (a style that sets no color), off otherwise; false turns it off.


valueGap? ​

optional valueGap?: number

Defined in: menu.ts:49

Minimum pixels between the label column and the value column. Default 12.