Class in reactor_windows.js

Window_Message

46 public functions in 6 groups · show internal (_) functions

Windows draw every menu, list and status panel.

Familiar territory. Window_Message 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 3

initialize() Sets up a new instance.
initMembers() Initializes the members.
loadMessageFace() Loads the message face.

Checks (True / False) 10

canStart() Whether it can start.
isAnySubWindowActive() Whether it is any sub window active.
shouldBreakHere() Whether it should break here.
canBreakHere() Whether it can break here.
isTriggered() Whether it is triggered.
doesContinue() Does continue.
areSettingsChanged() Whether they are settings changed.
isEndOfText() Whether it is end of text.
needsNewPage() Whether it needs new page.
isWaiting() Whether it is waiting.

Actions 10

setGoldWindow() Sets the gold window.
setNameBoxWindow() Sets the name box window.
setChoiceListWindow() Sets the choice list window.
setNumberInputWindow() Sets the number input window.
setEventItemWindow() Sets the event item window.
clearFlags() Clears the flags.
startMessage() Starts the message.
startInput() Starts the input.
startWait() Starts the wait.
startPause() Starts the pause.

Events, Commands & Input 5

onEndOfText() Called when end of text happens.
processControlCharacter() Handles the control character.
processNewLine() Handles the new line.
processNewPage() Handles the new page.
processEscapeCharacter() Handles the escape character.

Updating & Drawing 12

update() Update.
synchronizeNameBox() Synchronize name box.
updatePlacement() Updates the placement each frame.
updateBackground() Updates the background each frame.
updateWait() Updates the wait each frame.
updateLoading() Updates the loading each frame.
updateInput() Updates the input each frame.
updateMessage() Updates the message each frame.
updateShowFast() Updates the show fast each frame.
updateSpeakerName() Updates the speaker name each frame.
drawMessageFace() Draws the message face.
updateFaceFrames() A face set with frames moves in the message window, the way its message says ($gameMessage.facePlay()): talki…

Other 6

checkToNotClose() Check to not close.
newLineX() New line x.
terminateMessage() Terminate message.
newPage() New page.
faceMouth() How far open a mouth is for a character of the text, 0 (shut) to 1 (widest): shut for a space, a line end and…
faceTalkFrame() The frame (0 the mouth at rest, frames - 1 the widest) for a mouth that far open.

Setup & Creation

initialize

method source
Window_Message.prototype.initialize(rect)

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

initMembers

method source
Window_Message.prototype.initMembers()

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

loadMessageFace

method source
Window_Message.prototype.loadMessageFace()

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

Checks (True / False)

canStart

method source
Window_Message.prototype.canStart()

Whether it can start. (Same as the RPG Maker MZ method of this name.)

isAnySubWindowActive

method source
Window_Message.prototype.isAnySubWindowActive()

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

shouldBreakHere

method source
Window_Message.prototype.shouldBreakHere(textState)

Whether it should break here. (Same as the RPG Maker MZ method of this name.)

canBreakHere

method source
Window_Message.prototype.canBreakHere(textState)

Whether it can break here. (Same as the RPG Maker MZ method of this name.)

isTriggered

method source
Window_Message.prototype.isTriggered()

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

doesContinue

method source
Window_Message.prototype.doesContinue()

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

areSettingsChanged

method source
Window_Message.prototype.areSettingsChanged()

Whether they are settings changed. (Same as the RPG Maker MZ method of this name.)

isEndOfText

method source
Window_Message.prototype.isEndOfText(textState)

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

needsNewPage

method source
Window_Message.prototype.needsNewPage(textState)

Whether it needs new page. (Same as the RPG Maker MZ method of this name.)

isWaiting

method source
Window_Message.prototype.isWaiting()

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

Actions

setGoldWindow

method source
Window_Message.prototype.setGoldWindow(goldWindow)

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

setNameBoxWindow

method source
Window_Message.prototype.setNameBoxWindow(nameBoxWindow)

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

setChoiceListWindow

method source
Window_Message.prototype.setChoiceListWindow(choiceListWindow)

