Class in reactor_windows.js
Window_ShopNumber
34 public functions in 7 groups · show internal (_) functions
Familiar territory. Window_ShopNumber 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. |
| setup() | Setup. |
| createButtons() | Creates the buttons. |
Getting Information 5
| totalButtonWidth() | Total button width. |
| itemNameY() | Item name y. |
| totalPriceY() | Total price y. |
| maxDigits() | The maximum digits. |
| itemRect() | Item rect. |
Checks (True / False) 2
| isScrollEnabled() | Whether it is scroll enabled. |
| isTouchOkEnabled() | Whether it is touch ok enabled. |
Actions 4
| setCurrencyUnit() | Sets the currency unit. |
| placeButtons() | Place buttons. |
| playOkSound() | Plays the ok sound. |
| changeNumber() | Changes the number. |
Events, Commands & Input 6
| processNumberChange() | Handles the number change. |
| onButtonUp() | Called when button up happens. |
| onButtonUp2() | Called when button up2 happens. |
| onButtonDown() | Called when button down happens. |
| onButtonDown2() | Called when button down2 happens. |
| onButtonOk() | Called when button ok happens. |
Updating & Drawing 7
| refresh() | Refresh. |
| drawCurrentItemName() | Draws the current item name. |
| drawMultiplicationSign() | Draws the multiplication sign. |
| drawNumber() | Draws the number. |
| drawHorzLine() | Draws the horz line. |
| drawTotalPrice() | Draws the total price. |
| update() | Update. |
Other 7
| number() | Number. |
| buttonSpacing() | Button spacing. |
| multiplicationSign() | Multiplication sign. |
| multiplicationSignX() | Multiplication sign x. |
| buttonY() | Button y. |
| cursorWidth() | Cursor width. |
| cursorX() | Cursor x. |
Setup & Creation
initialize
method sourceWindow_ShopNumber.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
setup
method sourceWindow_ShopNumber.prototype.setup(item, max, price)
Setup. (Same as the RPG Maker MZ method of this name.)
createButtons
method sourceWindow_ShopNumber.prototype.createButtons()
Creates the buttons. (Same as the RPG Maker MZ method of this name.)
Getting Information
totalButtonWidth
method sourceWindow_ShopNumber.prototype.totalButtonWidth()
Total button width. (Same as the RPG Maker MZ method of this name.)
itemNameY
method sourceWindow_ShopNumber.prototype.itemNameY()
Item name y. (Same as the RPG Maker MZ method of this name.)
totalPriceY
method sourceWindow_ShopNumber.prototype.totalPriceY()
Total price y. (Same as the RPG Maker MZ method of this name.)
maxDigits
method sourceWindow_ShopNumber.prototype.maxDigits()
The maximum digits. (Same as the RPG Maker MZ method of this name.)
itemRect
method sourceWindow_ShopNumber.prototype.itemRect()
Item rect. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isScrollEnabled
method sourceWindow_ShopNumber.prototype.isScrollEnabled()
Whether it is scroll enabled. (Same as the RPG Maker MZ method of this name.)
isTouchOkEnabled
method sourceWindow_ShopNumber.prototype.isTouchOkEnabled()
Whether it is touch ok enabled. (Same as the RPG Maker MZ method of this name.)
Actions
setCurrencyUnit
method sourceWindow_ShopNumber.prototype.setCurrencyUnit(currencyUnit)
Sets the currency unit. (Same as the RPG Maker MZ method of this name.)
placeButtons
method sourceWindow_ShopNumber.prototype.placeButtons()
Place buttons. (Same as the RPG Maker MZ method of this name.)
playOkSound
method sourceWindow_ShopNumber.prototype.playOkSound()
Plays the ok sound. (Same as the RPG Maker MZ method of this name.)
changeNumber
method sourceWindow_ShopNumber.prototype.changeNumber(amount)
Changes the number. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processNumberChange
method sourceWindow_ShopNumber.prototype.processNumberChange()
Handles the number change. (Same as the RPG Maker MZ method of this name.)
onButtonUp
method sourceWindow_ShopNumber.prototype.onButtonUp()
Called when button up happens. (Same as the RPG Maker MZ method of this name.)
onButtonUp2
method sourceWindow_ShopNumber.prototype.onButtonUp2()
Called when button up2 happens. (Same as the RPG Maker MZ method of this name.)
onButtonDown
method sourceWindow_ShopNumber.prototype.onButtonDown()
Called when button down happens. (Same as the RPG Maker MZ method of this name.)
onButtonDown2
method sourceWindow_ShopNumber.prototype.onButtonDown2()
Called when button down2 happens. (Same as the RPG Maker MZ method of this name.)
onButtonOk
method sourceWindow_ShopNumber.prototype.onButtonOk()
Called when button ok happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
refresh
method sourceWindow_ShopNumber.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
drawCurrentItemName
method sourceWindow_ShopNumber.prototype.drawCurrentItemName()
Draws the current item name. (Same as the RPG Maker MZ method of this name.)
drawMultiplicationSign
method sourceWindow_ShopNumber.prototype.drawMultiplicationSign()
Draws the multiplication sign. (Same as the RPG Maker MZ method of this name.)
drawNumber
method sourceWindow_ShopNumber.prototype.drawNumber()
Draws the number. (Same as the RPG Maker MZ method of this name.)
drawHorzLine
method sourceWindow_ShopNumber.prototype.drawHorzLine()
Draws the horz line. (Same as the RPG Maker MZ method of this name.)
drawTotalPrice
method sourceWindow_ShopNumber.prototype.drawTotalPrice()
Draws the total price. (Same as the RPG Maker MZ method of this name.)
update
method sourceWindow_ShopNumber.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
Other
number
method sourceWindow_ShopNumber.prototype.number()
Number. (Same as the RPG Maker MZ method of this name.)
buttonSpacing
method sourceWindow_ShopNumber.prototype.buttonSpacing()
Button spacing. (Same as the RPG Maker MZ method of this name.)
multiplicationSign
method sourceWindow_ShopNumber.prototype.multiplicationSign()
Multiplication sign. (Same as the RPG Maker MZ method of this name.)
multiplicationSignX
method sourceWindow_ShopNumber.prototype.multiplicationSignX()
Multiplication sign x. (Same as the RPG Maker MZ method of this name.)
buttonY
method sourceWindow_ShopNumber.prototype.buttonY()
Button y. (Same as the RPG Maker MZ method of this name.)
cursorWidth
method sourceWindow_ShopNumber.prototype.cursorWidth()
Cursor width. (Same as the RPG Maker MZ method of this name.)
cursorX
method sourceWindow_ShopNumber.prototype.cursorX()
Cursor x. (Same as the RPG Maker MZ method of this name.)