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 sourceWindow_ChoiceList.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
createCancelButton
method sourceWindow_ChoiceList.prototype.createCancelButton()
Creates the cancel button. (Same as the RPG Maker MZ method of this name.)
makeCommandList
method sourceWindow_ChoiceList.prototype.makeCommandList()
Makes the command list. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxLines
method sourceWindow_ChoiceList.prototype.maxLines()
The maximum lines. (Same as the RPG Maker MZ method of this name.)
maxChoiceWidth
method sourceWindow_ChoiceList.prototype.maxChoiceWidth()
The maximum choice width. (Same as the RPG Maker MZ method of this name.)
itemHeight
method sourceWindow_ChoiceList.prototype.itemHeight()
Item height. (Same as the RPG Maker MZ method of this name.)
itemLineRect
method sourceWindow_ChoiceList.prototype.itemLineRect(index)
Item line rect. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isCancelEnabled
method sourceWindow_ChoiceList.prototype.isCancelEnabled()
Whether it is cancel enabled. (Same as the RPG Maker MZ method of this name.)
needsCancelButton
method sourceWindow_ChoiceList.prototype.needsCancelButton()
Whether it needs cancel button. (Same as the RPG Maker MZ method of this name.)
Actions
setMessageWindow
method sourceWindow_ChoiceList.prototype.setMessageWindow(messageWindow)
Sets the message window. (Same as the RPG Maker MZ method of this name.)
start
method sourceWindow_ChoiceList.prototype.start()
Start. (Same as the RPG Maker MZ method of this name.)
selectDefault
method sourceWindow_ChoiceList.prototype.selectDefault()
Selects the default. (Same as the RPG Maker MZ method of this name.)
placeCancelButton
method sourceWindow_ChoiceList.prototype.placeCancelButton()
Place cancel button. (Same as the RPG Maker MZ method of this name.)
callOkHandler
method sourceWindow_ChoiceList.prototype.callOkHandler()
Call ok handler. (Same as the RPG Maker MZ method of this name.)
callCancelHandler
method sourceWindow_ChoiceList.prototype.callCancelHandler()
Call cancel handler. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceWindow_ChoiceList.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateCancelButton
method sourceWindow_ChoiceList.prototype.updateCancelButton()
Updates the cancel button each frame. (Same as the RPG Maker MZ method of this name.)
updatePlacement
method sourceWindow_ChoiceList.prototype.updatePlacement()
Updates the placement each frame. (Same as the RPG Maker MZ method of this name.)
updateBackground
method sourceWindow_ChoiceList.prototype.updateBackground()
Updates the background each frame. (Same as the RPG Maker MZ method of this name.)
drawItem
method sourceWindow_ChoiceList.prototype.drawItem(index)
Draws the item. (Same as the RPG Maker MZ method of this name.)
refreshCursor
method sourceWindow_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 sourceWindow_ChoiceList.prototype.drawItemBackground(index)
the old engines draw no bar behind each choice, only the cursor
Other
windowX
method sourceWindow_ChoiceList.prototype.windowX()
Window x. (Same as the RPG Maker MZ method of this name.)
windowY
method sourceWindow_ChoiceList.prototype.windowY()
Window y. (Same as the RPG Maker MZ method of this name.)
windowWidth
method sourceWindow_ChoiceList.prototype.windowWidth()
Window width. (Same as the RPG Maker MZ method of this name.)
windowHeight
method sourceWindow_ChoiceList.prototype.windowHeight()
Window height. (Same as the RPG Maker MZ method of this name.)
numVisibleRows
method sourceWindow_ChoiceList.prototype.numVisibleRows()
Num visible rows. (Same as the RPG Maker MZ method of this name.)
rowSpacing
method sourceWindow_ChoiceList.prototype.rowSpacing()
Row spacing. (Same as the RPG Maker MZ method of this name.)