Gets the height of the bitmap
Returns:
| Type | Description |
|---|
| number | The bitmap height |
Gets the width of the bitmap
Returns:
| Type | Description |
|---|
| number | The bitmap width |
Creates a bitmap for the sprite
Get the gauge's max value
Returns:
| Type | Description |
|---|
| number | The max value of the gauge |
Get the gauge's current value
Returns:
| Type | Description |
|---|
| number | The current value of the gauge |
Destroys the sprite
Draws the gauge
drawGaugeRect(x, y, width, height)
Draws the gauge by x/y/width/height
| Name | Type | Description |
|---|
x | number | The x coordinate of the gauge |
y | number | The y coordinate of the gauge |
width | number | The width of the gauge |
height | number | The height of the gauge |
Draws the label
Draws the gauge value
Get the color 1 flash
Returns:
| Type | Description |
|---|
| Array | An array representing a blend color |
Get the color 2 flash
Returns:
| Type | Description |
|---|
| Array | An array representing a blend color |
Get the gauge's back color
Returns:
| Type | Description |
|---|
| string | The color of the back of the gauge |
Get the gauge's color 1
Returns:
| Type | Description |
|---|
| string | The color 1 of the gauge |
Get the gauge's color 2
Returns:
| Type | Description |
|---|
| string | The color 2 of the gauge |
Gets the height of the gauge
Returns:
| Type | Description |
|---|
| number | The gauge height |
Gets the gauge rate
Returns:
| Type | Description |
|---|
| number | x - The rate of the gauge (how much is filled) |
Gets X coordinate of the gauge
Returns:
| Type | Description |
|---|
| number | The X coordinate of the gauge |
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)
Initialize sprite variables
Initializes the sprite
| Name | Type | Description |
|---|
bitmap | Bitmap | The bitmap of the sprite |
Check if the gauge is valid
Returns:
| Type | Description |
|---|
| boolean | True if the gauge is valid |
Get the gauge's label
Returns:
| Type | Description |
|---|
| string | The label |
Get the gauge label's color
Returns:
| Type | Description |
|---|
| string | The color of the label |
Gets the font face for the label
Returns:
| Type | Description |
|---|
| string | The font face |
Gets the font size for the label
Returns:
| Type | Description |
|---|
| number | The font size |
Gets the opacity of the label
Returns:
| Type | Description |
|---|
| number | The opacity |
labelOutlineColor()string
Get the gauge label outline color
Returns:
| Type | Description |
|---|
| string | The color of the label outline |
labelOutlineWidth()number
Get the gauge label outline width
Returns:
| Type | Description |
|---|
| number | The width of the label outline |
Gets the Y coordinate of the gauge label
Returns:
| Type | Description |
|---|
| number | The Y coordinate |
measureLabelWidth()number
Gets the width of the label
- Since:
Returns:
| Type | Description |
|---|
| number | The width |
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 |
Redraws the gauge
Sets the blend color for the sprite
| Name | Type | Description |
|---|
color | array | The blend color [r, g, b, a] |
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 hue rotation value
| Name | Type | Description |
|---|
hue | number | The hue value (-360, 360) |
setup(battler, statusType)
Sets the sprite up
| Name | Type | Description |
|---|
battler | Game_Battler | The battler object to track |
statusType | string | The type of stat to show in the gauge |
Sets up the label's font
Sets up the value font
Removes the "hidden" state of the sprite, making it visible
Get the smoothness of the effect
Returns:
| Type | Description |
|---|
| number | The smoothness of the effect |
Gets the text height
- Since:
Returns:
| Type | Description |
|---|
| number | The text height |
Updates the sprite for each frame
Updates the sprite's bitmap
Updates the gauge flash effect
Updates the gauge animation effect
updateTargetValue(value, maxValue)
Updates for the target value of the gauge
| Name | Type | Description |
|---|
value | number | The current value of the gauge |
maxValue | number | The max value of the gauge |
Updates the visibility status of the sprite
Get the color for the value based on type
Returns:
| Type | Description |
|---|
| string | The color of the value |
Gets the font face for the value
Returns:
| Type | Description |
|---|
| string | The font face |
Gets the font size for the value
Returns:
| Type | Description |
|---|
| number | The font size |
valueOutlineColor()string
Get the color for the value outline
Returns:
| Type | Description |
|---|
| string | The color of the outline |
valueOutlineWidth()number
Get the width of the value outline
Returns:
| Type | Description |
|---|
| number | The width of the outline |