2013-10-25 15:54:40 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > Phaser Class: Button< / title >
<!-- [if lt IE 9]>
< script src = "//html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
< link type = "text/css" rel = "stylesheet" href = "styles/sunlight.default.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/site.cerulean.css" >
< / head >
< body >
< div class = "container-fluid" >
< div class = "navbar navbar-fixed-top navbar-inverse" >
< div class = "navbar-inner" >
< a class = "brand" href = "index.html" > Phaser< / a >
< ul class = "nav" >
< li class = "dropdown" >
< a href = "namespaces.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Namespaces< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li >
< a href = "Phaser.html" > Phaser< / a >
< / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "classes.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Classes< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li >
< a href = "Phaser.Animation.html" > Animation< / a >
< / li >
< li >
< a href = "Phaser.AnimationManager.html" > AnimationManager< / a >
< / li >
< li >
< a href = "Phaser.AnimationParser.html" > AnimationParser< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.BitmapData.html" > BitmapData< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.BitmapText.html" > BitmapText< / a >
< / li >
< li >
< a href = "Phaser.Button.html" > Button< / a >
< / li >
< li >
< a href = "Phaser.Cache.html" > Cache< / a >
< / li >
< li >
< a href = "Phaser.Camera.html" > Camera< / a >
< / li >
< li >
< a href = "Phaser.Canvas.html" > Canvas< / a >
< / li >
< li >
< a href = "Phaser.Circle.html" > Circle< / a >
< / li >
< li >
< a href = "Phaser.Color.html" > Color< / a >
< / li >
< li >
< a href = "Phaser.Device.html" > Device< / a >
< / li >
< li >
< a href = "Phaser.Easing.html" > Easing< / a >
< / li >
< li >
< a href = "Phaser.Easing.Back.html" > Back< / a >
< / li >
< li >
< a href = "Phaser.Easing.Bounce.html" > Bounce< / a >
< / li >
< li >
< a href = "Phaser.Easing.Circular.html" > Circular< / a >
< / li >
< li >
< a href = "Phaser.Easing.Cubic.html" > Cubic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Elastic.html" > Elastic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Exponential.html" > Exponential< / a >
< / li >
< li >
< a href = "Phaser.Easing.Linear.html" > Linear< / a >
< / li >
< li >
< a href = "Phaser.Easing.Quadratic.html" > Quadratic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Quartic.html" > Quartic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Quintic.html" > Quintic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Sinusoidal.html" > Sinusoidal< / a >
< / li >
2014-02-18 03:01:51 +00:00
< li >
< a href = "Phaser.Ellipse.html" > Ellipse< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Events.html" > Events< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Filter.html" > Filter< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Frame.html" > Frame< / a >
< / li >
< li >
< a href = "Phaser.FrameData.html" > FrameData< / a >
< / li >
< li >
< a href = "Phaser.Game.html" > Game< / a >
< / li >
2014-02-21 15:37:26 +00:00
< li >
< a href = "Phaser.GameObjectCreator.html" > GameObjectCreator< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.GameObjectFactory.html" > GameObjectFactory< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.Gamepad.html" > Gamepad< / a >
< / li >
< li >
< a href = "Phaser.GamepadButton.html" > GamepadButton< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Graphics.html" > Graphics< / a >
< / li >
< li >
< a href = "Phaser.Group.html" > Group< / a >
< / li >
2014-02-08 07:24:22 +00:00
< li >
< a href = "Phaser.Image.html" > Image< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Input.html" > Input< / a >
< / li >
< li >
< a href = "Phaser.InputHandler.html" > InputHandler< / a >
< / li >
< li >
< a href = "Phaser.Key.html" > Key< / a >
< / li >
< li >
< a href = "Phaser.Keyboard.html" > Keyboard< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.Line.html" > Line< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.LinkedList.html" > LinkedList< / a >
< / li >
< li >
< a href = "Phaser.Loader.html" > Loader< / a >
< / li >
< li >
< a href = "Phaser.LoaderParser.html" > LoaderParser< / a >
< / li >
< li >
< a href = "Phaser.Math.html" > Math< / a >
< / li >
< li >
< a href = "Phaser.Mouse.html" > Mouse< / a >
< / li >
< li >
< a href = "Phaser.MSPointer.html" > MSPointer< / a >
< / li >
< li >
< a href = "Phaser.Net.html" > Net< / a >
< / li >
< li >
< a href = "Phaser.Particles.html" > Particles< / a >
< / li >
< li >
< a href = "Phaser.Particles.Arcade.Emitter.html" > Emitter< / a >
< / li >
< li >
< a href = "Phaser.Physics.html" > Physics< / a >
< / li >
< li >
< a href = "Phaser.Physics.Arcade.html" > Arcade< / a >
< / li >
2014-02-21 15:37:26 +00:00
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Arcade.Body.html" > Body< / a >
< / li >
< li >
< a href = "Phaser.Physics.Ninja.html" > Ninja< / a >
< / li >
< li >
< a href = "Phaser.Physics.Ninja.AABB.html" > AABB< / a >
< / li >
< li >
< a href = "Phaser.Physics.Ninja.Body.html" > Body< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Circle.html" > Circle< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Tile.html" > Tile< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.html" > P2< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Body.html" > Body< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.BodyDebug.html" > BodyDebug< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a >
2014-02-21 15:37:26 +00:00
< / li >
< li >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.DistanceConstraint.html" > DistanceConstraint< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.GearConstraint.html" > GearConstraint< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.InversePointProxy.html" > InversePointProxy< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.LockConstraint.html" > LockConstraint< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.Material.html" > Material< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.PointProxy.html" > PointProxy< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.PrismaticConstraint.html" > PrismaticConstraint< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.RevoluteConstraint.html" > RevoluteConstraint< / a >
< / li >
< li >
< a href = "Phaser.Physics.P2.Spring.html" > Spring< / a >
2014-02-21 15:37:26 +00:00
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Plugin.html" > Plugin< / a >
< / li >
< li >
< a href = "Phaser.PluginManager.html" > PluginManager< / a >
< / li >
< li >
< a href = "Phaser.Point.html" > Point< / a >
< / li >
< li >
< a href = "Phaser.Pointer.html" > Pointer< / a >
< / li >
2013-11-07 06:10:15 +00:00
< li >
< a href = "Phaser.Polygon.html" > Polygon< / a >
< / li >
2014-03-14 06:36:05 +00:00
< li >
< a href = "Phaser.QuadTree.html" > QuadTree< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.RandomDataGenerator.html" > RandomDataGenerator< / a >
< / li >
< li >
< a href = "Phaser.Rectangle.html" > Rectangle< / a >
< / li >
< li >
< a href = "Phaser.RenderTexture.html" > RenderTexture< / a >
< / li >
< li >
< a href = "Phaser.RequestAnimationFrame.html" > RequestAnimationFrame< / a >
< / li >
2014-03-14 06:36:05 +00:00
< li >
< a href = "Phaser.RetroFont.html" > RetroFont< / a >
< / li >
< li >
< a href = "Phaser.ScaleManager.html" > ScaleManager< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Signal.html" > Signal< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.SinglePad.html" > SinglePad< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Sound.html" > Sound< / a >
< / li >
< li >
< a href = "Phaser.SoundManager.html" > SoundManager< / a >
< / li >
< li >
< a href = "Phaser.Sprite.html" > Sprite< / a >
< / li >
2014-02-18 03:01:51 +00:00
< li >
< a href = "Phaser.SpriteBatch.html" > SpriteBatch< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Stage.html" > Stage< / a >
< / li >
< li >
< a href = "Phaser.State.html" > State< / a >
< / li >
< li >
< a href = "Phaser.StateManager.html" > StateManager< / a >
< / li >
< li >
< a href = "Phaser.Text.html" > Text< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Tile.html" > Tile< / a >
< / li >
< li >
< a href = "Phaser.Tilemap.html" > Tilemap< / a >
< / li >
< li >
< a href = "Phaser.TilemapLayer.html" > TilemapLayer< / a >
< / li >
< li >
< a href = "Phaser.TilemapParser.html" > TilemapParser< / a >
< / li >
< li >
< a href = "Phaser.Tileset.html" > Tileset< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.TileSprite.html" > TileSprite< / a >
< / li >
< li >
< a href = "Phaser.Time.html" > Time< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Timer.html" > Timer< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.TimerEvent.html" > TimerEvent< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Touch.html" > Touch< / a >
< / li >
< li >
< a href = "Phaser.Tween.html" > Tween< / a >
< / li >
< li >
< a href = "Phaser.TweenManager.html" > TweenManager< / a >
< / li >
< li >
< a href = "Phaser.Utils.html" > Utils< / a >
< / li >
< li >
< a href = "Phaser.Utils.Debug.html" > Debug< / a >
< / li >
< li >
< a href = "Phaser.World.html" > World< / a >
< / li >
< li >
< a href = "SignalBinding.html" > SignalBinding< / a >
< / li >
< / ul >
< / li >
< / ul >
< / div >
< / div >
< div class = "row-fluid" >
< div class = "span8" >
< div id = "main" >
< h1 class = "page-title" > Class: Button< / h1 >
< section >
< header >
< h2 >
< span class = "ancestors" > < a href = "Phaser.html" > Phaser< / a > .< / span >
Button
< / h2 >
2013-11-28 15:57:09 +00:00
< div class = "class-description" > < p > Create a new < code > Button< / code > object. A Button is a special type of Sprite that is set-up to handle Pointer events automatically. The four states a Button responds to are:< / p >
< ul >
< li > 'Over' - when the Pointer moves over the Button. This is also commonly known as 'hover'.< / li >
< li > 'Out' - when the Pointer that was previously over the Button moves out of it.< / li >
< li > 'Down' - when the Pointer is pressed down on the Button. I.e. touched on a touch enabled device or clicked with the mouse.< / li >
< li > 'Up' - when the Pointer that was pressed down on the Button is released again.< / li >
< / ul >
< p > You can set a unique texture frame and Sound for any of these states.< / p > < / div >
2013-10-25 15:54:40 +00:00
< / header >
< article >
< div class = "container-overview" >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "Button" > < span class = "type-signature" > < / span > new Button< span class = "signature" > (game, < span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > key< / span > , < span class = "optional" > callback< / span > , < span class = "optional" > callbackContext< / span > , < span class = "optional" > overFrame< / span > , < span class = "optional" > outFrame< / span > , < span class = "optional" > downFrame< / span > , < span class = "optional" > upFrame< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
2014-02-05 06:29:17 +00:00
< th > Default< / th >
2013-10-25 15:54:40 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > game< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
< td class = "description last" > < p > Current game instance.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
0
< / td >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< td class = "description last" > < p > X position of the Button.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
0
< / td >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< td class = "description last" > < p > Y position of the Button.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
< td class = "name" > < code > key< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< td class = "description last" > < p > The image key as defined in the Game.Cache to use as the texture for this Button.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
< td class = "name" > < code > callback< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< td class = "description last" > < p > The function to call when this Button is pressed.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
< td class = "name" > < code > callbackContext< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< td class = "description last" > < p > The context in which the callback will be called (usually 'this').< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
< td class = "name" > < code > overFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in an over state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > outFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in an out state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > downFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-10-25 15:54:40 +00:00
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in a down state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > upFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in an up state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
2013-10-25 15:54:40 +00:00
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-33" > line 33< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< / div >
2014-02-08 07:24:22 +00:00
< h3 class = "subsection-title" > Extends< / h3 >
< ul >
< li > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / li >
< / ul >
2013-10-25 15:54:40 +00:00
< h3 class = "subsection-title" > Members< / h3 >
< dl >
2013-11-07 06:10:15 +00:00
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "angle" > < span class = "type-signature" > < / span > angle< span class = "type-signature" > < / span > < / h4 >
2013-11-07 06:10:15 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Indicates the rotation of the Image, in degrees, from its original orientation. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation.
2014-02-08 07:24:22 +00:00
Values outside this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement player.angle = 450 is the same as player.angle = 90.
2014-02-18 03:01:51 +00:00
If you wish to work in radians instead of degrees use the property Image.rotation instead. Working in radians is also a little faster as it doesn't have to convert the angle.< / p >
2013-11-07 06:10:15 +00:00
< / div >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > angle< / code > < / td >
2013-11-07 06:10:15 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2013-11-07 06:10:15 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > The angle of this Image in degrees.< / p > < / td >
2013-11-07 06:10:15 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-18 03:01:51 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#angle" > Phaser.Image#angle< / a >
< / li > < / dd >
2013-11-07 06:10:15 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-485" > line 485< / a >
2013-11-07 06:10:15 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
2013-10-25 15:54:40 +00:00
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "autoCull" > < span class = "type-signature" > < / span > autoCull< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Should this Image be automatically culled if out of range of the camera?
2014-02-08 07:24:22 +00:00
A culled sprite has its renderable property set to 'false'.
Be advised this is quite an expensive operation, as it has to calculate the bounds of the object every frame, so only enable it if you really need it.< / p >
< / div >
2013-10-25 15:54:40 +00:00
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > autoCull< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2013-11-01 18:16:52 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > A flag indicating if the Image should be automatically camera culled or not.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#autoCull" > Phaser.Image#autoCull< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-96" > line 96< / a >
2014-02-18 03:01:51 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "cameraOffset" > < span class = "type-signature" > < / span > cameraOffset< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > cameraOffset< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Point.html" > Phaser.Point< / a > < / span >
< / td >
< td class = "description last" > < p > If this object is fixedToCamera then this stores the x/y offset that its drawn at, from the top-left of the camera view.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#cameraOffset" > Phaser.Image#cameraOffset< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-106" > line 106< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "deltaX" > < span class = "type-signature" > < readonly> < / span > deltaX< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
< p > Returns the delta x value. The difference between world.x now and in the previous step.< / p >
< / div >
2013-10-25 15:54:40 +00:00
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > deltaX< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > The delta value. Positive if the motion was to the right, negative if to the left.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#deltaX" > Phaser.Image#deltaX< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
2014-02-08 07:24:22 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-509" > line 509< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "deltaY" > < span class = "type-signature" > < readonly> < / span > deltaY< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
< p > Returns the delta y value. The difference between world.y now and in the previous step.< / p >
< / div >
2013-10-25 15:54:40 +00:00
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > deltaY< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > The delta value. Positive if the motion was downwards, negative if upwards.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#deltaY" > Phaser.Image#deltaY< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-526" > line 526< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "deltaZ" > < span class = "type-signature" > < readonly> < / span > deltaZ< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
< p > Returns the delta z value. The difference between rotation now and in the previous step.< / p >
< / div >
2013-10-25 15:54:40 +00:00
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > deltaZ< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > The delta value.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#deltaZ" > Phaser.Image#deltaZ< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-543" > line 543< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "events" > < span class = "type-signature" > < / span > events< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > events< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > < a href = "Phaser.Events.html" > Phaser.Events< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > The Events you can subscribe to that are dispatched when certain things happen on this Image or its components.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#events" > Phaser.Image#events< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-58" > line 58< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "exists" > < span class = "type-signature" > < / span > exists< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2013-11-01 18:16:52 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > exists< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > If exists = false then the Image isn't updated by the core game loop.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
2013-11-01 18:16:52 +00:00
< / dl >
2013-10-25 15:54:40 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#exists" > Phaser.Image#exists< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > true< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-36" > line 36< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "fixedToCamera" > < span class = "type-signature" > < / span > fixedToCamera< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > An Image that is fixed to the camera uses its x/y coordinates as offsets from the top left of the camera. These are stored in Image.cameraOffset.
Note that the cameraOffset values are in addition to any parent in the display list.
So if this Image was in a Group that has x: 200, then this will be added to the cameraOffset.x< / p >
2014-02-08 07:24:22 +00:00
< / div >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > fixedToCamera< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > Set to true to fix this Image to the Camera at its current world coordinates.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
2013-11-01 18:16:52 +00:00
< / dl >
2013-10-25 15:54:40 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#fixedToCamera" > Phaser.Image#fixedToCamera< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-703" > line 703< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "forceOut" > < span class = "type-signature" > < / span > forceOut< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
< p > When the Button is touched / clicked and then released you can force it to enter a state of " out" instead of " up" .< / p >
< / div >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > forceOut< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
2013-11-01 18:16:52 +00:00
< / dl >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< dt class = "tag-default" > Default Value:< / dt >
2014-02-08 07:24:22 +00:00
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-182" > line 182< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "frame" > < span class = "type-signature" > < / span > frame< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2013-11-01 18:16:52 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > frame< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > Gets or sets the current frame index and updates the Texture for display.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
2013-11-01 18:16:52 +00:00
< / dl >
2013-10-25 15:54:40 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#frame" > Phaser.Image#frame< / a >
< / li > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-594" > line 594< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "frameName" > < span class = "type-signature" > < / span > frameName< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2013-11-01 18:16:52 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > frameName< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > string< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > Gets or sets the current frame by name and updates the Texture for display.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
2013-11-01 18:16:52 +00:00
< / tbody >
< / table >
< / dl >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#frameName" > Phaser.Image#frameName< / a >
< / li > < / dd >
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2014-02-08 07:24:22 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-623" > line 623< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< / dl >
2013-10-25 15:54:40 +00:00
2013-11-01 18:16:52 +00:00
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "freezeFrames" > < span class = "type-signature" > < / span > freezeFrames< span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > freezeFrames< / code > < / td >
2013-11-01 18:16:52 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > boolean< / span >
2013-11-01 18:16:52 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > When true the Button will cease to change texture frame on all events (over, out, up, down).< / p > < / td >
2013-11-01 18:16:52 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-175" > line 175< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "game" > < span class = "type-signature" > < / span > game< span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > game< / code > < / td >
2013-11-01 18:16:52 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
2013-11-01 18:16:52 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > A reference to the currently running Game.< / p > < / td >
2013-11-01 18:16:52 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#game" > Phaser.Image#game< / a >
< / li > < / dd >
2013-11-01 18:16:52 +00:00
2014-02-08 07:24:22 +00:00
2013-11-01 18:16:52 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-30" > line 30< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "inCamera" > < span class = "type-signature" > < readonly> < / span > inCamera< span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
2014-02-08 07:24:22 +00:00
< div class = "description" >
< p > Checks if the Image bounds are within the game camera, otherwise false if fully outside of it.< / p >
< / div >
2013-11-01 18:16:52 +00:00
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > inCamera< / code > < / td >
2013-11-01 18:16:52 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > boolean< / span >
2013-11-01 18:16:52 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > True if the Image bounds is within the game camera, even if only partially. Otherwise false if fully outside of it.< / p > < / td >
2013-11-01 18:16:52 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#inCamera" > Phaser.Image#inCamera< / a >
< / li > < / dd >
2013-11-01 18:16:52 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-577" > line 577< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "input" > < span class = "type-signature" > < / span > input< span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > input< / code > < / td >
2013-11-01 18:16:52 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > < a href = "Phaser.InputHandler.html" > Phaser.InputHandler< / a > < / span >
|
< span class = "param-type" > null< / span >
2013-11-01 18:16:52 +00:00
< / td >
2014-02-08 07:24:22 +00:00
< td class = "description last" > < p > The Input Handler for this object. Needs to be enabled with image.inputEnabled = true before you can use it.< / p > < / td >
2013-11-01 18:16:52 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#input" > Phaser.Image#input< / a >
< / li > < / dd >
2013-11-01 18:16:52 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-101" > line 101< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
2014-02-08 07:24:22 +00:00
2013-11-01 18:16:52 +00:00
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "inputEnabled" > < span class = "type-signature" > < / span > inputEnabled< span class = "type-signature" > < / span > < / h4 >
2014-02-05 06:29:17 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-08 07:24:22 +00:00
< p > By default an Image won't process any input events at all. By setting inputEnabled to true the Phaser.InputHandler is
activated for this object and it will then start to process click/touch events and more.< / p >
2014-02-05 06:29:17 +00:00
< / div >
2014-02-08 07:24:22 +00:00
2014-02-05 06:29:17 +00:00
< dl class = "details" >
2014-02-08 07:24:22 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< dl >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< th > Type< / th >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > inputEnabled< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "description last" > < p > Set to true to allow this object to receive input events.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#inputEnabled" > Phaser.Image#inputEnabled< / a >
< / li > < / dd >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-667" > line 667< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
2014-02-05 06:29:17 +00:00
2014-02-08 07:24:22 +00:00
< / dl >
2014-02-05 06:29:17 +00:00
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "inWorld" > < span class = "type-signature" > < readonly> < / span > inWorld< span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-08 07:24:22 +00:00
< p > Checks if the Image bounds are within the game world, otherwise false if fully outside of it.< / p >
2013-11-01 18:16:52 +00:00
< / div >
2014-02-08 07:24:22 +00:00
2013-11-01 18:16:52 +00:00
2014-02-08 07:24:22 +00:00
< dl class = "details" >
2013-11-01 18:16:52 +00:00
2014-02-08 07:24:22 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > inWorld< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "description last" > < p > True if the Image bounds is within the game world, even if only partially. Otherwise false if fully outside of it.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#inWorld" > Phaser.Image#inWorld< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-560" > line 560< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "key" > < span class = "type-signature" > < / span > key< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > key< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > < a href = "Phaser.RenderTexture.html" > Phaser.RenderTexture< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
< span class = "param-type" > PIXI.Texture< / span >
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > This is the image or texture used by the Image during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture, BitmapData or PIXI.Texture.< / p > < / td >
2014-02-08 07:24:22 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#key" > Phaser.Image#key< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-63" > line 63< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "name" > < span class = "type-signature" > < / span > name< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > The user defined name given to this Image.< / p > < / td >
2014-02-08 07:24:22 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#name" > Phaser.Image#name< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-42" > line 42< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onDownSound" > < span class = "type-signature" > < / span > onDownSound< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onDownSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "description last" > < p > The Sound to be played when this Buttons Down state is activated.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > null< / li > < / ul > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-120" > line 120< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onDownSoundMarker" > < span class = "type-signature" > < / span > onDownSoundMarker< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onDownSoundMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > < p > The Sound Marker used in conjunction with the onDownSound.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-144" > line 144< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onInputDown" > < span class = "type-signature" > < / span > onInputDown< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onInputDown< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span >
< / td >
< td class = "description last" > < p > The Signal (or event) dispatched when this Button is in an Down state.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-165" > line 165< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onInputOut" > < span class = "type-signature" > < / span > onInputOut< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onInputOut< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span >
< / td >
< td class = "description last" > < p > The Signal (or event) dispatched when this Button is in an Out state.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-160" > line 160< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onInputOver" > < span class = "type-signature" > < / span > onInputOver< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onInputOver< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span >
< / td >
< td class = "description last" > < p > The Signal (or event) dispatched when this Button is in an Over state.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-155" > line 155< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onInputUp" > < span class = "type-signature" > < / span > onInputUp< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onInputUp< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Signal.html" > Phaser.Signal< / a > < / span >
< / td >
< td class = "description last" > < p > The Signal (or event) dispatched when this Button is in an Up state.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-170" > line 170< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onOutSound" > < span class = "type-signature" > < / span > onOutSound< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onOutSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "description last" > < p > The Sound to be played when this Buttons Out state is activated.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > null< / li > < / ul > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-114" > line 114< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onOutSoundMarker" > < span class = "type-signature" > < / span > onOutSoundMarker< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onOutSoundMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > < p > The Sound Marker used in conjunction with the onOutSound.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-138" > line 138< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onOverSound" > < span class = "type-signature" > < / span > onOverSound< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onOverSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "description last" > < p > The Sound to be played when this Buttons Over state is activated.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > null< / li > < / ul > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-108" > line 108< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onOverSoundMarker" > < span class = "type-signature" > < / span > onOverSoundMarker< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onOverSoundMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > < p > The Sound Marker used in conjunction with the onOverSound.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-132" > line 132< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onUpSound" > < span class = "type-signature" > < / span > onUpSound< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onUpSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "description last" > < p > The Sound to be played when this Buttons Up state is activated.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > null< / li > < / ul > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-126" > line 126< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "onUpSoundMarker" > < span class = "type-signature" > < / span > onUpSoundMarker< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > onUpSoundMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > < p > The Sound Marker used in conjunction with the onUpSound.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-150" > line 150< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "renderOrderID" > < span class = "type-signature" > < readonly> < / span > renderOrderID< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > renderOrderID< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The render order ID, reset every frame.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#renderOrderID" > Phaser.Image#renderOrderID< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-652" > line 652< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "smoothed" > < span class = "type-signature" > < / span > smoothed< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Enable or disable texture smoothing for this Image. Only works for bitmap/image textures. Smoothing is enabled by default.< / p >
< / div >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > smoothed< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "description last" > < p > Set to true to smooth the texture of this Image, or false to disable smoothing (great for pixel art)< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#smoothed" > Phaser.Image#smoothed< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-734" > line 734< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "type" > < span class = "type-signature" > < / span > type< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The Phaser Object Type.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-46" > line 46< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "world" > < span class = "type-signature" > < / span > world< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > world< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Point.html" > Phaser.Point< / a > < / span >
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > The world coordinates of this Image. This differs from the x/y coordinates which are relative to the Images container.< / p > < / td >
2014-02-08 07:24:22 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#world" > Phaser.Image#world< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-86" > line 86< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "z" > < span class = "type-signature" > < / span > z< span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > z< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The z-depth value of this object within its Group (remember the World is a Group as well). No two objects in a Group can have the same z value.< / p > < / td >
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#z" > Phaser.Image#z< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-53" > line 53< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< / dl >
< h3 class = "subsection-title" > Methods< / h3 >
< dl >
< dt >
< h4 class = "name" id = "bringToTop" > < span class = "type-signature" > < / span > bringToTop< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.Image.html" > Phaser.Image< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Brings the Image to the top of the display list it is a child of. Images that are members of a Phaser.Group are only
2014-02-08 07:24:22 +00:00
bought to the top of that Group, not the entire display list.< / p >
< / div >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#bringToTop" > Phaser.Image#bringToTop< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-466" > line 466< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > This instance.< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
< / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "clearFrames" > < span class = "type-signature" > < / span > clearFrames< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Clears all of the frames set on this Button.< / p >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-206" > line 206< / a >
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "crop" > < span class = "type-signature" > < / span > crop< span class = "signature" > (rect)< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Crop allows you to crop the texture used to display this Image.
Cropping takes place from the top-left of the Image and can be modified in real-time by providing an updated rectangle object.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > rect< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "description last" > < p > The Rectangle to crop the Image to. Pass null or no parameters to clear a previously set crop rectangle.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#crop" > Phaser.Image#crop< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-284" > line 284< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-03-14 06:36:05 +00:00
< h4 class = "name" id = "destroy" > < span class = "type-signature" > < / span > destroy< span class = "signature" > (< span class = "optional" > destroyChildren< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2014-02-08 07:24:22 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Destroys the Image. This removes it from its parent group, destroys the input, event and animation handlers if present
2014-02-08 07:24:22 +00:00
and nulls its reference to game, freeing it up for garbage collection.< / p >
< / div >
2014-03-14 06:36:05 +00:00
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > destroyChildren< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
true
< / td >
< td class = "description last" > < p > Should every child of this object have its destroy method called?< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-02-08 07:24:22 +00:00
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#destroy" > Phaser.Image#destroy< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-380" > line 380< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "kill" > < span class = "type-signature" > < / span > kill< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.Image.html" > Phaser.Image< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Kills a Image. A killed Image has its alive, exists and visible properties all set to false.
It will dispatch the onKilled event, you can listen to Image.events.onKilled for the signal.
Note that killing a Image is a way for you to quickly recycle it in a Image pool, it doesn't free it up from memory.
If you don't need this Image any more you should call Image.destroy instead.< / p >
2014-02-08 07:24:22 +00:00
< / div >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#kill" > Phaser.Image#kill< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-355" > line 355< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > This instance.< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
< / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "loadTexture" > < span class = "type-signature" > < / span > loadTexture< span class = "signature" > (key, frame)< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Changes the Texture the Image is using entirely. The old texture is removed and the new one is referenced or fetched from the Cache.
2014-02-08 07:24:22 +00:00
This causes a WebGL texture update, so use sparingly or in low-intensity portions of your game.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > key< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > < a href = "Phaser.RenderTexture.html" > Phaser.RenderTexture< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
< span class = "param-type" > PIXI.Texture< / span >
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > This is the image or texture used by the Image during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture, BitmapData or PIXI.Texture.< / p > < / td >
2014-02-08 07:24:22 +00:00
< / tr >
< tr >
< td class = "name" > < code > frame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > If this Image is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.< / p > < / td >
2014-02-08 07:24:22 +00:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#loadTexture" > Phaser.Image#loadTexture< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-207" > line 207< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-21 15:37:26 +00:00
< h4 class = "name" id = "onInputDownHandler" > < span class = "type-signature" > < protected> < / span > onInputDownHandler< span class = "signature" > (sprite, pointer)< / span > < span class = "type-signature" > < / span > < / h4 >
2014-02-08 07:24:22 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Internal function that handles input events.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > sprite< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Button.html" > Phaser.Button< / a > < / span >
< / td >
< td class = "description last" > < p > The Button that the event occured on.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > pointer< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Pointer.html" > Phaser.Pointer< / a > < / span >
< / td >
< td class = "description last" > < p > The Pointer that activated the Button.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-21 15:37:26 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-502" > line 502< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-21 15:37:26 +00:00
< h4 class = "name" id = "onInputOutHandler" > < span class = "type-signature" > < protected> < / span > onInputOutHandler< span class = "signature" > (sprite, pointer)< / span > < span class = "type-signature" > < / span > < / h4 >
2014-02-08 07:24:22 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Internal function that handles input events.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
2013-11-01 18:16:52 +00:00
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > sprite< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Button.html" > Phaser.Button< / a > < / span >
< / td >
< td class = "description last" > < p > The Button that the event occured on.< / p > < / td >
< / tr >
2013-11-01 18:16:52 +00:00
< tr >
< td class = "name" > < code > pointer< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Pointer.html" > Phaser.Pointer< / a > < / span >
< / td >
< td class = "description last" > < p > The Pointer that activated the Button.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-476" > line 476< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "onInputOverHandler" > < span class = "type-signature" > < protected> < / span > onInputOverHandler< span class = "signature" > (sprite, pointer)< / span > < span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Internal function that handles input events.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > sprite< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Button.html" > Phaser.Button< / a > < / span >
< / td >
< td class = "description last" > < p > The Button that the event occured on.< / p > < / td >
< / tr >
2013-11-01 18:16:52 +00:00
< tr >
< td class = "name" > < code > pointer< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Pointer.html" > Phaser.Pointer< / a > < / span >
< / td >
< td class = "description last" > < p > The Pointer that activated the Button.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-21 15:37:26 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-450" > line 450< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-21 15:37:26 +00:00
< h4 class = "name" id = "onInputUpHandler" > < span class = "type-signature" > < protected> < / span > onInputUpHandler< span class = "signature" > (sprite, pointer)< / span > < span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Internal function that handles input events.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > sprite< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Button.html" > Phaser.Button< / a > < / span >
< / td >
< td class = "description last" > < p > The Button that the event occured on.< / p > < / td >
< / tr >
2013-11-01 18:16:52 +00:00
< tr >
< td class = "name" > < code > pointer< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Pointer.html" > Phaser.Pointer< / a > < / span >
< / td >
< td class = "description last" > < p > The Pointer that activated the Button.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-528" > line 528< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-08 07:24:22 +00:00
< h4 class = "name" id = "postUpdate" > < span class = "type-signature" > < / span > postUpdate< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-08 07:24:22 +00:00
< p > Internal function called by the World postUpdate cycle.< / p >
< / div >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#postUpdate" > Phaser.Image#postUpdate< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-179" > line 179< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "preUpdate" > < span class = "type-signature" > < / span > preUpdate< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Automatically called by World.preUpdate.< / p >
< / div >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#preUpdate" > Phaser.Image#preUpdate< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-128" > line 128< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "reset" > < span class = "type-signature" > < / span > reset< span class = "signature" > (x, y)< / span > < span class = "type-signature" > → {< a href = "Phaser.Image.html" > Phaser.Image< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Resets the Image. This places the Image at the given x/y world coordinates and then sets alive, exists, visible and renderable all to true.< / p >
2013-11-01 18:16:52 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2014-02-05 06:29:17 +00:00
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > x< / code > < / td >
2014-02-05 06:29:17 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2014-02-05 06:29:17 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > The x coordinate (in world space) to position the Image at.< / p > < / td >
2014-02-05 06:29:17 +00:00
< / tr >
2013-11-01 18:16:52 +00:00
< tr >
2014-02-08 07:24:22 +00:00
< td class = "name" > < code > y< / code > < / td >
2013-11-01 18:16:52 +00:00
< td class = "type" >
2014-02-08 07:24:22 +00:00
< span class = "param-type" > number< / span >
2013-11-01 18:16:52 +00:00
< / td >
2014-02-18 03:01:51 +00:00
< td class = "description last" > < p > The y coordinate (in world space) to position the Image at.< / p > < / td >
2013-11-01 18:16:52 +00:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
2014-02-08 07:24:22 +00:00
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#reset" > Phaser.Image#reset< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-443" > line 443< / a >
2014-02-08 07:24:22 +00:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > This instance.< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
< / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "revive" > < span class = "type-signature" > < / span > revive< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.Image.html" > Phaser.Image< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-18 03:01:51 +00:00
< p > Brings a 'dead' Image back to life, optionally giving it the health value specified.
A resurrected Image has its alive, exists and visible properties all set to true.
It will dispatch the onRevived event, you can listen to Image.events.onRevived for the signal.< / p >
2014-02-08 07:24:22 +00:00
< / div >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#revive" > Phaser.Image#revive< / a >
< / li > < / dd >
2013-11-01 18:16:52 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-331" > line 331< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
2014-02-08 07:24:22 +00:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > This instance.< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
< / dd >
< / dl >
2013-11-01 18:16:52 +00:00
< / dd >
< dt >
< h4 class = "name" id = "setDownSound" > < span class = "type-signature" > < / span > setDownSound< span class = "signature" > (sound, < span class = "optional" > marker< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > The Sound to be played when a Pointer presses down on this Button.< / p >
2013-11-01 18:16:52 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > sound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The Sound that will be played.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > marker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > A Sound Marker that will be used in the playback.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-402" > line 402< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "setFrames" > < span class = "type-signature" > < / span > setFrames< span class = "signature" > (< span class = "optional" > overFrame< / span > , < span class = "optional" > outFrame< / span > , < span class = "optional" > downFrame< / span > , < span class = "optional" > upFrame< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2013-11-01 18:16:52 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > Used to manually set the frames that will be used for the different states of the Button.< / p >
2013-11-01 18:16:52 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > overFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in an over state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > outFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in an out state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > downFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in a down state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > upFrame< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > This is the frame or frameName that will be set when this button is in an up state. Give either a number to use a frame ID or a string for a frame name.< / p > < / td >
< / tr >
2013-11-01 18:16:52 +00:00
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-227" > line 227< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "setOutSound" > < span class = "type-signature" > < / span > setOutSound< span class = "signature" > (sound, < span class = "optional" > marker< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > The Sound to be played when a Pointer moves out of this Button.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > sound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The Sound that will be played.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > marker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > A Sound Marker that will be used in the playback.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-378" > line 378< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "setOverSound" > < span class = "type-signature" > < / span > setOverSound< span class = "signature" > (sound, < span class = "optional" > marker< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > The Sound to be played when a Pointer moves over this Button.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > sound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The Sound that will be played.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > marker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > A Sound Marker that will be used in the playback.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-354" > line 354< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "setSounds" > < span class = "type-signature" > < / span > setSounds< span class = "signature" > (< span class = "optional" > overSound< / span > , < span class = "optional" > overMarker< / span > , < span class = "optional" > downSound< / span > , < span class = "optional" > downMarker< / span > , < span class = "optional" > outSound< / span > , < span class = "optional" > outMarker< / span > , < span class = "optional" > upSound< / span > , < span class = "optional" > upMarker< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Sets the sounds to be played whenever this Button is interacted with. Sounds can be either full Sound objects, or markers pointing to a section of a Sound object.
The most common forms of sounds are 'hover' effects and 'click' effects, which is why the order of the parameters is overSound then downSound.
Call this function with no parameters at all to reset all sounds on this Button.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > overSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Over Button Sound.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > overMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Over Button Sound Marker.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > downSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Down Button Sound.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > downMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Down Button Sound Marker.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > outSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2013-11-01 18:16:52 +00:00
< td class = "description last" > < p > Out Button Sound.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > outMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Out Button Sound Marker.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > upSound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Up Button Sound.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > upMarker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > Up Button Sound Marker.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-330" > line 330< / a >
2014-02-05 06:29:17 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "setState" > < span class = "type-signature" > < protected> < / span > setState< span class = "signature" > (newState)< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Internal function that handles Button state changes.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > newState< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The new State of the Button.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-579" > line 579< / a >
2013-11-01 18:16:52 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "setUpSound" > < span class = "type-signature" > < / span > setUpSound< span class = "signature" > (sound, < span class = "optional" > marker< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > The Sound to be played when a Pointer has pressed down and is released from this Button.< / p >
2013-11-01 18:16:52 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > sound< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sound.html" > Phaser.Sound< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The Sound that will be played.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > marker< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > A Sound Marker that will be used in the playback.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-08 07:24:22 +00:00
< a href = "Button.js.html" > gameobjects/Button.js< / a > , < a href = "Button.js.html#sunlight-1-line-426" > line 426< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
2014-02-18 03:01:51 +00:00
< / dd >
< dt >
< h4 class = "name" id = "update" > < span class = "type-signature" > < / span > update< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Override and use this function in your own custom objects to handle any update requirements you may have.< / p >
< / div >
< dl class = "details" >
< dt class = "inherited-from" > Inherited From:< / dt >
< dd class = "inherited-from" > < ul class = "dummy" > < li >
< a href = "Phaser.Image.html#update" > Phaser.Image#update< / a >
< / li > < / dd >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-03-14 06:36:05 +00:00
< a href = "Image.js.html" > gameobjects/Image.js< / a > , < a href = "Image.js.html#sunlight-1-line-169" > line 169< / a >
2014-02-18 03:01:51 +00:00
< / li > < / ul > < / dd >
< / dl >
2013-10-25 15:54:40 +00:00
< / dd >
< / dl >
< / article >
< / section >
< / div >
< div class = "clearfix" > < / div >
< footer >
< span class = "copyright" >
2014-02-05 06:29:17 +00:00
Phaser Copyright © 2012-2014 Photon Storm Ltd.
2013-10-25 15:54:40 +00:00
< / span >
< br / >
< span class = "jsdoc-message" >
Documentation generated by < a href = "https://github.com/jsdoc3/jsdoc" > JSDoc 3.3.0-dev< / a >
2014-03-24 12:41:45 +00:00
on Mon Mar 24 2014 12:38:40 GMT-0000 (GMT) using the < a href = "https://github.com/terryweiss/docstrap" > DocStrap template< / a > .
2013-10-25 15:54:40 +00:00
< / span >
< / footer >
< / div >
< div class = "span3" >
< div id = "toc" > < / div >
< / div >
< br clear = "both" >
< / div >
< / div >
< script src = "scripts/sunlight.js" > < / script >
< script src = "scripts/sunlight.javascript.js" > < / script >
< script src = "scripts/sunlight-plugin.doclinks.js" > < / script >
< script src = "scripts/sunlight-plugin.linenumbers.js" > < / script >
< script src = "scripts/sunlight-plugin.menu.js" > < / script >
< script src = "scripts/jquery.min.js" > < / script >
< script src = "scripts/jquery.scrollTo.js" > < / script >
< script src = "scripts/jquery.localScroll.js" > < / script >
< script src = "scripts/bootstrap-dropdown.js" > < / script >
< script src = "scripts/toc.js" > < / script >
< script > Sunlight . highlightAll ( { lineNumbers : true , showMenu : true , enableDoclinks : true } ) ; < / script >
< script >
$( function () {
$( "#toc" ).toc( {
2014-03-14 06:36:05 +00:00
anchorName : function(i, heading, prefix) {
return $(heading).attr("id") || ( prefix + i );
},
2013-10-25 15:54:40 +00:00
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
< / script >
< / body >
< / html >