Creates an instance of a Progress.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
optional
An options object to specify to style and behaviour of the progress.
|
- See:
Example
// Create the progress
const progress = new Progress({
app: app
})
// Add the progress to a DisplayObject
app.scene.addChild(progress)
Extends
- PIXI.Container
Members
-
Gets or sets the progress. Has to be a number between 0 and 100.
Methods
-
hide ()Progress
-
Hides the progress (sets his alpha values to 1).
Returns:
Type Description Progress A reference to the progress for chaining. -
layout ()Progress
-
Should be called to refresh the layout of the progress. Can be used after resizing.
Returns:
Type Description Progress A reference to the progress for chaining. -
show ()Progress
-
Shows the progress (sets his alpha values to 1).
Returns:
Type Description Progress A reference to the progress for chaining.