Class: Sprite_Name

Sprite_Name

new Sprite_Name()

The sprite for displaying a status gauge.

Extends

Members

The bitmap for the sprite

blendModenumberinherited

The blend mode to be applied to the sprite

heightnumberinherited

The height of the sprite without the scale

opacitynumberinherited

The opacity of the sprite (0 to 255)

widthnumberinherited

The width of the sprite without the scale

Methods

bitmapHeight()number

Get the height of the sprite's bitmap
Returns:
TypeDescription
numberThe bitmap height

bitmapWidth()number

Get the width of the sprite's bitmap
Returns:
TypeDescription
numberThe bitmap width

createBitmap()

Creates the sprite's bitmap
Destroys the sprite

fontFace()string

Get the sprite's font face
Returns:
TypeDescription
stringThe font face

fontSize()number

Get the sprite's font size
Returns:
TypeDescription
numberThe font size

getBlendColor()arrayinherited

Gets the blend color for the sprite
Returns:
TypeDescription
arrayThe blend color [r, g, b, a]

getColorTone()arrayinherited

Gets the color tone for the sprite
Returns:
TypeDescription
arrayThe color tone [r, g, b, gray]
Makes the sprite "hidden" (not visible)

initMembers()

Initialize the sprite's variables
Initializes the sprite
NameTypeDescription
bitmapBitmapThe bitmap of the sprite
Sets the x and y coordiantes of the sprite
NameTypeDescription
xnumberThe x coordinate of the sprite
ynumberThe y coordinate of the sprite

name()string

The name to show
Returns:
TypeDescription
stringThe name

outlineColor()string

The text outline color
Returns:
TypeDescription
stringThe outline color

outlineWidth()number

The text outline width
Returns:
TypeDescription
numberThe width
Redraws the bitmap

setBlendColor(color)inherited

Sets the blend color for the sprite
NameTypeDescription
colorarrayThe blend color [r, g, b, a]

setColorTone(tone)inherited

Sets the color tone for the sprite
NameTypeDescription
tonearrayThe color tone [r, g, b, gray]

setFrame(x, y, width, height)inherited

Sets the rectagle of the bitmap that the sprite displays
NameTypeDescription
xnumberThe x coordinate of the frame
ynumberThe y coordinate of the frame
widthnumberThe width of the frame
heightnumberThe height of the frame
Sets the hue rotation value
NameTypeDescription
huenumberThe hue value (-360, 360)

setup(battler)

Sets the sprite up
NameTypeDescription
battlerGame_BattlerThe battler to track for the sprite
Sets up the bitmap's font
Removes the "hidden" state of the sprite, making it visible

textColor()string

The color to make the text
Returns:
TypeDescription
stringThe text color
Updates the sprite for each frame

updateBitmap()

Updates the bitmap

updateVisibility()inherited

Updates the visibility status of the sprite