Skip to content

Window_NumberInput ⇐ Window_Selectable

Kind: global class
Extends: Window_Selectable

  • Window_NumberInput ⇐ Window_Selectable
    • new Window_NumberInput()
    • .initialize(messageWindow)
    • .start()
    • .updatePlacement()
    • .windowWidth() ⇒ number
    • .windowHeight() ⇒ number
    • .maxCols() ⇒ number
    • .maxItems() ⇒ number
    • .spacing() ⇒ number
    • .itemWidth() ⇒ number
    • .createButtons()
    • .placeButtons()
    • .updateButtonsVisiblity()
    • .showButtons()
    • .hideButtons()
    • .buttonY() ⇒ number
    • .update()
    • .processDigitChange()
    • .changeDigit(up)
    • .isTouchOkEnabled() ⇒ boolean
    • .isOkEnabled() ⇒ boolean
    • .isCancelEnabled() ⇒ boolean
    • .isOkTriggered() ⇒ boolean
    • .processOk()
    • .drawItem(index)
    • .onButtonUp()
    • .onButtonDown()
    • .onButtonOk()

new Window_NumberInput()

数值输入窗口类,用于事件指令[数值输入处理]
Window for inputting numbers, used for the event command [Input Number]


window_NumberInput.initialize(messageWindow)

初始化数值输入窗口
Initialize the number input window

Kind: instance method of Window_NumberInput

ParamTypeDescription
messageWindowWindow_Message消息窗口对象 - The message window object

window_NumberInput.start()

开始数值输入
Start number input

Kind: instance method of Window_NumberInput


window_NumberInput.updatePlacement()

更新窗口位置
Update window placement

Kind: instance method of Window_NumberInput


window_NumberInput.windowWidth() ⇒ number

获取窗口宽度
Get window width

Kind: instance method of Window_NumberInput
Returns: number - 窗口宽度 - Window width


window_NumberInput.windowHeight() ⇒ number

获取窗口高度
Get window height

Kind: instance method of Window_NumberInput
Returns: number - 窗口高度 - Window height


window_NumberInput.maxCols() ⇒ number

获取最大列数
Get maximum number of columns

Kind: instance method of Window_NumberInput
Returns: number - 最大列数 - Maximum number of columns


window_NumberInput.maxItems() ⇒ number

获取最大项目数
Get maximum number of items

Kind: instance method of Window_NumberInput
Returns: number - 最大项目数 - Maximum number of items


window_NumberInput.spacing() ⇒ number

获取项目间距
Get item spacing

Kind: instance method of Window_NumberInput
Returns: number - 项目间距 - Item spacing


window_NumberInput.itemWidth() ⇒ number

获取项目宽度
Get item width

Kind: instance method of Window_NumberInput
Returns: number - 项目宽度 - Item width


window_NumberInput.createButtons()

创建按钮
Create buttons

Kind: instance method of Window_NumberInput


window_NumberInput.placeButtons()

放置按钮
Place buttons

Kind: instance method of Window_NumberInput


window_NumberInput.updateButtonsVisiblity()

更新按钮可见性
Update button visibility

Kind: instance method of Window_NumberInput


window_NumberInput.showButtons()

显示按钮
Show buttons

Kind: instance method of Window_NumberInput


window_NumberInput.hideButtons()

隐藏按钮
Hide buttons

Kind: instance method of Window_NumberInput


window_NumberInput.buttonY() ⇒ number

获取按钮的Y坐标
Get button Y coordinate

Kind: instance method of Window_NumberInput
Returns: number - 按钮的Y坐标 - Button Y coordinate


window_NumberInput.update()

更新窗口
Update window

Kind: instance method of Window_NumberInput


window_NumberInput.processDigitChange()

处理数字改变
Process digit change

Kind: instance method of Window_NumberInput


window_NumberInput.changeDigit(up)

改变数字
Change digit

Kind: instance method of Window_NumberInput

ParamTypeDescription
upboolean是否向上增加 - Whether to increase upward

window_NumberInput.isTouchOkEnabled() ⇒ boolean

检查触摸确定是否启用
Check if touch OK is enabled

Kind: instance method of Window_NumberInput
Returns: boolean - 触摸确定是否启用 - Whether touch OK is enabled


window_NumberInput.isOkEnabled() ⇒ boolean

检查确定是否启用
Check if OK is enabled

Kind: instance method of Window_NumberInput
Returns: boolean - 确定是否启用 - Whether OK is enabled


window_NumberInput.isCancelEnabled() ⇒ boolean

检查取消是否启用
Check if cancel is enabled

Kind: instance method of Window_NumberInput
Returns: boolean - 取消是否启用 - Whether cancel is enabled


window_NumberInput.isOkTriggered() ⇒ boolean

检查确定是否被触发
Check if OK is triggered

Kind: instance method of Window_NumberInput
Returns: boolean - 确定是否被触发 - Whether OK is triggered


window_NumberInput.processOk()

处理确定操作
Process OK operation

Kind: instance method of Window_NumberInput


window_NumberInput.drawItem(index)

绘制项目
Draw item

Kind: instance method of Window_NumberInput

ParamTypeDescription
indexnumber项目索引 - Item index

window_NumberInput.onButtonUp()

当向上按钮被按下时
When up button is pressed

Kind: instance method of Window_NumberInput


window_NumberInput.onButtonDown()

当向下按钮被按下时
When down button is pressed

Kind: instance method of Window_NumberInput


window_NumberInput.onButtonOk()

当确定按钮被按下时
When OK button is pressed

Kind: instance method of Window_NumberInput


贡献者

暂无相关贡献者

页面历史

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