Skip to content

Window_BattleItem ⇐ Window_ItemList

Kind: global class
Extends: Window_ItemList

  • Window_BattleItem ⇐ Window_ItemList
    • new Window_BattleItem()
    • .initialize(x, y, width, height)
    • .includes(item) ⇒ boolean
    • .show()
    • .hide()

new Window_BattleItem()

战斗画面上的物品选择窗口类
Window for selecting an item to use on the battle screen


window_BattleItem.initialize(x, y, width, height)

初始化战斗物品窗口
Initialize the battle item window

Kind: instance method of Window_BattleItem

ParamTypeDescription
xnumber窗口的X坐标 - The x-coordinate of the window
ynumber窗口的Y坐标 - The y-coordinate of the window
widthnumber窗口的宽度 - The width of the window
heightnumber窗口的高度 - The height of the window

window_BattleItem.includes(item) ⇒ boolean

检查物品是否包含在列表中
Check if an item is included in the list

Kind: instance method of Window_BattleItem
Returns: boolean - 如果物品可以使用则返回true - Returns true if the item can be used

ParamTypeDescription
itemObject要检查的物品 - The item to check

window_BattleItem.show()

显示战斗物品窗口
Show the battle item window

Kind: instance method of Window_BattleItem


window_BattleItem.hide()

隐藏战斗物品窗口
Hide the battle item window

Kind: instance method of Window_BattleItem


贡献者

暂无相关贡献者

页面历史

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