Class: TimerDialog#

Hierarchy#

  • Handle<timerdialog>

    ↳ TimerDialog

Constructors#

constructor#

new TimerDialog(t: Timer): TimerDialog

Parameters:#

NameType
tTimer

Returns: TimerDialog

Defined in: handles/timerdialog.ts:6

Properties#

handle#

• Readonly handle: timerdialog

Inherited from: Handle.handle

Defined in: handles/handle.ts:6

Accessors#

display#

display(): boolean

Returns: boolean

Defined in: handles/timerdialog.ts:15

display(display: boolean): void

Parameters:#

NameType
displayboolean

Returns: void

Defined in: handles/timerdialog.ts:19


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#

destroy#

destroy(): void

Returns: void

Defined in: handles/timerdialog.ts:23


setSpeed#

setSpeed(speedMultFactor: number): void

Parameters:#

NameType
speedMultFactornumber

Returns: void

Defined in: handles/timerdialog.ts:27


setTimeColor#

setTimeColor(red: number, green: number, blue: number, alpha: number): void

Sets the timer-dialogs time color.

Parameters:#

NameTypeDescription
rednumberAn integer from 0-255 determining the amount of red color.
greennumberAn integer from 0-255 determining the amount of red color.
bluenumberAn integer from 0-255 determining the amount of red color.
alphanumberAn integer from 0-255 determining the amount of red color.

Returns: void

Defined in: handles/timerdialog.ts:57


setTimeRemaining#

setTimeRemaining(value: number): void

Parameters:#

NameType
valuenumber

Returns: void

Defined in: handles/timerdialog.ts:31


setTitle#

setTitle(title: string): void

Parameters:#

NameType
titlestring

Returns: void

Defined in: handles/timerdialog.ts:35


setTitleColor#

setTitleColor(red: number, green: number, blue: number, alpha: number): void

Sets the timer-dialogs color.

Parameters:#

NameTypeDescription
rednumberAn integer from 0-255 determining the amount of red color.
greennumberAn integer from 0-255 determining the amount of red color.
bluenumberAn integer from 0-255 determining the amount of red color.
alphanumberAn integer from 0-255 determining the amount of red color.

Returns: void

Defined in: handles/timerdialog.ts:46


fromHandle#

static fromHandle(handle: timerdialog): TimerDialog

Parameters:#

NameType
handletimerdialog

Returns: TimerDialog

Defined in: handles/timerdialog.ts:61