Classes
| Global | Description |
|---|---|
Window_ItemList ⇐ Window_Selectable | |
Window_SkillType ⇐ Window_Command |
Window_ItemList ⇐ Window_Selectable
Kind: global class
Extends: Window_Selectable
- Window_ItemList ⇐
Window_Selectable- new Window_ItemList()
- .initialize(x, y, width, height)
- .setCategory(category)
- .maxCols() ⇒
number - .spacing() ⇒
number - .maxItems() ⇒
number - .item() ⇒
RPG.BaseItem|null - .isCurrentItemEnabled() ⇒
boolean - .includes(item) ⇒
boolean - .needsNumber() ⇒
boolean - .isEnabled(item) ⇒
boolean - .makeItemList()
- .selectLast()
- .drawItem(index)
- .numberWidth() ⇒
number - .drawItemNumber(item, x, y, width)
- .updateHelp()
- .refresh()
new Window_ItemList()
窗口_物品列表 / Window_ItemList
在物品画面上的选择物品的窗口 / The window for selecting an item on the item screen.
window_ItemList.initialize(x, y, width, height)
初始化 / Initialize
Kind: instance method of Window_ItemList
| Param | Type | Description |
|---|---|---|
| x | number | 窗口的 x 坐标 / The x coordinate of the window |
| y | number | 窗口的 y 坐标 / The y coordinate of the window |
| width | number | 窗口的宽度 / The width of the window |
| height | number | 窗口的高度 / The height of the window |
window_ItemList.setCategory(category)
设置类别 / Set Category
Kind: instance method of Window_ItemList
| Param | Type | Description |
|---|---|---|
| category | string | 物品类别 / The item category |
window_ItemList.maxCols() ⇒ number
最大列数 / Maximum Columns
Kind: instance method of Window_ItemList
Returns: number - 最大列数 / The maximum number of columns
window_ItemList.spacing() ⇒ number
间距 / Spacing
Kind: instance method of Window_ItemList
Returns: number - 项目间距 / The spacing between items
window_ItemList.maxItems() ⇒ number
最大项目数 / Maximum Items
Kind: instance method of Window_ItemList
Returns: number - 最大项目数 / The maximum number of items
window_ItemList.item() ⇒ RPG.BaseItem | null
项目 / Item
Kind: instance method of Window_ItemList
Returns: RPG.BaseItem | null - 当前选中的物品对象或 null / The currently selected item object or null
window_ItemList.isCurrentItemEnabled() ⇒ boolean
是否当前项目启用 / Is Current Item Enabled
Kind: instance method of Window_ItemList
Returns: boolean - 当前项目是否可用 / Whether the current item is enabled
window_ItemList.includes(item) ⇒ boolean
包含 / Includes
Kind: instance method of Window_ItemList
Returns: boolean - 是否包含该物品 / Whether the item is included
| Param | Type | Description |
|---|---|---|
| item | RPG.BaseItem | 要检查的物品 / The item to check |
window_ItemList.needsNumber() ⇒ boolean
是否需要数量 / Needs Number
Kind: instance method of Window_ItemList
Returns: boolean - 是否需要显示数量 / Whether to display the number
window_ItemList.isEnabled(item) ⇒ boolean
是否启用 / Is Enabled
Kind: instance method of Window_ItemList
Returns: boolean - 物品是否可用 / Whether the item is enabled
| Param | Type | Description |
|---|---|---|
| item | RPG.BaseItem | 要检查的物品 / The item to check |
window_ItemList.makeItemList()
制作项目列表 / Make Item List
Kind: instance method of Window_ItemList
window_ItemList.selectLast()
选择上一个 / Select Last
Kind: instance method of Window_ItemList
window_ItemList.drawItem(index)
绘制项目 / Draw Item
Kind: instance method of Window_ItemList
| Param | Type | Description |
|---|---|---|
| index | number | 项目索引 / The item index |
window_ItemList.numberWidth() ⇒ number
数字宽度 / Number Width
Kind: instance method of Window_ItemList
Returns: number - 数字文本的宽度 / The width of the number text
window_ItemList.drawItemNumber(item, x, y, width)
绘制物品数量 / Draw Item Number
Kind: instance method of Window_ItemList
| Param | Type | Description |
|---|---|---|
| item | RPG.BaseItem | 物品对象 / The item object |
| x | number | x 坐标 / The x coordinate |
| y | number | y 坐标 / The y coordinate |
| width | number | 宽度 / The width |
window_ItemList.updateHelp()
更新帮助 / Update Help
Kind: instance method of Window_ItemList
window_ItemList.refresh()
刷新 / Refresh
Kind: instance method of Window_ItemList
Window_SkillType ⇐ Window_Command
Kind: global class
Extends: Window_Command
- Window_SkillType ⇐
Window_Command- new Window_SkillType()
- .initialize(x, y)
- .windowWidth() ⇒
number - .setActor(actor)
- .numVisibleRows() ⇒
number - .makeCommandList()
- .update()
- .setSkillWindow(skillWindow)
- .selectLast()
new Window_SkillType()
窗口技能类型 / Window_SkillType
在技能画面上的选择技能类型的窗口 / The window for selecting a skill type on the skill screen.
window_SkillType.initialize(x, y)
初始化 / Initialize
Kind: instance method of Window_SkillType
| Param | Type | Description |
|---|---|---|
| x | number | 窗口的 x 坐标 / The x coordinate of the window |
| y | number | 窗口的 y 坐标 / The y coordinate of the window |
window_SkillType.windowWidth() ⇒ number
窗口宽度 / Window Width
Kind: instance method of Window_SkillType
Returns: number - 窗口宽度 / The window width
window_SkillType.setActor(actor)
设置角色 / Set Actor
Kind: instance method of Window_SkillType
| Param | Type | Description |
|---|---|---|
| actor | Game_Actor | 要设置的角色对象 / The actor object to set |
window_SkillType.numVisibleRows() ⇒ number
可见的行数 / Number of Visible Rows
Kind: instance method of Window_SkillType
Returns: number - 可见行数 / The number of visible rows
window_SkillType.makeCommandList()
制作指令列表 / Make Command List
Kind: instance method of Window_SkillType
window_SkillType.update()
更新 / Update
Kind: instance method of Window_SkillType
window_SkillType.setSkillWindow(skillWindow)
设置技能窗口 / Set Skill Window
Kind: instance method of Window_SkillType
| Param | Type | Description |
|---|---|---|
| skillWindow | Window_SkillList | 技能窗口 / The skill window |
window_SkillType.selectLast()
选择上一个 / Select Last
Kind: instance method of Window_SkillType