Documentation / @debuffjp/ui / MenuPanelStyle
Interface: MenuPanelStyle
Defined in: menu.ts:57
Extends
Properties
align?
optionalalign?:"left"|"center"
Defined in: menu.ts:43
"left" lines labels up after the cursor; "center" centres each label. Default "left".
Inherited from
borders?
optionalborders?: readonly (string|number)[]
Defined in: panel.ts:68
1px rings, outermost first. Default one light ring.
Inherited from
chamfer?
optionalchamfer?:number
Defined in: panel.ts:74
Cut each corner by this many pixels. Default 0 (square).
Inherited from
color?
optionalcolor?:string|number
Defined in: menu.ts:37
Inherited from
cursor?
optionalcursor?:string
Defined in: menu.ts:45
Drawn beside the focused label, in its own column so labels never shift. Default ">".
Inherited from
cursorGap?
optionalcursorGap?:number
Defined in: menu.ts:47
Pixels between the cursor and its label. Default 4.
Inherited from
disabledColor?
optionaldisabledColor?:string|number
Defined in: menu.ts:39
Inherited from
fill?
optionalfill?:string|number
Defined in: panel.ts:70
Default a dark grey.
Inherited from
focusColor?
optionalfocusColor?:string|number
Defined in: menu.ts:38
Inherited from
font?
optionalfont?:FontLike
Defined in: menu.ts:36
CSS font or BitmapFont. Default: draw.text's, debuff sans.
Inherited from
gap?
optionalgap?:number
Defined in: menu.ts:41
Extra pixels between rows. Default 3.
Inherited from
highlight?
optionalhighlight?: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.
Inherited from
padding?
optionalpadding?:number
Defined in: panel.ts:72
Space between the innermost ring and the content. Default 6.
Inherited from
radius?
optionalradius?:number
Defined in: panel.ts:76
Round each corner with this radius (wins over chamfer). Default 0, or 10 for debuff's own look.
Inherited from
shadow?
optionalshadow?:string|number
Defined in: panel.ts:78
A hard drop shadow in this colour, offset down-right by shadowOffset. Default none.
Inherited from
shadowOffset?
optionalshadowOffset?:number
Defined in: panel.ts:80
Default 1.
Inherited from
title?
optionaltitle?:string
Defined in: menu.ts:58
titleColor?
optionaltitleColor?:string|number
Defined in: menu.ts:60
titleFont?
optionaltitleFont?:FontLike
Defined in: menu.ts:59
titleGap?
optionaltitleGap?:number
Defined in: menu.ts:62
Pixels between the title and the first row. Default 6.
valueGap?
optionalvalueGap?:number
Defined in: menu.ts:49
Minimum pixels between the label column and the value column. Default 12.