Class in reactor_windows.js

Window_ShopBuy

16 functions in 6 groups · hide internal

Windows draw every menu, list and status panel.

Familiar territory. Window_ShopBuy 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.
setupGoods() Setup goods.
makeItemList() Makes the item list.

Getting Information 3

maxItems() The maximum items.
item() Item.
itemAt() Item at.

Checks (True / False) 2

isCurrentItemEnabled() Whether it is current item enabled.
isEnabled() Whether it is enabled.

Actions 2

setMoney() Sets the money.
setStatusWindow() Sets the status window.

Updating & Drawing 3

refresh() Refresh.
drawItem() Draws the item.
updateHelp() Updates the help each frame.

Other 3

price() Price.
goodsToItem() Goods to item.
priceWidth() Price width.

Setup & Creation

initialize

method source
Window_ShopBuy.prototype.initialize(rect)

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

setupGoods

method source
Window_ShopBuy.prototype.setupGoods(shopGoods)

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

makeItemList

method source
Window_ShopBuy.prototype.makeItemList()

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

Getting Information

maxItems

method source
Window_ShopBuy.prototype.maxItems()

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

item

method source
Window_ShopBuy.prototype.item()

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

itemAt

method source
Window_ShopBuy.prototype.itemAt(index)

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

Checks (True / False)

isCurrentItemEnabled

method source
Window_ShopBuy.prototype.isCurrentItemEnabled()

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

isEnabled

method source
Window_ShopBuy.prototype.isEnabled(item)

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

Actions

setMoney

method source
Window_ShopBuy.prototype.setMoney(money)

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

setStatusWindow

method source
Window_ShopBuy.prototype.setStatusWindow(statusWindow)

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

Updating & Drawing

refresh

method source
Window_ShopBuy.prototype.refresh()

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

drawItem

method source
Window_ShopBuy.prototype.drawItem(index)

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

updateHelp

method source
Window_ShopBuy.prototype.updateHelp()

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

Other

price

method source
Window_ShopBuy.prototype.price(item)

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

goodsToItem

method source
Window_ShopBuy.prototype.goodsToItem(goods)

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

priceWidth

method source
Window_ShopBuy.prototype.priceWidth()

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