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 sourceWindow_Message.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceWindow_Message.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
loadMessageFace
method sourceWindow_Message.prototype.loadMessageFace()
Loads the message face. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
canStart
method sourceWindow_Message.prototype.canStart()
Whether it can start. (Same as the RPG Maker MZ method of this name.)
isAnySubWindowActive
method sourceWindow_Message.prototype.isAnySubWindowActive()
Whether it is any sub window active. (Same as the RPG Maker MZ method of this name.)
shouldBreakHere
method sourceWindow_Message.prototype.shouldBreakHere(textState)
Whether it should break here. (Same as the RPG Maker MZ method of this name.)
canBreakHere
method sourceWindow_Message.prototype.canBreakHere(textState)
Whether it can break here. (Same as the RPG Maker MZ method of this name.)
isTriggered
method sourceWindow_Message.prototype.isTriggered()
Whether it is triggered. (Same as the RPG Maker MZ method of this name.)
doesContinue
method sourceWindow_Message.prototype.doesContinue()
Does continue. (Same as the RPG Maker MZ method of this name.)
areSettingsChanged
method sourceWindow_Message.prototype.areSettingsChanged()
Whether they are settings changed. (Same as the RPG Maker MZ method of this name.)
isEndOfText
method sourceWindow_Message.prototype.isEndOfText(textState)
Whether it is end of text. (Same as the RPG Maker MZ method of this name.)
needsNewPage
method sourceWindow_Message.prototype.needsNewPage(textState)
Whether it needs new page. (Same as the RPG Maker MZ method of this name.)
isWaiting
method sourceWindow_Message.prototype.isWaiting()
Whether it is waiting. (Same as the RPG Maker MZ method of this name.)
Actions
setGoldWindow
method sourceWindow_Message.prototype.setGoldWindow(goldWindow)
Sets the gold window. (Same as the RPG Maker MZ method of this name.)
setNameBoxWindow
method sourceWindow_Message.prototype.setNameBoxWindow(nameBoxWindow)
Sets the name box window. (Same as the RPG Maker MZ method of this name.)
setChoiceListWindow
method sourceWindow_Message.prototype.setChoiceListWindow(choiceListWindow)
Sets the choice list window. (Same as the RPG Maker MZ method of this name.)
setNumberInputWindow
method sourceWindow_Message.prototype.setNumberInputWindow(numberInputWindow)
Sets the number input window. (Same as the RPG Maker MZ method of this name.)
setEventItemWindow
method sourceWindow_Message.prototype.setEventItemWindow(eventItemWindow)
Sets the event item window. (Same as the RPG Maker MZ method of this name.)
clearFlags
method sourceWindow_Message.prototype.clearFlags()
Clears the flags. (Same as the RPG Maker MZ method of this name.)
startMessage
method sourceWindow_Message.prototype.startMessage()
Starts the message. (Same as the RPG Maker MZ method of this name.)
startInput
method sourceWindow_Message.prototype.startInput()
Starts the input. (Same as the RPG Maker MZ method of this name.)
startWait
method sourceWindow_Message.prototype.startWait(count)
Starts the wait. (Same as the RPG Maker MZ method of this name.)
startPause
method sourceWindow_Message.prototype.startPause()
Starts the pause. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onEndOfText
method sourceWindow_Message.prototype.onEndOfText()
Called when end of text happens. (Same as the RPG Maker MZ method of this name.)
processControlCharacter
method sourceWindow_Message.prototype.processControlCharacter(textState, c)
Handles the control character. (Same as the RPG Maker MZ method of this name.)
processNewLine
method sourceWindow_Message.prototype.processNewLine(textState)
Handles the new line. (Same as the RPG Maker MZ method of this name.)
processNewPage
method sourceWindow_Message.prototype.processNewPage(textState)
Handles the new page. (Same as the RPG Maker MZ method of this name.)
processEscapeCharacter
method sourceWindow_Message.prototype.processEscapeCharacter(code, textState)
Handles the escape character. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceWindow_Message.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
synchronizeNameBox
method sourceWindow_Message.prototype.synchronizeNameBox()
Synchronize name box. (Same as the RPG Maker MZ method of this name.)
updatePlacement
method sourceWindow_Message.prototype.updatePlacement()
Updates the placement each frame. (Same as the RPG Maker MZ method of this name.)
updateBackground
method sourceWindow_Message.prototype.updateBackground()
Updates the background each frame. (Same as the RPG Maker MZ method of this name.)
updateWait
method sourceWindow_Message.prototype.updateWait()
Updates the wait each frame. (Same as the RPG Maker MZ method of this name.)
updateLoading
method sourceWindow_Message.prototype.updateLoading()
Updates the loading each frame. (Same as the RPG Maker MZ method of this name.)
updateInput
method sourceWindow_Message.prototype.updateInput()
Updates the input each frame. (Same as the RPG Maker MZ method of this name.)
updateMessage
method sourceWindow_Message.prototype.updateMessage()
Updates the message each frame. (Same as the RPG Maker MZ method of this name.)
updateShowFast
method sourceWindow_Message.prototype.updateShowFast()
Updates the show fast each frame. (Same as the RPG Maker MZ method of this name.)
updateSpeakerName
method sourceWindow_Message.prototype.updateSpeakerName()
Updates the speaker name each frame. (Same as the RPG Maker MZ method of this name.)
drawMessageFace
method sourceWindow_Message.prototype.drawMessageFace()
Draws the message face. (Same as the RPG Maker MZ method of this name.)
updateFaceFrames
method sourceWindow_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 sourceWindow_Message.prototype.checkToNotClose()
Check to not close. (Same as the RPG Maker MZ method of this name.)
newLineX
method sourceWindow_Message.prototype.newLineX(textState)
New line x. (Same as the RPG Maker MZ method of this name.)
terminateMessage
method sourceWindow_Message.prototype.terminateMessage()
Terminate message. (Same as the RPG Maker MZ method of this name.)
newPage
method sourceWindow_Message.prototype.newPage(textState)
New page. (Same as the RPG Maker MZ method of this name.)
faceMouth
static sourceWindow_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 sourceWindow_Message.faceTalkFrame(open, frames)
The frame (0 the mouth at rest, frames - 1 the widest) for a mouth that far open.