Extends
- PIXI.Container
Members
object :PIXI.DisplayObject
The object that this HUD container is linked to
Type:
- PIXI.DisplayObject
renderable
transform :PIXI.Transform
Use the linked object's transform matrix to easily synchronize position
Type:
- PIXI.Transform
visible
Methods
(async) createScrollingText(content, anchoropt, directionopt, durationopt, jitteropt, textStyleopt) → {Promise.<(PreciseText|null)>}
Display scrolling status text originating from this ObjectHUD container.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
content |
string | The text content to display |
||
anchor |
number |
<optional> |
0
|
The original anchor point where the text first appears |
direction |
number |
<optional> |
2
|
The direction in which the text scrolls |
duration |
number |
<optional> |
2000
|
The duration of the scrolling effect in milliseconds |
jitter |
number |
<optional> |
0
|
An amount of randomization between 0 and 1 to apply to the initial position |
textStyle |
object |
<optional> |
{}
|
Additional parameters of PIXI.TextStyle which are applied to the text |
Returns:
The created PreciseText object which is scrolling
- Type
- Promise.<(PreciseText|null)>