Class in reactor_windows.js

Window_ShopNumber

34 public functions in 7 groups · show internal (_) functions

Windows draw every menu, list and status panel.

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 source
Window_ShopNumber.prototype.initialize(rect)

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

setup

method source
Window_ShopNumber.prototype.setup(item, max, price)

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

createButtons

method source
Window_ShopNumber.prototype.createButtons()

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

Getting Information

totalButtonWidth

method source
Window_ShopNumber.prototype.totalButtonWidth()

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

itemNameY

method source
Window_ShopNumber.prototype.itemNameY()

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

totalPriceY

method source
Window_ShopNumber.prototype.totalPriceY()

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

maxDigits

method source
Window_ShopNumber.prototype.maxDigits()

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

itemRect

method source
Window_ShopNumber.prototype.itemRect()

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

Checks (True / False)

isScrollEnabled

method source
Window_ShopNumber.prototype.isScrollEnabled()

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

isTouchOkEnabled

method source
Window_ShopNumber.prototype.isTouchOkEnabled()

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

Actions

setCurrencyUnit

method source
Window_ShopNumber.prototype.setCurrencyUnit(currencyUnit)

Sets the currency unit. (Same as the RPG Maker MZ method of this name.)

placeButtons

method source
Window_ShopNumber.prototype.placeButtons()

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

playOkSound

method source
Window_ShopNumber.prototype.playOkSound()

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

changeNumber

method source
Window_ShopNumber.prototype.changeNumber(amount)

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

Events, Commands & Input

processNumberChange

method source
Window_ShopNumber.prototype.processNumberChange()

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

onButtonUp

method source
Window_ShopNumber.prototype.onButtonUp()

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

onButtonUp2

method source
Window_ShopNumber.prototype.onButtonUp2()

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

onButtonDown

method source
Window_ShopNumber.prototype.onButtonDown()

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

onButtonDown2

method source
Window_ShopNumber.prototype.onButtonDown2()

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

onButtonOk

method source
Window_ShopNumber.prototype.onButtonOk()

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

Updating & Drawing

refresh

method source
Window_ShopNumber.prototype.refresh()

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

drawCurrentItemName

method source
Window_ShopNumber.prototype.drawCurrentItemName()

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

drawMultiplicationSign

method source
Window_ShopNumber.prototype.drawMultiplicationSign()

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

drawNumber

method source
Window_ShopNumber.prototype.drawNumber()

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

drawHorzLine

method source
Window_ShopNumber.prototype.drawHorzLine()

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

drawTotalPrice

method source
Window_ShopNumber.prototype.drawTotalPrice()

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

update

method source
Window_ShopNumber.prototype.update()

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

Other

number

method source
Window_ShopNumber.prototype.number()

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

buttonSpacing

method source
Window_ShopNumber.prototype.buttonSpacing()

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

multiplicationSign

method source
Window_ShopNumber.prototype.multiplicationSign()

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

multiplicationSignX

method source
Window_ShopNumber.prototype.multiplicationSignX()

Multiplication sign x. (Same as the RPG Maker MZ method of this name.)

buttonY

method source
Window_ShopNumber.prototype.buttonY()

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

cursorWidth

method source
Window_ShopNumber.prototype.cursorWidth()

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

cursorX

method source
Window_ShopNumber.prototype.cursorX()

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