Skip to content

Classes ​

GlobalDescription
Window_Command ⇐ Window_Selectable

Functions ​

GlobalDescription
initialize(x, y)

初始化 Initialize the window.

windowWidth() ⇒ Number

窗口宽度 Returns the width of the window.

windowHeight() ⇒ Number

窗口高度 Returns the height of the window.

numVisibleRows() ⇒ Number

可见的行数 Returns the number of visible rows.

maxItems() ⇒ Number

最大项目数 Returns the maximum number of items.

clearCommandList()

清空指令列表 Clears the command list.

makeCommandList()

制作指令列表 Makes the command list.

addCommand(name, symbol, [enabled], [ext])

增加指令 Adds a command to the list.

commandName(index) ⇒ String

指令名字 Returns the command name at the specified index.

commandSymbol(index) ⇒ String

指令标识 Returns the command symbol at the specified index.

isCommandEnabled(index) ⇒ Boolean

是否指令启用 Checks whether the command is enabled.

currentData() ⇒ Object | null

当前数据 Returns the current command data.

isCurrentItemEnabled() ⇒ Boolean

是否当前项目启用 Checks whether the current item is enabled.

currentSymbol() ⇒ String | null

当前标识 Returns the current command symbol.

currentExt() ⇒ *

当前扩展 Returns the current command extension data.

findSymbol(symbol) ⇒ Number

寻找标识 Finds the index of the command with the specified symbol.

selectSymbol(symbol)

选择标识 Selects the command with the specified symbol.

findExt(ext) ⇒ Number

寻找扩展 Finds the index of the command with the specified extension data.

selectExt(ext)

选择扩展 Selects the command with the specified extension data.

drawItem(index)

绘制项目 Draws the item at the specified index.

itemTextAlign() ⇒ String

项目文本对齐 Returns the text alignment for items.

isOkEnabled() ⇒ Boolean

是否确定启用 Checks whether the OK handler is enabled.

callOkHandler()

呼叫确定处理者 Calls the OK handler.

refresh()

刷新 Refreshes the window.

Window_Command ⇐ Window_Selectable ​

Kind: global class
Extends: Window_Selectable


new Window_Command() ​

窗口_指令
选择指令的窗口的父类。
The superclass of windows for selecting a command.


initialize(x, y) ​

初始化
Initialize the window.

Kind: global function

ParamTypeDescription
xNumberX坐标 The x coordinate
yNumberY坐标 The y coordinate

windowWidth() ⇒ Number ​

窗口宽度
Returns the width of the window.

Kind: global function
Returns: Number - 窗口的宽度 The width of the window


windowHeight() ⇒ Number ​

窗口高度
Returns the height of the window.

Kind: global function
Returns: Number - 窗口的高度 The height of the window


numVisibleRows() ⇒ Number ​

可见的行数
Returns the number of visible rows.

Kind: global function
Returns: Number - 可见的行数 The number of visible rows


maxItems() ⇒ Number ​

最大项目数
Returns the maximum number of items.

Kind: global function
Returns: Number - 最大项目数 The maximum number of items


clearCommandList() ​

清空指令列表
Clears the command list.

Kind: global function


makeCommandList() ​

制作指令列表
Makes the command list.

Kind: global function


addCommand(name, symbol, [enabled], [ext]) ​

增加指令
Adds a command to the list.

Kind: global function

ParamTypeDefaultDescription
nameString指令名称 The command name
symbolString指令标识 The command symbol
[enabled]Booleantrue是否启用 Whether enabled
[ext]*扩展数据 Extension data

commandName(index) ⇒ String ​

指令名字
Returns the command name at the specified index.

Kind: global function
Returns: String - 指令名称 The command name

ParamTypeDescription
indexNumber索引 The index

commandSymbol(index) ⇒ String ​

指令标识
Returns the command symbol at the specified index.

Kind: global function
Returns: String - 指令标识 The command symbol

ParamTypeDescription
indexNumber索引 The index

isCommandEnabled(index) ⇒ Boolean ​

是否指令启用
Checks whether the command is enabled.

Kind: global function
Returns: Boolean - 是否启用 Whether the command is enabled

ParamTypeDescription
indexNumber索引 The index

currentData() ⇒ Object | null ​

当前数据
Returns the current command data.

Kind: global function
Returns: Object | null - 当前命令数据 The current command data


isCurrentItemEnabled() ⇒ Boolean ​

是否当前项目启用
Checks whether the current item is enabled.

Kind: global function
Returns: Boolean - 是否启用 Whether the current item is enabled


currentSymbol() ⇒ String | null ​

当前标识
Returns the current command symbol.

Kind: global function
Returns: String | null - 当前标识 The current command symbol


currentExt() ⇒ * ​

当前扩展
Returns the current command extension data.

Kind: global function
Returns: * - 当前扩展数据 The current command extension data


findSymbol(symbol) ⇒ Number ​

寻找标识
Finds the index of the command with the specified symbol.

Kind: global function
Returns: Number - 命令索引,未找到返回-1 The command index, -1 if not found

ParamTypeDescription
symbolString要查找的标识 The symbol to find

selectSymbol(symbol) ​

选择标识
Selects the command with the specified symbol.

Kind: global function

ParamTypeDescription
symbolString要选择的标识 The symbol to select

findExt(ext) ⇒ Number ​

寻找扩展
Finds the index of the command with the specified extension data.

Kind: global function
Returns: Number - 命令索引,未找到返回-1 The command index, -1 if not found

ParamTypeDescription
ext*要查找的扩展数据 The extension data to find

selectExt(ext) ​

选择扩展
Selects the command with the specified extension data.

Kind: global function

ParamTypeDescription
ext*要选择的扩展数据 The extension data to select

drawItem(index) ​

绘制项目
Draws the item at the specified index.

Kind: global function

ParamTypeDescription
indexNumber项目索引 The item index

itemTextAlign() ⇒ String ​

项目文本对齐
Returns the text alignment for items.

Kind: global function
Returns: String - 文本对齐方式 The text alignment


isOkEnabled() ⇒ Boolean ​

是否确定启用
Checks whether the OK handler is enabled.

Kind: global function
Returns: Boolean - 是否启用 Whether the OK handler is enabled


callOkHandler() ​

呼叫确定处理者
Calls the OK handler.

Kind: global function


refresh() ​

刷新
Refreshes the window.

Kind: global function


贡献者

暂无相关贡献者

页面历史

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