Class in reactor_sprites.js
Sprite_Gauge
46 public functions in 6 groups · show internal (_) functions
Familiar territory. Sprite_Gauge keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 6
| initialize() | Sets up a new instance. |
| initMembers() | Initializes the members. |
| createBitmap() | Creates the bitmap. |
| setup() | Setup. |
| setupLabelFont() | Setup label font. |
| setupValueFont() | Setup value font. |
Getting Information 9
| textHeight() | Text height. |
| valueFontFace() | Value font face. |
| valueFontSize() | Value font size. |
| currentValue() | The current value. |
| currentMaxValue() | The current max value. |
| valueColor() | Value color. |
| valueOutlineColor() | Value outline color. |
| valueOutlineWidth() | Value outline width. |
| measureLabelWidth() | Measure label width. |
Checks (True / False) 1
| isValid() | Whether it is valid. |
Actions 1
| destroy() | Destroy. |
Updating & Drawing 10
| update() | Update. |
| updateBitmap() | Updates the bitmap each frame. |
| updateTargetValue() | Updates the target value each frame. |
| updateGaugeAnimation() | Updates the gauge animation each frame. |
| updateFlashing() | Updates the flashing each frame. |
| redraw() | Redraw. |
| drawGauge() | Draws the gauge. |
| drawGaugeRect() | Draws the gauge rect. |
| drawLabel() | Draws the label. |
| drawValue() | Draws the value. |
Other 19
| bitmapWidth() | Bitmap width. |
| bitmapHeight() | Bitmap height. |
| gaugeHeight() | Gauge height. |
| gaugeX() | Gauge x. |
| labelY() | Label y. |
| labelFontFace() | Label font face. |
| labelFontSize() | Label font size. |
| smoothness() | Smoothness. |
| flashingColor1() | Flashing color1. |
| flashingColor2() | Flashing color2. |
| label() | Label. |
| gaugeBackColor() | Gauge back color. |
| gaugeColor1() | Gauge color1. |
| gaugeColor2() | Gauge color2. |
| labelColor() | Label color. |
| labelOutlineColor() | Label outline color. |
| labelOutlineWidth() | Label outline width. |
| gaugeRate() | Gauge rate. |
| labelOpacity() | Label opacity. |
Setup & Creation
initialize
method sourceSprite_Gauge.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceSprite_Gauge.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
createBitmap
method sourceSprite_Gauge.prototype.createBitmap()
Creates the bitmap. (Same as the RPG Maker MZ method of this name.)
setup
method sourceSprite_Gauge.prototype.setup(battler, statusType)
Setup. (Same as the RPG Maker MZ method of this name.)
setupLabelFont
method sourceSprite_Gauge.prototype.setupLabelFont()
Setup label font. (Same as the RPG Maker MZ method of this name.)
setupValueFont
method sourceSprite_Gauge.prototype.setupValueFont()
Setup value font. (Same as the RPG Maker MZ method of this name.)
Getting Information
textHeight
method sourceSprite_Gauge.prototype.textHeight()
Text height. (Same as the RPG Maker MZ method of this name.)
valueFontFace
method sourceSprite_Gauge.prototype.valueFontFace()
Value font face. (Same as the RPG Maker MZ method of this name.)
valueFontSize
method sourceSprite_Gauge.prototype.valueFontSize()
Value font size. (Same as the RPG Maker MZ method of this name.)
currentValue
method sourceSprite_Gauge.prototype.currentValue()
The current value. (Same as the RPG Maker MZ method of this name.)
currentMaxValue
method sourceSprite_Gauge.prototype.currentMaxValue()
The current max value. (Same as the RPG Maker MZ method of this name.)
valueColor
method sourceSprite_Gauge.prototype.valueColor()
Value color. (Same as the RPG Maker MZ method of this name.)
valueOutlineColor
method sourceSprite_Gauge.prototype.valueOutlineColor()
Value outline color. (Same as the RPG Maker MZ method of this name.)
valueOutlineWidth
method sourceSprite_Gauge.prototype.valueOutlineWidth()
Value outline width. (Same as the RPG Maker MZ method of this name.)
measureLabelWidth
method sourceSprite_Gauge.prototype.measureLabelWidth()
Measure label width. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isValid
method sourceSprite_Gauge.prototype.isValid()
Whether it is valid. (Same as the RPG Maker MZ method of this name.)
Actions
destroy
method sourceSprite_Gauge.prototype.destroy(options)
Destroy. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceSprite_Gauge.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateBitmap
method sourceSprite_Gauge.prototype.updateBitmap()
Updates the bitmap each frame. (Same as the RPG Maker MZ method of this name.)
updateTargetValue
method sourceSprite_Gauge.prototype.updateTargetValue(value, maxValue)
Updates the target value each frame. (Same as the RPG Maker MZ method of this name.)
updateGaugeAnimation
method sourceSprite_Gauge.prototype.updateGaugeAnimation()
Updates the gauge animation each frame. (Same as the RPG Maker MZ method of this name.)
updateFlashing
method sourceSprite_Gauge.prototype.updateFlashing()
Updates the flashing each frame. (Same as the RPG Maker MZ method of this name.)
redraw
method sourceSprite_Gauge.prototype.redraw()
Redraw. (Same as the RPG Maker MZ method of this name.)
drawGauge
method sourceSprite_Gauge.prototype.drawGauge()
Draws the gauge. (Same as the RPG Maker MZ method of this name.)
drawGaugeRect
method sourceSprite_Gauge.prototype.drawGaugeRect(x, y, width, height)
Draws the gauge rect. (Same as the RPG Maker MZ method of this name.)
drawLabel
method sourceSprite_Gauge.prototype.drawLabel()
Draws the label. (Same as the RPG Maker MZ method of this name.)
drawValue
method sourceSprite_Gauge.prototype.drawValue()
Draws the value. (Same as the RPG Maker MZ method of this name.)
Other
bitmapWidth
method sourceSprite_Gauge.prototype.bitmapWidth()
Bitmap width. (Same as the RPG Maker MZ method of this name.)
bitmapHeight
method sourceSprite_Gauge.prototype.bitmapHeight()
Bitmap height. (Same as the RPG Maker MZ method of this name.)
gaugeHeight
method sourceSprite_Gauge.prototype.gaugeHeight()
Gauge height. (Same as the RPG Maker MZ method of this name.)
gaugeX
method sourceSprite_Gauge.prototype.gaugeX()
Gauge x. (Same as the RPG Maker MZ method of this name.)
labelY
method sourceSprite_Gauge.prototype.labelY()
Label y. (Same as the RPG Maker MZ method of this name.)
labelFontFace
method sourceSprite_Gauge.prototype.labelFontFace()
Label font face. (Same as the RPG Maker MZ method of this name.)
labelFontSize
method sourceSprite_Gauge.prototype.labelFontSize()
Label font size. (Same as the RPG Maker MZ method of this name.)
smoothness
method sourceSprite_Gauge.prototype.smoothness()
Smoothness. (Same as the RPG Maker MZ method of this name.)
flashingColor1
method sourceSprite_Gauge.prototype.flashingColor1()
Flashing color1. (Same as the RPG Maker MZ method of this name.)
flashingColor2
method sourceSprite_Gauge.prototype.flashingColor2()
Flashing color2. (Same as the RPG Maker MZ method of this name.)
label
method sourceSprite_Gauge.prototype.label()
Label. (Same as the RPG Maker MZ method of this name.)
gaugeBackColor
method sourceSprite_Gauge.prototype.gaugeBackColor()
Gauge back color. (Same as the RPG Maker MZ method of this name.)
gaugeColor1
method sourceSprite_Gauge.prototype.gaugeColor1()
Gauge color1. (Same as the RPG Maker MZ method of this name.)
gaugeColor2
method sourceSprite_Gauge.prototype.gaugeColor2()
Gauge color2. (Same as the RPG Maker MZ method of this name.)
labelColor
method sourceSprite_Gauge.prototype.labelColor()
Label color. (Same as the RPG Maker MZ method of this name.)
labelOutlineColor
method sourceSprite_Gauge.prototype.labelOutlineColor()
Label outline color. (Same as the RPG Maker MZ method of this name.)
labelOutlineWidth
method sourceSprite_Gauge.prototype.labelOutlineWidth()
Label outline width. (Same as the RPG Maker MZ method of this name.)
gaugeRate
method sourceSprite_Gauge.prototype.gaugeRate()
Gauge rate. (Same as the RPG Maker MZ method of this name.)
labelOpacity
method sourceSprite_Gauge.prototype.labelOpacity()
Label opacity. (Same as the RPG Maker MZ method of this name.)