Window_SavefileList ⇐ Window_Selectable
Kind: global class
Extends: Window_Selectable
- Window_SavefileList ⇐
Window_Selectable- new Window_SavefileList()
- .initialize(x, y, width, height)
- .setMode(mode)
- .maxItems() ⇒
number - .maxVisibleItems() ⇒
number - .itemHeight() ⇒
number - .drawItem(index)
- .drawFileId(id, x, y)
- .drawContents(info, rect, valid)
- .drawGameTitle(info, x, y, width)
- .drawPartyCharacters(info, x, y)
- .drawPlaytime(info, x, y, width)
- .playOkSound()
new Window_SavefileList()
存档和读档画面上的存档选择窗口
Window for selecting a save file on the save and load screens
window_SavefileList.initialize(x, y, width, height)
初始化存档列表窗口
Initialize the savefile list window
Kind: instance method of Window_SavefileList
| 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_SavefileList.setMode(mode)
设置窗口模式
Set window mode
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| mode | string | 模式(save:保存,load:读取) - Mode (save: save, load: load) |
window_SavefileList.maxItems() ⇒ number
获取最大项目数
Get maximum number of items
Kind: instance method of Window_SavefileList
Returns: number - 最大项目数 - Maximum number of items
window_SavefileList.maxVisibleItems() ⇒ number
获取最大可见项目数
Get maximum number of visible items
Kind: instance method of Window_SavefileList
Returns: number - 最大可见项目数 - Maximum number of visible items
window_SavefileList.itemHeight() ⇒ number
获取项目高度
Get item height
Kind: instance method of Window_SavefileList
Returns: number - 项目高度 - Item height
window_SavefileList.drawItem(index)
绘制项目
Draw item
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| index | number | 项目索引 - Item index |
window_SavefileList.drawFileId(id, x, y)
绘制文件ID
Draw file ID
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| id | number | 文件ID - File ID |
| x | number | X坐标 - X coordinate |
| y | number | Y坐标 - Y coordinate |
window_SavefileList.drawContents(info, rect, valid)
绘制内容
Draw contents
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| info | Object | 存档信息 - Savefile information |
| rect | Rectangle | 矩形区域 - Rectangle area |
| valid | boolean | 是否有效 - Whether valid |
window_SavefileList.drawGameTitle(info, x, y, width)
绘制游戏标题
Draw game title
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| info | Object | 存档信息 - Savefile information |
| x | number | X坐标 - X coordinate |
| y | number | Y坐标 - Y coordinate |
| width | number | 宽度 - Width |
window_SavefileList.drawPartyCharacters(info, x, y)
绘制队伍行走图
Draw party characters
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| info | Object | 存档信息 - Savefile information |
| x | number | X坐标 - X coordinate |
| y | number | Y坐标 - Y coordinate |
window_SavefileList.drawPlaytime(info, x, y, width)
绘制游戏时间
Draw playtime
Kind: instance method of Window_SavefileList
| Param | Type | Description |
|---|---|---|
| info | Object | 存档信息 - Savefile information |
| x | number | X坐标 - X coordinate |
| y | number | Y坐标 - Y coordinate |
| width | number | 宽度 - Width |
window_SavefileList.playOkSound()
播放确定声音
Play OK sound
Kind: instance method of Window_SavefileList