Button#setDownSound()

setDownSound(sound, marker) The Sound to be played when a Pointer presses down on this Button. Parameters Name Type Argument Description sound Phaser.Sound | Phaser.AudioSprite The Sound that will be played. marker string <optional> A Sound Marker that will be used in the playback. Source code: gameobjects/Button.js (Line 450)

Button#setChildIndex()

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters Name Type Description child DisplayObject The child DisplayObject instance for which you want to change the index number index Number The resulting index number for the child display object Inherited From PIXI.DisplayObjectContainer#setChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 132)

Button#sendToBack()

sendToBack() → {PIXI.DisplayObject} Sends this Game Object to the bottom of its parents display list.Visually this means it will render below all other children in the same Group. If this Game Object hasn't been added to a custom Group then this method will send it to the bottom of the Game World,because the World is the root Group from which all Game Objects descend. Returns PIXI.DisplayObject - This instance. Inherited From Phaser.Component.BringToTop#sendToBack Source code: gameob

Button#scaleMin

scaleMin : Phaser.Point The minimum scale this Game Object will scale down to. It allows you to prevent a parent from scaling this Game Object lower than the given value. Set it to null to remove the limit. Inherited From Phaser.Component.ScaleMinMax#scaleMin Source code: gameobjects/components/ScaleMinMax.js (Line 36)

Button#scaleMax

scaleMax : Phaser.Point The maximum scale this Game Object will scale up to. It allows you to prevent a parent from scaling this Game Object higher than the given value. Set it to null to remove the limit. Inherited From Phaser.Component.ScaleMinMax#scaleMax Source code: gameobjects/components/ScaleMinMax.js (Line 46)

Button#right

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX. Inherited From Phaser.Component.Bounds#right Source code: gameobjects/components/Bounds.js (Line 124)

Button#revive()

revive(health) → {PIXI.DisplayObject} Brings a 'dead' Game Object back to life, optionally resetting its health value in the process. A resurrected Game Object has its alive, exists and visible properties all set to true. It will dispatch the onRevived event. Listen to events.onRevived for the signal. Parameters Name Type Argument Default Description health number <optional> 100 The health to give the Game Object. Only set if the GameObject has the Health component. Returns PI

Button#resizeFrame()

resizeFrame(parent, width, height) Resizes the Frame dimensions that the Game Object uses for rendering. You shouldn't normally need to ever call this, but in the case of special texture types such as Video or BitmapDatait can be useful to adjust the dimensions directly in this way. Parameters Name Type Description parent object The parent texture object that caused the resize, i.e. a Phaser.Video object. width integer The new width of the texture. height integer The new height of the

Button#resetFrame()

resetFrame() Resets the texture frame dimensions that the Game Object uses for rendering. Inherited From Phaser.Component.LoadTexture#resetFrame Source code: gameobjects/components/LoadTexture.js (Line 232)

Button#reset()

reset(x, y, health) → {PIXI.DisplayObject} Resets the Game Object. This moves the Game Object to the given x/y world coordinates and sets fresh, exists,visible and renderable to true. If this Game Object has the LifeSpan component it will also set alive to true and health to the given value. If this Game Object has a Physics Body it will reset the Body. Parameters Name Type Argument Default Description x number The x coordinate (in world space) to position the Game Object at. y number