Skip to content

1681-engine / ui / ButtonSkin

Interface: ButtonSkin ​

Defined in: src/ui/Button.ts:7

Properties ​

disabled? ​

ts
optional disabled?: PanelSkin;

Defined in: src/ui/Button.ts:11


focus? ​

ts
optional focus?: PanelSkin;

Defined in: src/ui/Button.ts:13

Drawn over the face while it has keyboard or gamepad focus (a ring, a brighter frame).


hover? ​

ts
optional hover?: PanelSkin;

Defined in: src/ui/Button.ts:9


normal ​

ts
normal: PanelSkin;

Defined in: src/ui/Button.ts:8


pressed? ​

ts
optional pressed?: PanelSkin;

Defined in: src/ui/Button.ts:10


pressOffset? ​

ts
optional pressOffset?: number;

Defined in: src/ui/Button.ts:15

How far the content drops while pressed (px, default 1): a pressed face is the same face a pixel lower.

Released under the MIT License.