Class in reactor_managers.js

ImageManager

27 public functions in 4 groups · show internal (_) functions

The Database: everything Core loads at boot.

Familiar territory. ImageManager 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 16

loadAnimation() Loads the animation.
loadBattleback1() Loads the battleback1.
loadBattleback2() Loads the battleback2.
loadEnemy() Loads the enemy.
loadCharacter() Loads the character.
loadFace() Loads the face.
loadParallax() Loads the parallax.
loadPicture() Loads the picture.
loadSvActor() Loads the sv actor.
loadSvEnemy() Loads the sv enemy.
loadSystem() Loads the system.
loadTileset() Loads the tileset.
loadTitle1() Loads the title1.
loadTitle2() Loads the title2.
loadBitmap() Loads the bitmap.
loadBitmapFromUrl() Loads the bitmap from url.

Checks (True / False) 7

isSystemSheet() Whether it is system sheet.
isReady() Whether it is ready.
isObjectCharacter() Whether it is object character.
isEightDirCharacter() A sheet tagged [8D] is cut as eight blocks of 3 x 4 frames whatever its "$" says (reactor_sprites.js).
isOneDirCharacter() A sheet tagged [1D] has one row per character, shown whichever way it faces (reactor_sprites.js).
isBigCharacter() Whether it is big character.
isZeroParallax() Whether it is zero parallax.

Actions 1

clear() Clear.

Other 3

faceFrames() A face set with frames says how many in its name: "Name[4F]" (or "Name[F4]") has each of its eight faces four…
skipsMissingImages() System.json rrSkipMissingImages (2000/2003 imports): a picture, charset or other image the game names but nev…
throwLoadError() Throw load error.

Setup & Creation

loadAnimation

static source
ImageManager.loadAnimation(filename)

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

loadBattleback1

static source
ImageManager.loadBattleback1(filename)

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

loadBattleback2

static source
ImageManager.loadBattleback2(filename)

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

loadEnemy

static source
ImageManager.loadEnemy(filename)

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

loadCharacter

static source
ImageManager.loadCharacter(filename)

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

loadFace

static source
ImageManager.loadFace(filename)

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

loadParallax

static source
ImageManager.loadParallax(filename)

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

loadPicture

static source
ImageManager.loadPicture(filename)

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

loadSvActor

static source
ImageManager.loadSvActor(filename)

Loads the sv actor. (Same as the RPG Maker MZ method of this name.)

loadSvEnemy

static source
ImageManager.loadSvEnemy(filename)

Loads the sv enemy. (Same as the RPG Maker MZ method of this name.)

loadSystem

static source
ImageManager.loadSystem(filename)

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

loadTileset

static source
ImageManager.loadTileset(filename)

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

loadTitle1

static source
ImageManager.loadTitle1(filename)

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

loadTitle2

static source
ImageManager.loadTitle2(filename)

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

loadBitmap

static source
ImageManager.loadBitmap(folder, filename)

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

loadBitmapFromUrl

static source
ImageManager.loadBitmapFromUrl(url, fallbackUrls)

Loads the bitmap from url. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isSystemSheet

static source
ImageManager.isSystemSheet(filename)

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

isReady

static source
ImageManager.isReady()

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

isObjectCharacter

static source
ImageManager.isObjectCharacter(filename)

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

isEightDirCharacter

static source
ImageManager.isEightDirCharacter(filename)

A sheet tagged [8D] is cut as eight blocks of 3 x 4 frames whatever its "$" says (reactor_sprites.js).

isOneDirCharacter

static source
ImageManager.isOneDirCharacter(filename)

A sheet tagged [1D] has one row per character, shown whichever way it faces (reactor_sprites.js).

isBigCharacter

static source
ImageManager.isBigCharacter(filename)

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

isZeroParallax

static source
ImageManager.isZeroParallax(filename)

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

Actions

clear

static source
ImageManager.clear()

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

Other

faceFrames

static source
ImageManager.faceFrames(filename)

A face set with frames says how many in its name: "Name[4F]" (or "Name[F4]") has each of its eight faces four frames wide, so the sheet is 16 faces across and 2 down, frame k of face i at column (i % 4) * 4 + k, the way a character sheet's [NF] is laid.

Details

A face set with frames says how many in its name: "Name[4F]" (or "Name[F4]") has each of its eight faces four frames wide, so the sheet is 16 faces across and 2 down, frame k of face i at column (i % 4) * 4 + k, the way a character sheet's [NF] is laid. What the frames hold is the artist's (a mouth opening for speech, a sweep from the neutral face to an expression); how they are played is the message's (FACE_PLAYS, a Show Text command's reactorFacePlay). Every other window shows the first frame. 0 for a plain face set, and with System's rrMultiFrames switched off.

skipsMissingImages

static source
ImageManager.skipsMissingImages()

System.json rrSkipMissingImages (2000/2003 imports): a picture, charset or other image the game names but never shipped draws nothing, as the old players do, instead of stopping the game on a load error.

Details

System.json rrSkipMissingImages (2000/2003 imports): a picture, charset or other image the game names but never shipped draws nothing, as the old players do, instead of stopping the game on a load error. The bitmap becomes blank once its case-corrected retry has failed.

throwLoadError

static source
ImageManager.throwLoadError(bitmap)

Throw load error. (Same as the RPG Maker MZ method of this name.)