The sprite for displaying a button.
Name | Type | Description |
---|---|---|
_touching |
Boolean | |
_coldFrame |
Rectangle | |
_hotFrame |
Rectangle | |
_clickHandler |
function |
checks if we need to speed up custom blendmodes
Name | Type | Description |
---|---|---|
renderer |
Calls the handler method bound to the button.
Name | Type | Description |
---|---|---|
height |
function |
Changes the x coordinate of the screen to local sprite x coordinate.
Name | Type | Description |
---|---|---|
x |
Number |
Changes the y coordinate of the screen to local sprite y coordinate.
Name | Type | Description |
---|---|---|
y |
Number |
オブジェクト生成時の初期化。
Returns true if the sprite button is currently active.
Returns true is the button is presently being touched.
Processes weather or not the button is being touched and calls the handler bound to the button.
Creates a new handler and binds it to the button.
Name | Type | Description |
---|---|---|
height |
function |
Set the button sprites cold frame.
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number | |
width |
Number | |
height |
Number |
Set the button sprites hot frame
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number | |
width |
Number | |
height |
Number |
Update method, which checks if the sprite is being touched and updates the current frame.
Documentation generated by JSDoc 3.5.5