- Get the height of a block 
 - Returns:| Type | Description | 
|---|
 | number | The block height |  
 
- Get the width of a block 
 - Returns:| Type | Description | 
|---|
 | number | The block width |  
 
- Gets button data 
 - Returns:| Type | Description | 
|---|
 | Object | An object with button x and width data for the button type |  
 
- Check if the bitmap is a valid MZ button bitmap 
 
- Destroys the sprite 
 
- Gets the blend color for the sprite 
 - Returns:| Type | Description | 
|---|
 | array | The blend color [r, g, b, a] |  
 
- Gets the color tone for the sprite 
 - Returns:| Type | Description | 
|---|
 | array | The color tone [r, g, b, gray] |  
 
- Makes the sprite "hidden" (not visible) 
 
- Check if the touch is within the sprite | Name | Type | Description | 
|---|
 | x | number | The x coordinate of the touch |  | y | number | The y coordinate of the touch |  
 
 - Returns:| Type | Description | 
|---|
 | boolean | True if the x and y coordinates are inside the sprite |  
 
- Initializes the sprite | Name | Type | Description | 
|---|
 | bitmap | Bitmap | The bitmap of the sprite |  
 
 
- Check if the sprite is being touched 
 - Returns:| Type | Description | 
|---|
 | boolean | True if the sprite is touched |  
 
- Check if the sprite is clickable 
 - Returns:| Type | Description | 
|---|
 | boolean | True if the sprite is clickable |  
 
- Check if the sprite is pressed 
 - Returns:| Type | Description | 
|---|
 | boolean | True if the sprite is pressed |  
 
- Loads the button bitmap image 
 
- Sets the x and y coordiantes of the sprite | Name | Type | Description | 
|---|
 | x | number | The x coordinate of the sprite |  | y | number | The y coordinate of the sprite |  
 
 
- Handling for when the sprite is clicked 
 
- Handling for when the mouse enters the sprite 
 
- Handling for when the mouse exits the sprite 
 
- Handling for when the sprite is pressed 
 
- Processing for touches 
 
- Sets the blend color for the sprite | Name | Type | Description | 
|---|
 | color | array | The blend color [r, g, b, a] |  
 
 
- Sets the handler to be called when the button is clicked | Name | Type | Description | 
|---|
 | method | function | The function to call when clicked |  
 
 
- Sets the button's cold frame (not pressed) 
 
- Sets the color tone for the sprite | Name | Type | Description | 
|---|
 | tone | array | The color tone [r, g, b, gray] |  
 
 
- Sets the rectagle of the bitmap that the sprite displays | Name | Type | Description | 
|---|
 | x | number | The x coordinate of the frame |  | y | number | The y coordinate of the frame |  | width | number | The width of the frame |  | height | number | The height of the frame |  
 
 
- Sets the button's hot frame (pressed) 
 
- Sets the hue rotation value | Name | Type | Description | 
|---|
 | hue | number | The hue value (-360, 360) |  
 
 
- Sets up the button's frames 
 
- Removes the "hidden" state of the sprite, making it visible 
 
- Updates the sprite for each frame 
 
- Update the button's frame 
 
- Update the button's opacity 
 
- Updates the visibility status of the sprite