Class: TextTag#

Hierarchy#

  • Handle<texttag>

    ↳ TextTag

Constructors#

constructor#

new TextTag(): TextTag

Returns: TextTag

Defined in: handles/texttag.ts:6

Properties#

handle#

• Readonly handle: texttag

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#

destroy#

destroy(): void

Returns: void

Defined in: handles/texttag.ts:16


setAge#

setAge(age: number): void

Parameters:#

NameType
agenumber

Returns: void

Defined in: handles/texttag.ts:20


setColor#

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

Parameters:#

NameType
rednumber
greennumber
bluenumber
alphanumber

Returns: void

Defined in: handles/texttag.ts:24


setFadepoint#

setFadepoint(fadepoint: number): void

Parameters:#

NameType
fadepointnumber

Returns: void

Defined in: handles/texttag.ts:28


setLifespan#

setLifespan(lifespan: number): void

Parameters:#

NameType
lifespannumber

Returns: void

Defined in: handles/texttag.ts:32


setPermanent#

setPermanent(flag: boolean): void

Parameters:#

NameType
flagboolean

Returns: void

Defined in: handles/texttag.ts:36


setPos#

setPos(x: number, y: number, heightOffset: number): void

Parameters:#

NameType
xnumber
ynumber
heightOffsetnumber

Returns: void

Defined in: handles/texttag.ts:40


setPosUnit#

setPosUnit(u: Unit, heightOffset: number): void

Parameters:#

NameType
uUnit
heightOffsetnumber

Returns: void

Defined in: handles/texttag.ts:44


setSuspended#

setSuspended(flag: boolean): void

Parameters:#

NameType
flagboolean

Returns: void

Defined in: handles/texttag.ts:48


setText#

setText(s: string, height: number, adjustHeight?: boolean): void

Parameters:#

NameTypeDefault value
sstring-
heightnumber-
adjustHeightbooleanfalse

Returns: void

Defined in: handles/texttag.ts:52


setVelocity#

setVelocity(xvel: number, yvel: number): void

Parameters:#

NameType
xvelnumber
yvelnumber

Returns: void

Defined in: handles/texttag.ts:59


setVelocityAngle#

setVelocityAngle(speed: number, angle: number): void

Parameters:#

NameType
speednumber
anglenumber

Returns: void

Defined in: handles/texttag.ts:63


setVisible#

setVisible(flag: boolean): void

Parameters:#

NameType
flagboolean

Returns: void

Defined in: handles/texttag.ts:68


fromHandle#

static fromHandle(handle: texttag): TextTag

Parameters:#

NameType
handletexttag

Returns: TextTag

Defined in: handles/texttag.ts:72