Class in reactor_windows.js

Window_NumberInput

28 functions in 7 groups · hide internal

Windows draw every menu, list and status panel.

Familiar territory. Window_NumberInput 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 2

initialize() Sets up a new instance.
createButtons() Creates the buttons.

Getting Information 5

maxCols() The maximum cols.
maxItems() The maximum items.
itemWidth() Item width.
itemRect() Item rect.
totalButtonWidth() Total button width.

Checks (True / False) 5

isScrollEnabled() Whether it is scroll enabled.
isHoverEnabled() Whether it is hover enabled.
isTouchOkEnabled() Whether it is touch ok enabled.
isOkEnabled() Whether it is ok enabled.
isCancelEnabled() Whether it is cancel enabled.

Actions 4

setMessageWindow() Sets the message window.
start() Start.
placeButtons() Place buttons.
changeDigit() Changes the digit.

Events, Commands & Input 5

processDigitChange() Handles the digit change.
processOk() Handles the ok.
onButtonUp() Called when button up happens.
onButtonDown() Called when button down happens.
onButtonOk() Called when button ok happens.

Updating & Drawing 3

updatePlacement() Updates the placement each frame.
update() Update.
drawItem() Draws the item.

Other 4

windowWidth() Window width.
windowHeight() Window height.
buttonSpacing() Button spacing.
buttonY() Button y.

Setup & Creation

initialize

method source
Window_NumberInput.prototype.initialize()

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

createButtons

method source
Window_NumberInput.prototype.createButtons()

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

Getting Information

maxCols

method source
Window_NumberInput.prototype.maxCols()

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

maxItems

method source
Window_NumberInput.prototype.maxItems()

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

itemWidth

method source
Window_NumberInput.prototype.itemWidth()

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

itemRect

method source
Window_NumberInput.prototype.itemRect(index)

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

totalButtonWidth

method source
Window_NumberInput.prototype.totalButtonWidth()

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

Checks (True / False)

isScrollEnabled

method source
Window_NumberInput.prototype.isScrollEnabled()

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

isHoverEnabled

method source
Window_NumberInput.prototype.isHoverEnabled()

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

isTouchOkEnabled

method source
Window_NumberInput.prototype.isTouchOkEnabled()

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

isOkEnabled

method source
Window_NumberInput.prototype.isOkEnabled()

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

isCancelEnabled

method source
Window_NumberInput.prototype.isCancelEnabled()

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

Actions

setMessageWindow

method source
Window_NumberInput.prototype.setMessageWindow(messageWindow)

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

start

method source
Window_NumberInput.prototype.start()

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

placeButtons

method source
Window_NumberInput.prototype.placeButtons()

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

changeDigit

method source
Window_NumberInput.prototype.changeDigit(up)

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

Events, Commands & Input

processDigitChange

method source
Window_NumberInput.prototype.processDigitChange()

Handles the digit change. (Same as the RPG Maker MZ method of this name.)

processOk

method source
Window_NumberInput.prototype.processOk()

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

onButtonUp

method source
Window_NumberInput.prototype.onButtonUp()

Called when button up happens. (Same as the RPG Maker MZ method of this name.)

onButtonDown

method source
Window_NumberInput.prototype.onButtonDown()

Called when button down happens. (Same as the RPG Maker MZ method of this name.)

onButtonOk

method source
Window_NumberInput.prototype.onButtonOk()

Called when button ok happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

updatePlacement

method source
Window_NumberInput.prototype.updatePlacement()

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

update

method source
Window_NumberInput.prototype.update()

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

drawItem

method source
Window_NumberInput.prototype.drawItem(index)

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

Other

windowWidth

method source
Window_NumberInput.prototype.windowWidth()

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

windowHeight

method source
Window_NumberInput.prototype.windowHeight()

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

buttonSpacing

method source
Window_NumberInput.prototype.buttonSpacing()

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

buttonY

method source
Window_NumberInput.prototype.buttonY()

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