Class in reactor_windows.js

Window_ChoiceList

28 functions in 6 groups · hide internal

Windows draw every menu, list and status panel.

Familiar territory. Window_ChoiceList 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.
createCancelButton() Creates the cancel button.
makeCommandList() Makes the command list.

Getting Information 4

maxLines() The maximum lines.
maxChoiceWidth() The maximum choice width.
itemHeight() Item height.
itemLineRect() Item line rect.

Checks (True / False) 2

isCancelEnabled() Whether it is cancel enabled.
needsCancelButton() Whether it needs cancel button.

Actions 6

setMessageWindow() Sets the message window.
start() Start.
selectDefault() Selects the default.
placeCancelButton() Place cancel button.
callOkHandler() Call ok handler.
callCancelHandler() Call cancel handler.

Updating & Drawing 7

update() Update.
updateCancelButton() Updates the cancel button each frame.
updatePlacement() Updates the placement each frame.
updateBackground() Updates the background each frame.
drawItem() Draws the item.
refreshCursor() The cursor starts 10 px left of the choice text and ends 2 px inside the message's contents (EasyRPG's Window…
drawItemBackground() the old engines draw no bar behind each choice, only the cursor

Other 6

windowX() Window x.
windowY() Window y.
windowWidth() Window width.
windowHeight() Window height.
numVisibleRows() Num visible rows.
rowSpacing() Row spacing.

Setup & Creation

initialize

method source
Window_ChoiceList.prototype.initialize()

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

createCancelButton

method source
Window_ChoiceList.prototype.createCancelButton()

Creates the cancel button. (Same as the RPG Maker MZ method of this name.)

makeCommandList

method source
Window_ChoiceList.prototype.makeCommandList()

Makes the command list. (Same as the RPG Maker MZ method of this name.)

Getting Information

maxLines

method source
Window_ChoiceList.prototype.maxLines()

The maximum lines. (Same as the RPG Maker MZ method of this name.)

maxChoiceWidth

method source
Window_ChoiceList.prototype.maxChoiceWidth()

The maximum choice width. (Same as the RPG Maker MZ method of this name.)

itemHeight

method source
Window_ChoiceList.prototype.itemHeight()

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

itemLineRect

method source
Window_ChoiceList.prototype.itemLineRect(index)

Item line rect. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isCancelEnabled

method source
Window_ChoiceList.prototype.isCancelEnabled()

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

needsCancelButton

method source
Window_ChoiceList.prototype.needsCancelButton()

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

Actions

setMessageWindow

method source
Window_ChoiceList.prototype.setMessageWindow(messageWindow)

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

start

method source
Window_ChoiceList.prototype.start()

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

selectDefault

method source
Window_ChoiceList.prototype.selectDefault()

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

placeCancelButton

method source
Window_ChoiceList.prototype.placeCancelButton()

Place cancel button. (Same as the RPG Maker MZ method of this name.)

callOkHandler

method source
Window_ChoiceList.prototype.callOkHandler()

Call ok handler. (Same as the RPG Maker MZ method of this name.)

callCancelHandler

method source
Window_ChoiceList.prototype.callCancelHandler()

Call cancel handler. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Window_ChoiceList.prototype.update()

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

updateCancelButton

method source
Window_ChoiceList.prototype.updateCancelButton()

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

updatePlacement

method source
Window_ChoiceList.prototype.updatePlacement()

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

updateBackground

method source
Window_ChoiceList.prototype.updateBackground()

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

drawItem

method source
Window_ChoiceList.prototype.drawItem(index)

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

refreshCursor

method source
Window_ChoiceList.prototype.refreshCursor()

The cursor starts 10 px left of the choice text and ends 2 px inside the message's contents (EasyRPG's Window_Message::UpdateCursorRect), so a system graphic's corner marks sit before the text rather than over its first letters.

drawItemBackground

method source
Window_ChoiceList.prototype.drawItemBackground(index)

the old engines draw no bar behind each choice, only the cursor

Other

windowX

method source
Window_ChoiceList.prototype.windowX()

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

windowY

method source
Window_ChoiceList.prototype.windowY()

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

windowWidth

method source
Window_ChoiceList.prototype.windowWidth()

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

windowHeight

method source
Window_ChoiceList.prototype.windowHeight()

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

numVisibleRows

method source
Window_ChoiceList.prototype.numVisibleRows()

Num visible rows. (Same as the RPG Maker MZ method of this name.)

rowSpacing

method source
Window_ChoiceList.prototype.rowSpacing()

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