Window_SkillList ⇐ Window_Selectable
Kind: global class
Extends: Window_Selectable
- Window_SkillList ⇐
Window_Selectable- new Window_SkillList()
- .initialize(x, y, width, height)
- .setActor(actor)
- .setStypeId(stypeId)
- .maxCols() ⇒
number - .spacing() ⇒
number - .maxItems() ⇒
number - .item() ⇒
RPG.Skill|null - .isCurrentItemEnabled() ⇒
boolean - .includes(item) ⇒
boolean - .isEnabled(item) ⇒
boolean - .makeItemList()
- .selectLast()
- .drawItem(index)
- .costWidth() ⇒
number - .drawSkillCost(skill, x, y, width)
- .updateHelp()
- .refresh()
new Window_SkillList()
窗口_技能列表 / Window_SkillList
在技能画面上的选择技能的窗口 / The window for selecting a skill on the skill screen.
window_SkillList.initialize(x, y, width, height)
初始化 / Initialize
Kind: instance method of Window_SkillList
| 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_SkillList.setActor(actor)
设置角色 / Set Actor
Kind: instance method of Window_SkillList
| Param | Type | Description |
|---|---|---|
| actor | Game_Actor | 要设置的角色对象 / The actor object to set |
window_SkillList.setStypeId(stypeId)
设置技能类型 ID / Set Skill Type ID
Kind: instance method of Window_SkillList
| Param | Type | Description |
|---|---|---|
| stypeId | number | 技能类型 ID / The skill type ID |
window_SkillList.maxCols() ⇒ number
最大列数 / Maximum Columns
Kind: instance method of Window_SkillList
Returns: number - 最大列数 / The maximum number of columns
window_SkillList.spacing() ⇒ number
间距 / Spacing
Kind: instance method of Window_SkillList
Returns: number - 项目间距 / The spacing between items
window_SkillList.maxItems() ⇒ number
最大项目数 / Maximum Items
Kind: instance method of Window_SkillList
Returns: number - 最大项目数 / The maximum number of items
window_SkillList.item() ⇒ RPG.Skill | null
项目 / Item
Kind: instance method of Window_SkillList
Returns: RPG.Skill | null - 当前选中的技能对象或 null / The currently selected skill object or null
window_SkillList.isCurrentItemEnabled() ⇒ boolean
是否当前项目启用 / Is Current Item Enabled
Kind: instance method of Window_SkillList
Returns: boolean - 当前项目是否可用 / Whether the current item is enabled
window_SkillList.includes(item) ⇒ boolean
包含 / Includes
Kind: instance method of Window_SkillList
Returns: boolean - 是否包含该技能 / Whether the skill is included
| Param | Type | Description |
|---|---|---|
| item | RPG.Skill | 要检查的技能 / The skill to check |
window_SkillList.isEnabled(item) ⇒ boolean
是否启用 / Is Enabled
Kind: instance method of Window_SkillList
Returns: boolean - 技能是否可用 / Whether the skill is enabled
| Param | Type | Description |
|---|---|---|
| item | RPG.Skill | 要检查的技能 / The skill to check |
window_SkillList.makeItemList()
制作项目列表 / Make Item List
Kind: instance method of Window_SkillList
window_SkillList.selectLast()
选择上一个 / Select Last
Kind: instance method of Window_SkillList
window_SkillList.drawItem(index)
绘制项目 / Draw Item
Kind: instance method of Window_SkillList
| Param | Type | Description |
|---|---|---|
| index | number | 项目索引 / The item index |
window_SkillList.costWidth() ⇒ number
消耗的宽度 / Cost Width
Kind: instance method of Window_SkillList
Returns: number - 消耗文本的宽度 / The width of the cost text
window_SkillList.drawSkillCost(skill, x, y, width)
绘制技能消耗 / Draw Skill Cost
Kind: instance method of Window_SkillList
| Param | Type | Description |
|---|---|---|
| skill | RPG.Skill | 技能对象 / The skill object |
| x | number | x 坐标 / The x coordinate |
| y | number | y 坐标 / The y coordinate |
| width | number | 宽度 / The width |
window_SkillList.updateHelp()
更新帮助 / Update Help
Kind: instance method of Window_SkillList
window_SkillList.refresh()
刷新 / Refresh
Kind: instance method of Window_SkillList