#
Class: TextTag#
HierarchyHandle<texttag>
↳ TextTag
#
Constructors#
constructornew TextTag(): TextTag
Returns: TextTag
Defined in: handles/texttag.ts:6
#
Properties#
handle• Readonly
handle: texttag
Defined in: handles/handle.ts:6
#
Accessors#
idid(): 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#
destroydestroy(): void
Returns: void
Defined in: handles/texttag.ts:16
#
setAgesetAge(age: number): void
#
Parameters:Name | Type |
---|---|
age | number |
Returns: void
Defined in: handles/texttag.ts:20
#
setColorsetColor(red: number, green: number, blue: number, alpha: number): void
#
Parameters:Name | Type |
---|---|
red | number |
green | number |
blue | number |
alpha | number |
Returns: void
Defined in: handles/texttag.ts:24
#
setFadepointsetFadepoint(fadepoint: number): void
#
Parameters:Name | Type |
---|---|
fadepoint | number |
Returns: void
Defined in: handles/texttag.ts:28
#
setLifespansetLifespan(lifespan: number): void
#
Parameters:Name | Type |
---|---|
lifespan | number |
Returns: void
Defined in: handles/texttag.ts:32
#
setPermanentsetPermanent(flag: boolean): void
#
Parameters:Name | Type |
---|---|
flag | boolean |
Returns: void
Defined in: handles/texttag.ts:36
#
setPossetPos(x: number, y: number, heightOffset: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
heightOffset | number |
Returns: void
Defined in: handles/texttag.ts:40
#
setPosUnitsetPosUnit(u: Unit, heightOffset: number): void
#
Parameters:Name | Type |
---|---|
u | Unit |
heightOffset | number |
Returns: void
Defined in: handles/texttag.ts:44
#
setSuspendedsetSuspended(flag: boolean): void
#
Parameters:Name | Type |
---|---|
flag | boolean |
Returns: void
Defined in: handles/texttag.ts:48
#
setTextsetText(s: string, height: number, adjustHeight?: boolean): void
#
Parameters:Name | Type | Default value |
---|---|---|
s | string | - |
height | number | - |
adjustHeight | boolean | false |
Returns: void
Defined in: handles/texttag.ts:52
#
setVelocitysetVelocity(xvel: number, yvel: number): void
#
Parameters:Name | Type |
---|---|
xvel | number |
yvel | number |
Returns: void
Defined in: handles/texttag.ts:59
#
setVelocityAnglesetVelocityAngle(speed: number, angle: number): void
#
Parameters:Name | Type |
---|---|
speed | number |
angle | number |
Returns: void
Defined in: handles/texttag.ts:63
#
setVisiblesetVisible(flag: boolean): void
#
Parameters:Name | Type |
---|---|
flag | boolean |
Returns: void
Defined in: handles/texttag.ts:68
#
fromHandlestatic fromHandle(handle: texttag): TextTag
#
Parameters:Name | Type |
---|---|
handle | texttag |
Returns: TextTag
Defined in: handles/texttag.ts:72