Class in reactor_sprites.js

Sprite_Gauge

46 functions in 6 groups · hide internal

The main menu, drawn by Scenes and Windows.

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 source
Sprite_Gauge.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

initMembers

method source
Sprite_Gauge.prototype.initMembers()

Initializes the members. (Same as the RPG Maker MZ method of this name.)

createBitmap

method source
Sprite_Gauge.prototype.createBitmap()

Creates the bitmap. (Same as the RPG Maker MZ method of this name.)

setup

method source
Sprite_Gauge.prototype.setup(battler, statusType)

Setup. (Same as the RPG Maker MZ method of this name.)

setupLabelFont

method source
Sprite_Gauge.prototype.setupLabelFont()

Setup label font. (Same as the RPG Maker MZ method of this name.)

setupValueFont

method source
Sprite_Gauge.prototype.setupValueFont()

Setup value font. (Same as the RPG Maker MZ method of this name.)

Getting Information

textHeight

method source
Sprite_Gauge.prototype.textHeight()

Text height. (Same as the RPG Maker MZ method of this name.)

valueFontFace

method source
Sprite_Gauge.prototype.valueFontFace()

Value font face. (Same as the RPG Maker MZ method of this name.)

valueFontSize

method source
Sprite_Gauge.prototype.valueFontSize()

Value font size. (Same as the RPG Maker MZ method of this name.)

currentValue

method source
Sprite_Gauge.prototype.currentValue()

The current value. (Same as the RPG Maker MZ method of this name.)

currentMaxValue

method source
Sprite_Gauge.prototype.currentMaxValue()

The current max value. (Same as the RPG Maker MZ method of this name.)

valueColor

method source
Sprite_Gauge.prototype.valueColor()

Value color. (Same as the RPG Maker MZ method of this name.)

valueOutlineColor

method source
Sprite_Gauge.prototype.valueOutlineColor()

Value outline color. (Same as the RPG Maker MZ method of this name.)

valueOutlineWidth

method source
Sprite_Gauge.prototype.valueOutlineWidth()

Value outline width. (Same as the RPG Maker MZ method of this name.)

measureLabelWidth

method source
Sprite_Gauge.prototype.measureLabelWidth()

Measure label width. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isValid

method source
Sprite_Gauge.prototype.isValid()

Whether it is valid. (Same as the RPG Maker MZ method of this name.)

Actions

destroy

method source
Sprite_Gauge.prototype.destroy(options)

Destroy. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Sprite_Gauge.prototype.update()

Update. (Same as the RPG Maker MZ method of this name.)

updateBitmap

method source
Sprite_Gauge.prototype.updateBitmap()

Updates the bitmap each frame. (Same as the RPG Maker MZ method of this name.)

updateTargetValue

method source
Sprite_Gauge.prototype.updateTargetValue(value, maxValue)

Updates the target value each frame. (Same as the RPG Maker MZ method of this name.)

updateGaugeAnimation

method source
Sprite_Gauge.prototype.updateGaugeAnimation()

Updates the gauge animation each frame. (Same as the RPG Maker MZ method of this name.)

updateFlashing

method source
Sprite_Gauge.prototype.updateFlashing()

Updates the flashing each frame. (Same as the RPG Maker MZ method of this name.)

redraw

method source
Sprite_Gauge.prototype.redraw()

Redraw. (Same as the RPG Maker MZ method of this name.)

drawGauge

method source
Sprite_Gauge.prototype.drawGauge()

Draws the gauge. (Same as the RPG Maker MZ method of this name.)

drawGaugeRect

method source
Sprite_Gauge.prototype.drawGaugeRect(x, y, width, height)

Draws the gauge rect. (Same as the RPG Maker MZ method of this name.)

drawLabel

method source
Sprite_Gauge.prototype.drawLabel()

Draws the label. (Same as the RPG Maker MZ method of this name.)

drawValue

method source
Sprite_Gauge.prototype.drawValue()

Draws the value. (Same as the RPG Maker MZ method of this name.)

Other

bitmapWidth

method source
Sprite_Gauge.prototype.bitmapWidth()

Bitmap width. (Same as the RPG Maker MZ method of this name.)

bitmapHeight

method source
Sprite_Gauge.prototype.bitmapHeight()

Bitmap height. (Same as the RPG Maker MZ method of this name.)

gaugeHeight

method source
Sprite_Gauge.prototype.gaugeHeight()

Gauge height. (Same as the RPG Maker MZ method of this name.)

gaugeX

method source
Sprite_Gauge.prototype.gaugeX()

Gauge x. (Same as the RPG Maker MZ method of this name.)

labelY

method source
Sprite_Gauge.prototype.labelY()

Label y. (Same as the RPG Maker MZ method of this name.)

labelFontFace

method source
Sprite_Gauge.prototype.labelFontFace()

Label font face. (Same as the RPG Maker MZ method of this name.)

labelFontSize

method source
Sprite_Gauge.prototype.labelFontSize()

Label font size. (Same as the RPG Maker MZ method of this name.)

smoothness

method source
Sprite_Gauge.prototype.smoothness()

Smoothness. (Same as the RPG Maker MZ method of this name.)

flashingColor1

method source
Sprite_Gauge.prototype.flashingColor1()

Flashing color1. (Same as the RPG Maker MZ method of this name.)

flashingColor2

method source
Sprite_Gauge.prototype.flashingColor2()

Flashing color2. (Same as the RPG Maker MZ method of this name.)

label

method source
Sprite_Gauge.prototype.label()

Label. (Same as the RPG Maker MZ method of this name.)

gaugeBackColor

method source
Sprite_Gauge.prototype.gaugeBackColor()

Gauge back color. (Same as the RPG Maker MZ method of this name.)

gaugeColor1

method source
Sprite_Gauge.prototype.gaugeColor1()

Gauge color1. (Same as the RPG Maker MZ method of this name.)

gaugeColor2

method source
Sprite_Gauge.prototype.gaugeColor2()

Gauge color2. (Same as the RPG Maker MZ method of this name.)

labelColor

method source
Sprite_Gauge.prototype.labelColor()

Label color. (Same as the RPG Maker MZ method of this name.)

labelOutlineColor

method source
Sprite_Gauge.prototype.labelOutlineColor()

Label outline color. (Same as the RPG Maker MZ method of this name.)

labelOutlineWidth

method source
Sprite_Gauge.prototype.labelOutlineWidth()

Label outline width. (Same as the RPG Maker MZ method of this name.)

gaugeRate

method source
Sprite_Gauge.prototype.gaugeRate()

Gauge rate. (Same as the RPG Maker MZ method of this name.)

labelOpacity

method source
Sprite_Gauge.prototype.labelOpacity()

Label opacity. (Same as the RPG Maker MZ method of this name.)