Skip to content

Window_ShopBuy ⇐ Window_Selectable

Kind: global class
Extends: Window_Selectable

  • Window_ShopBuy ⇐ Window_Selectable
    • new Window_ShopBuy()
    • .initialize(x, y, height, shopGoods)
    • .windowWidth() ⇒ number
    • .maxItems() ⇒ number
    • .item() ⇒ Object
    • .setMoney(money)
    • .isCurrentItemEnabled() ⇒ boolean
    • .price(item) ⇒ number
    • .isEnabled(item) ⇒ boolean
    • .refresh()
    • .makeItemList()
    • .drawItem(index)
    • .setStatusWindow(statusWindow)
    • .updateHelp()

new Window_ShopBuy()

在商店画面上的选择要购买的商品的窗口
The window for selecting an item to buy on the shop screen


window_ShopBuy.initialize(x, y, height, shopGoods)

初始化商店购买窗口
Initialize the shop buy window

Kind: instance method of Window_ShopBuy

ParamTypeDescription
xnumber窗口的X坐标 - The x-coordinate of the window
ynumber窗口的Y坐标 - The y-coordinate of the window
heightnumber窗口的高度 - The height of the window
shopGoodsArray商店商品数组 - Array of shop goods

window_ShopBuy.windowWidth() ⇒ number

获取窗口宽度
Get window width

Kind: instance method of Window_ShopBuy
Returns: number - 窗口宽度 - Window width


window_ShopBuy.maxItems() ⇒ number

获取最大项目数
Get maximum number of items

Kind: instance method of Window_ShopBuy
Returns: number - 最大项目数 - Maximum number of items


window_ShopBuy.item() ⇒ Object

获取当前项目
Get current item

Kind: instance method of Window_ShopBuy
Returns: Object - 当前项目 - Current item


window_ShopBuy.setMoney(money)

设置金钱数量
Set money amount

Kind: instance method of Window_ShopBuy

ParamTypeDescription
moneynumber金钱数量 - Money amount

window_ShopBuy.isCurrentItemEnabled() ⇒ boolean

检查当前项目是否启用
Check if current item is enabled

Kind: instance method of Window_ShopBuy
Returns: boolean - 是否启用 - Whether enabled


window_ShopBuy.price(item) ⇒ number

获取物品价格
Get item price

Kind: instance method of Window_ShopBuy
Returns: number - 物品价格 - Item price

ParamTypeDescription
itemObject物品对象 - Item object

window_ShopBuy.isEnabled(item) ⇒ boolean

检查物品是否可购买
Check if item can be bought

Kind: instance method of Window_ShopBuy
Returns: boolean - 是否可购买 - Whether can be bought

ParamTypeDescription
itemObject物品对象 - Item object

window_ShopBuy.refresh()

刷新窗口
Refresh window

Kind: instance method of Window_ShopBuy


window_ShopBuy.makeItemList()

制作项目列表
Make item list

Kind: instance method of Window_ShopBuy


window_ShopBuy.drawItem(index)

绘制项目
Draw item

Kind: instance method of Window_ShopBuy

ParamTypeDescription
indexnumber项目索引 - Item index

window_ShopBuy.setStatusWindow(statusWindow)

设置状态窗口
Set status window

Kind: instance method of Window_ShopBuy

ParamTypeDescription
statusWindowWindow_ShopStatus状态窗口对象 - Status window object

window_ShopBuy.updateHelp()

更新帮助信息
Update help information

Kind: instance method of Window_ShopBuy


贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新