Namespace in reactor_fight_menu.js
Window_FightMenu
12 public functions in 5 groups · show internal (_) functions
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 sourceWindow_FightMenu.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
makeCommandList
method sourceWindow_FightMenu.prototype.makeCommandList()
Makes the command list. (Same as the RPG Maker MZ method of this name.)
ensureCursorVisible
method sourceWindow_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 sourceWindow_FightMenu.prototype.itemRect(index)
Item rect. (Same as the RPG Maker MZ method of this name.)
itemTextAlign
method sourceWindow_FightMenu.prototype.itemTextAlign()
Item text align. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isCancelTriggered
method sourceWindow_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 sourceWindow_FightMenu.prototype.drawAllItems()
Draws the all items. (Same as the RPG Maker MZ method of this name.)
drawItem
method sourceWindow_FightMenu.prototype.drawItem(index)
Draws the item. (Same as the RPG Maker MZ method of this name.)
Other
headHeight
method sourceWindow_FightMenu.prototype.headHeight()
The lines over the rows (a question, a page's title): not rows, never under the cursor.
overallHeight
method sourceWindow_FightMenu.prototype.overallHeight()
Overall height. (Same as the RPG Maker MZ method of this name.)
cursorRight
method sourceWindow_FightMenu.prototype.cursorRight()
Left and Right change a setting where the cursor is on one.
cursorLeft
method sourceWindow_FightMenu.prototype.cursorLeft()
Cursor left. (Same as the RPG Maker MZ method of this name.)