Class in reactor_scenes.js

Scene_Base

40 functions in 7 groups · hide internal

The Reactor One title screen.

Familiar territory. Scene_Base 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 4

initialize() Sets up a new instance.
create() Create.
createWindowLayer() Creates the window layer.
createColorFilter() Creates the color filter.

Getting Information 1

calcWindowHeight() Calculates the window height.

Checks (True / False) 9

isActive() Whether it is active.
isReady() Whether it is ready.
isStarted() Whether it is started.
isBusy() Whether it is busy.
isFading() Whether it is fading.
isBottomHelpMode() Whether it is bottom help mode.
isBottomButtonMode() Whether it is bottom button mode.
isRightInputMode() Whether it is right input mode.
isAutosaveEnabled() Whether it is autosave enabled.

Actions 10

start() Start.
stop() Stop.
addWindow() Adds the window.
startFadeIn() Starts the fade in.
startFadeOut() Starts the fade out.
popScene() Pop scene.
fadeOutAll() Fade out all.
fadeSpeed() Fade speed.
requestAutosave() Requests the autosave.
executeAutosave() Runs the autosave.

Events, Commands & Input 2

onAutosaveSuccess() Called when autosave success happens.
onAutosaveFailure() Called when autosave failure happens.

Updating & Drawing 4

update() Update.
updateColorFilter() Updates the color filter each frame.
updateFade() Updates the fade each frame.
updateChildren() Updates the children each frame.

Other 10

terminate() Terminate.
checkGameover() Check gameover.
slowFadeSpeed() Slow fade speed.
scaleSprite() Scale sprite.
centerSprite() Center sprite.
mainCommandWidth() Main command width.
buttonAreaTop() Button area top.
buttonAreaBottom() Button area bottom.
buttonAreaHeight() Button area height.
buttonY() Button y.

Setup & Creation

initialize

method source
Scene_Base.prototype.initialize()

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

create

method source
Scene_Base.prototype.create()

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

createWindowLayer

method source
Scene_Base.prototype.createWindowLayer()

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

createColorFilter

method source
Scene_Base.prototype.createColorFilter()

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

Getting Information

calcWindowHeight

method source
Scene_Base.prototype.calcWindowHeight(numLines, selectable)

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

Checks (True / False)

isActive

method source
Scene_Base.prototype.isActive()

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

isReady

method source
Scene_Base.prototype.isReady()

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

isStarted

method source
Scene_Base.prototype.isStarted()

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

isBusy

method source
Scene_Base.prototype.isBusy()

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

isFading

method source
Scene_Base.prototype.isFading()

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

isBottomHelpMode

method source
Scene_Base.prototype.isBottomHelpMode()

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

isBottomButtonMode

method source
Scene_Base.prototype.isBottomButtonMode()

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

isRightInputMode

method source
Scene_Base.prototype.isRightInputMode()

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

isAutosaveEnabled

method source
Scene_Base.prototype.isAutosaveEnabled()

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

Actions

start

method source
Scene_Base.prototype.start()

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

stop

method source
Scene_Base.prototype.stop()

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

addWindow

method source
Scene_Base.prototype.addWindow(window)

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

startFadeIn

method source
Scene_Base.prototype.startFadeIn(duration, white)

Starts the fade in. (Same as the RPG Maker MZ method of this name.)

startFadeOut

method source
Scene_Base.prototype.startFadeOut(duration, white)

Starts the fade out. (Same as the RPG Maker MZ method of this name.)

popScene

method source
Scene_Base.prototype.popScene()

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

fadeOutAll

method source
Scene_Base.prototype.fadeOutAll()

Fade out all. (Same as the RPG Maker MZ method of this name.)

fadeSpeed

method source
Scene_Base.prototype.fadeSpeed()

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

requestAutosave

method source
Scene_Base.prototype.requestAutosave()

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

executeAutosave

method source
Scene_Base.prototype.executeAutosave()

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

Events, Commands & Input

onAutosaveSuccess

method source
Scene_Base.prototype.onAutosaveSuccess()

Called when autosave success happens. (Same as the RPG Maker MZ method of this name.)

onAutosaveFailure

method source
Scene_Base.prototype.onAutosaveFailure()

Called when autosave failure happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Scene_Base.prototype.update()

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

updateColorFilter

method source
Scene_Base.prototype.updateColorFilter()

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

updateFade

method source
Scene_Base.prototype.updateFade()

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

updateChildren

method source
Scene_Base.prototype.updateChildren()

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

Other

terminate

method source
Scene_Base.prototype.terminate()

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

checkGameover

method source
Scene_Base.prototype.checkGameover()

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

slowFadeSpeed

method source
Scene_Base.prototype.slowFadeSpeed()

Slow fade speed. (Same as the RPG Maker MZ method of this name.)

scaleSprite

method source
Scene_Base.prototype.scaleSprite(sprite)

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

centerSprite

method source
Scene_Base.prototype.centerSprite(sprite)

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

mainCommandWidth

method source
Scene_Base.prototype.mainCommandWidth()

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

buttonAreaTop

method source
Scene_Base.prototype.buttonAreaTop()

Button area top. (Same as the RPG Maker MZ method of this name.)

buttonAreaBottom

method source
Scene_Base.prototype.buttonAreaBottom()

Button area bottom. (Same as the RPG Maker MZ method of this name.)

buttonAreaHeight

method source
Scene_Base.prototype.buttonAreaHeight()

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

buttonY

method source
Scene_Base.prototype.buttonY()

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