Button
Extends:
Draws an interactive button in the display
Constructor Summary
Public Constructor | ||
public |
constructor(app: object, parentGroup: object, callback: function, callbackContext: object, width: number, height: number, label: string, keyCode: number | null, outlineKey: string, fillKey: string, labelFont: string) |
Member Summary
Public Members | ||
public |
callback: * |
|
public |
|
|
public |
fillSprite: * |
|
public |
fillTween: * |
|
public |
inputKey: * |
|
public |
keyCode: * |
|
public |
label: * |
|
public |
|
|
public |
submitSignal: * |
|
public |
tweens: * |
Method Summary
Public Methods | ||
public |
destroy() |
|
public |
fill() |
|
public |
handlePointerOutput(thisPointer: *) |
Public Constructors
public constructor(app: object, parentGroup: object, callback: function, callbackContext: object, width: number, height: number, label: string, keyCode: number | null, outlineKey: string, fillKey: string, labelFont: string) source
Params:
Name | Type | Attribute | Description |
app | object | The container App |
|
parentGroup | object |
|
Parent Group of this Button |
callback | function |
|
Bind a callback function to this Button |
callbackContext | object |
|
Context of your optional bound callback function |
width | number |
|
Display width in pixels |
height | number |
|
Display height in pixels |
label | string |
|
Text displayed inside the Button |
keyCode | number | null |
|
Bind a JS keyCode to this Button |
outlineKey | string |
|
Name of a registered outline Sprite |
fillKey | string |
|
Name of a registered fill Sprite |
labelFont | string |
|
Name of a registered Bitmap Font |