Sets the choice list window. (Same as the RPG Maker MZ method of this name.)

setNumberInputWindow

method source
Window_Message.prototype.setNumberInputWindow(numberInputWindow)

Sets the number input window. (Same as the RPG Maker MZ method of this name.)

setEventItemWindow

method source
Window_Message.prototype.setEventItemWindow(eventItemWindow)

Sets the event item window. (Same as the RPG Maker MZ method of this name.)

clearFlags

method source
Window_Message.prototype.clearFlags()

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

startMessage

method source
Window_Message.prototype.startMessage()

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

startInput

method source
Window_Message.prototype.startInput()

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

startWait

method source
Window_Message.prototype.startWait(count)

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

startPause

method source
Window_Message.prototype.startPause()

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

Events, Commands & Input

onEndOfText

method source
Window_Message.prototype.onEndOfText()

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

processControlCharacter

method source
Window_Message.prototype.processControlCharacter(textState, c)

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

processNewLine

method source
Window_Message.prototype.processNewLine(textState)

Handles the new line. (Same as the RPG Maker MZ method of this name.)

processNewPage

method source
Window_Message.prototype.processNewPage(textState)

Handles the new page. (Same as the RPG Maker MZ method of this name.)

processEscapeCharacter

method source
Window_Message.prototype.processEscapeCharacter(code, textState)

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

Updating & Drawing

update

method source
Window_Message.prototype.update()

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

synchronizeNameBox

method source
Window_Message.prototype.synchronizeNameBox()

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

updatePlacement

method source
Window_Message.prototype.updatePlacement()

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

updateBackground

method source
Window_Message.prototype.updateBackground()

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

updateWait

method source
Window_Message.prototype.updateWait()

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

updateLoading

method source
Window_Message.prototype.updateLoading()

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

updateInput

method source
Window_Message.prototype.updateInput()

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

updateMessage

method source
Window_Message.prototype.updateMessage()

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

updateShowFast

method source
Window_Message.prototype.updateShowFast()

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

updateSpeakerName

method source
Window_Message.prototype.updateSpeakerName()

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

drawMessageFace

method source
Window_Message.prototype.drawMessageFace()

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

updateFaceFrames

method source
Window_Message.prototype.updateFaceFrames()

A face set with frames moves in the message window, the way its message says ($gameMessage.facePlay()): talking, its mouth says the message letter by letter at the pace of speech and then rests on the first frame; played once, it runs through its frames when the face appears and holds the last; looped, it goes round while the face is shown; still, it shows the first frame.

Details

A face set with frames moves in the message window, the way its message says ($gameMessage.facePlay()): talking, its mouth says the message letter by letter at the pace of speech and then rests on the first frame; played once, it runs through its frames when the face appears and holds the last; looped, it goes round while the face is shown; still, it shows the first frame. Only a face this window drew itself (_rrFace): a plugin that draws the message's face its own way is left alone.

Other

checkToNotClose

method source
Window_Message.prototype.checkToNotClose()

Check to not close. (Same as the RPG Maker MZ method of this name.)

newLineX

method source
Window_Message.prototype.newLineX(textState)

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

terminateMessage

method source
Window_Message.prototype.terminateMessage()

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

newPage

method source
Window_Message.prototype.newPage(textState)

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

faceMouth

static source
Window_Message.faceMouth(character)

How far open a mouth is for a character of the text, 0 (shut) to 1 (widest): shut for a space, a line end and punctuation and for m, b and p; wide for a, less for o, e, i and u; a little for other consonants.

Details

How far open a mouth is for a character of the text, 0 (shut) to 1 (widest): shut for a space, a line end and punctuation and for m, b and p; wide for a, less for o, e, i and u; a little for other consonants. A letter of another script (kana, hanzi, Cyrillic, Greek...) opens by its own code, so speech in any language moves.

faceTalkFrame

static source
Window_Message.faceTalkFrame(open, frames)

The frame (0 the mouth at rest, frames - 1 the widest) for a mouth that far open.