Skip to content

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

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_SavefileList.setMode(mode)

设置窗口模式
Set window mode

Kind: instance method of Window_SavefileList

ParamTypeDescription
modestring模式(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

ParamTypeDescription
indexnumber项目索引 - Item index

window_SavefileList.drawFileId(id, x, y)

绘制文件ID
Draw file ID

Kind: instance method of Window_SavefileList

ParamTypeDescription
idnumber文件ID - File ID
xnumberX坐标 - X coordinate
ynumberY坐标 - Y coordinate

window_SavefileList.drawContents(info, rect, valid)

绘制内容
Draw contents

Kind: instance method of Window_SavefileList

ParamTypeDescription
infoObject存档信息 - Savefile information
rectRectangle矩形区域 - Rectangle area
validboolean是否有效 - Whether valid

window_SavefileList.drawGameTitle(info, x, y, width)

绘制游戏标题
Draw game title

Kind: instance method of Window_SavefileList

ParamTypeDescription
infoObject存档信息 - Savefile information
xnumberX坐标 - X coordinate
ynumberY坐标 - Y coordinate
widthnumber宽度 - Width

window_SavefileList.drawPartyCharacters(info, x, y)

绘制队伍行走图
Draw party characters

Kind: instance method of Window_SavefileList

ParamTypeDescription
infoObject存档信息 - Savefile information
xnumberX坐标 - X coordinate
ynumberY坐标 - Y coordinate

window_SavefileList.drawPlaytime(info, x, y, width)

绘制游戏时间
Draw playtime

Kind: instance method of Window_SavefileList

ParamTypeDescription
infoObject存档信息 - Savefile information
xnumberX坐标 - X coordinate
ynumberY坐标 - Y coordinate
widthnumber宽度 - Width

window_SavefileList.playOkSound()

播放确定声音
Play OK sound

Kind: instance method of Window_SavefileList


贡献者

暂无相关贡献者

页面历史

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