Class: DialogButton#
Hierarchy#
Handle<button>
↳ DialogButton
Constructors#
constructor#
new DialogButton(whichDialog: Dialog, text: string, hotkey?: number, quit?: boolean, score?: boolean): DialogButtonParameters:#
| Name | Type | Default value |
|---|---|---|
whichDialog | Dialog | - |
text | string | - |
hotkey | number | 0 |
quit | boolean | false |
score | boolean | false |
Returns: DialogButton
Defined in: handles/dialog.ts:6
Properties#
handle#
• Readonly handle: button
Defined in: handles/handle.ts:6
Accessors#
id#
id(): numberGet the unique ID of the handle. The ID is recycled once you destroy the object.
Returns: number
The unique ID of a handle object.
Defined in: handles/handle.ts:18
Methods#
fromHandle#
static fromHandle(handle: button): DialogButtonParameters:#
| Name | Type |
|---|---|
handle | button |
Returns: DialogButton
Defined in: handles/dialog.ts:17