Class: DialogButton#

Hierarchy#

  • Handle<button>

    ↳ DialogButton

Constructors#

constructor#

new DialogButton(whichDialog: Dialog, text: string, hotkey?: number, quit?: boolean, score?: boolean): DialogButton

Parameters:#

NameTypeDefault value
whichDialogDialog-
textstring-
hotkeynumber0
quitbooleanfalse
scorebooleanfalse

Returns: DialogButton

Defined in: handles/dialog.ts:6

Properties#

handle#

• Readonly handle: button

Inherited from: Handle.handle

Defined in: handles/handle.ts:6

Accessors#

id#

id(): number

Get 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): DialogButton

Parameters:#

NameType
handlebutton

Returns: DialogButton

Defined in: handles/dialog.ts:17