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 sourceWindow_NumberInput.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
createButtons
method sourceWindow_NumberInput.prototype.createButtons()
Creates the buttons. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxCols
method sourceWindow_NumberInput.prototype.maxCols()
The maximum cols. (Same as the RPG Maker MZ method of this name.)
maxItems
method sourceWindow_NumberInput.prototype.maxItems()
The maximum items. (Same as the RPG Maker MZ method of this name.)
itemWidth
method sourceWindow_NumberInput.prototype.itemWidth()
Item width. (Same as the RPG Maker MZ method of this name.)
itemRect
method sourceWindow_NumberInput.prototype.itemRect(index)
Item rect. (Same as the RPG Maker MZ method of this name.)
totalButtonWidth
method sourceWindow_NumberInput.prototype.totalButtonWidth()
Total button width. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isScrollEnabled
method sourceWindow_NumberInput.prototype.isScrollEnabled()
Whether it is scroll enabled. (Same as the RPG Maker MZ method of this name.)
isHoverEnabled
method sourceWindow_NumberInput.prototype.isHoverEnabled()
Whether it is hover enabled. (Same as the RPG Maker MZ method of this name.)
isTouchOkEnabled
method sourceWindow_NumberInput.prototype.isTouchOkEnabled()
Whether it is touch ok enabled. (Same as the RPG Maker MZ method of this name.)
isOkEnabled
method sourceWindow_NumberInput.prototype.isOkEnabled()
Whether it is ok enabled. (Same as the RPG Maker MZ method of this name.)
isCancelEnabled
method sourceWindow_NumberInput.prototype.isCancelEnabled()
Whether it is cancel enabled. (Same as the RPG Maker MZ method of this name.)
Actions
setMessageWindow
method sourceWindow_NumberInput.prototype.setMessageWindow(messageWindow)
Sets the message window. (Same as the RPG Maker MZ method of this name.)
start
method sourceWindow_NumberInput.prototype.start()
Start. (Same as the RPG Maker MZ method of this name.)
placeButtons
method sourceWindow_NumberInput.prototype.placeButtons()
Place buttons. (Same as the RPG Maker MZ method of this name.)
changeDigit
method sourceWindow_NumberInput.prototype.changeDigit(up)
Changes the digit. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processDigitChange
method sourceWindow_NumberInput.prototype.processDigitChange()
Handles the digit change. (Same as the RPG Maker MZ method of this name.)
processOk
method sourceWindow_NumberInput.prototype.processOk()
Handles the ok. (Same as the RPG Maker MZ method of this name.)
onButtonUp
method sourceWindow_NumberInput.prototype.onButtonUp()
Called when button up happens. (Same as the RPG Maker MZ method of this name.)
onButtonDown
method sourceWindow_NumberInput.prototype.onButtonDown()
Called when button down happens. (Same as the RPG Maker MZ method of this name.)
onButtonOk
method sourceWindow_NumberInput.prototype.onButtonOk()
Called when button ok happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
updatePlacement
method sourceWindow_NumberInput.prototype.updatePlacement()
Updates the placement each frame. (Same as the RPG Maker MZ method of this name.)
update
method sourceWindow_NumberInput.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
drawItem
method sourceWindow_NumberInput.prototype.drawItem(index)
Draws the item. (Same as the RPG Maker MZ method of this name.)
Other
windowWidth
method sourceWindow_NumberInput.prototype.windowWidth()
Window width. (Same as the RPG Maker MZ method of this name.)
windowHeight
method sourceWindow_NumberInput.prototype.windowHeight()
Window height. (Same as the RPG Maker MZ method of this name.)
buttonSpacing
method sourceWindow_NumberInput.prototype.buttonSpacing()
Button spacing. (Same as the RPG Maker MZ method of this name.)
buttonY
method sourceWindow_NumberInput.prototype.buttonY()
Button y. (Same as the RPG Maker MZ method of this name.)