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 sourceWindow_ShopBuy.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
setupGoods
method sourceWindow_ShopBuy.prototype.setupGoods(shopGoods)
Setup goods. (Same as the RPG Maker MZ method of this name.)
makeItemList
method sourceWindow_ShopBuy.prototype.makeItemList()
Makes the item list. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxItems
method sourceWindow_ShopBuy.prototype.maxItems()
The maximum items. (Same as the RPG Maker MZ method of this name.)
item
method sourceWindow_ShopBuy.prototype.item()
Item. (Same as the RPG Maker MZ method of this name.)
itemAt
method sourceWindow_ShopBuy.prototype.itemAt(index)
Item at. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isCurrentItemEnabled
method sourceWindow_ShopBuy.prototype.isCurrentItemEnabled()
Whether it is current item enabled. (Same as the RPG Maker MZ method of this name.)
isEnabled
method sourceWindow_ShopBuy.prototype.isEnabled(item)
Whether it is enabled. (Same as the RPG Maker MZ method of this name.)
Actions
setMoney
method sourceWindow_ShopBuy.prototype.setMoney(money)
Sets the money. (Same as the RPG Maker MZ method of this name.)
setStatusWindow
method sourceWindow_ShopBuy.prototype.setStatusWindow(statusWindow)
Sets the status window. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
refresh
method sourceWindow_ShopBuy.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
drawItem
method sourceWindow_ShopBuy.prototype.drawItem(index)
Draws the item. (Same as the RPG Maker MZ method of this name.)
updateHelp
method sourceWindow_ShopBuy.prototype.updateHelp()
Updates the help each frame. (Same as the RPG Maker MZ method of this name.)
Other
price
method sourceWindow_ShopBuy.prototype.price(item)
Price. (Same as the RPG Maker MZ method of this name.)
goodsToItem
method sourceWindow_ShopBuy.prototype.goodsToItem(goods)
Goods to item. (Same as the RPG Maker MZ method of this name.)
priceWidth
method sourceWindow_ShopBuy.prototype.priceWidth()
Price width. (Same as the RPG Maker MZ method of this name.)