Class: PixiGauge

phina.pixi.PixiGauge(params)

new PixiGauge(params)

Alternative of phina.ui.Gauge class
Parameters:
Name Type Description
params Object todo
Source:

Extends

Methods

(private) _drawGauge() → {void}

update gauge view
Source:
Returns:
Type
void

(private) _setUpInteraction() → {void}

Add interaction event to the element (temp)
Inherited From:
Source:
Returns:
Type
void

activateInteraction() → {this}

Inherited From:
Source:
Returns:
Type
this

addChild(child) → {this}

Add child to internal Pixi container
Parameters:
Name Type Description
child PIXI.DisplayObject | phina.pixi.PixiElement
Inherited From:
Source:
Returns:
Type
this

addFilter(filter, clear) → {this}

Set PIXI.Filter to the PIXI element
Parameters:
Name Type Description
filter PIXI.Filter
clear boolean clears the filters
Inherited From:
Source:
Returns:
Type
this

clearFilter() → {this}

Inherited From:
Source:
Returns:
Type
this

getPixiChildren() → {Array}

Get all children in Pixi container
Parameters:
Type Description
void
Inherited From:
Source:
Returns:
Type
Array

refill() → {this}

set the value to max
Source:
Returns:
Type
this

removeChild(child) → {this}

Remove child from internal Pixi container
Parameters:
Name Type Description
child PIXI.DisplayObject | phina.pixi.PixiElement
Inherited From:
Source:
Returns:
Type
this

setAlpha() → {this}

Inherited From:
Source:
Returns:
Type
this

setColor(color, bgColor) → {this}

set gauge and background color
Parameters:
Name Type Description
color number | string hex
bgColor number | string hex
Source:
Returns:
Type
this

setFilters(filters) → {this}

Set PIXI.filters with array or rest paramenter
Parameters:
Name Type Description
filters Array.<PIXI.Filter> | PIXI.Filter
Inherited From:
Source:
Returns:
Type
this

setInteractive() → {this}

Inherited From:
Source:
Returns:
Type
this

setMask() → {this}

set up mask
Source:
Returns:
Type
this

setOrigin() → {this}

Inherited From:
Source:
Returns:
Type
this

setPosition() → {this}

Inherited From:
Source:
Returns:
Type
this

setRatio(v) → {this}

set the value as ratio
Parameters:
Name Type Description
v number clamp to 0.0~1.0
Source:
To Do:
  • value should be changed
Returns:
Type
this

setRotation() → {this}

Inherited From:
Source:
Returns:
Type
this

setScale() → {this}

Inherited From:
Source:
Returns:
Type
this

setSize() → {this}

Inherited From:
Source:
Returns:
Type
this

setValue(v) → {this}

set value
Parameters:
Name Type Description
v number clamp to 0.0~1.0
Source:
Returns:
Type
this

setVisible() → {this}

Inherited From:
Source:
Returns:
Type
this