Namespace in reactor_fight_menu.js

Window_FightMenu

12 public functions in 5 groups · show internal (_) functions

A Battle Room: a classic battle staged in 3D.

Familiar territory. Window_FightMenu 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.
makeCommandList() Makes the command list.
ensureCursorVisible() The cursor's row is kept in view with the lines over the rows counted in; the first row shows them too.

Getting Information 2

itemRect() Item rect.
itemTextAlign() Item text align.

Checks (True / False) 1

isCancelTriggered() Cancel is a press here, not a hold: the press that opened the menu, still held, does not shut it again (a sto…

Updating & Drawing 2

drawAllItems() Draws the all items.
drawItem() Draws the item.

Other 4

headHeight() The lines over the rows (a question, a page's title): not rows, never under the cursor.
overallHeight() Overall height.
cursorRight() Left and Right change a setting where the cursor is on one.
cursorLeft() Cursor left.

Setup & Creation

initialize

method source
Window_FightMenu.prototype.initialize(rect)

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

makeCommandList

method source
Window_FightMenu.prototype.makeCommandList()

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

ensureCursorVisible

method source
Window_FightMenu.prototype.ensureCursorVisible(smooth)

The cursor's row is kept in view with the lines over the rows counted in; the first row shows them too.

Getting Information

itemRect

method source
Window_FightMenu.prototype.itemRect(index)

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

itemTextAlign

method source
Window_FightMenu.prototype.itemTextAlign()

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

Checks (True / False)

isCancelTriggered

method source
Window_FightMenu.prototype.isCancelTriggered()

Cancel is a press here, not a hold: the press that opened the menu, still held, does not shut it again (a stock window answers a held Cancel every few frames).

Updating & Drawing

drawAllItems

method source
Window_FightMenu.prototype.drawAllItems()

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

drawItem

method source
Window_FightMenu.prototype.drawItem(index)

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

Other

headHeight

method source
Window_FightMenu.prototype.headHeight()

The lines over the rows (a question, a page's title): not rows, never under the cursor.

overallHeight

method source
Window_FightMenu.prototype.overallHeight()

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

cursorRight

method source
Window_FightMenu.prototype.cursorRight()

Left and Right change a setting where the cursor is on one.

cursorLeft

method source
Window_FightMenu.prototype.cursorLeft()

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