Window_ShopNumber ⇐ Window_Selectable
Kind: global class
Extends: Window_Selectable
- Window_ShopNumber ⇐
Window_Selectable- new Window_ShopNumber()
- .initialize(x, y, height) ⇒
void - .windowWidth() ⇒
number - .number() ⇒
number - .setup(item, max, price) ⇒
void - .setCurrencyUnit(currencyUnit) ⇒
void - .createButtons() ⇒
void - .placeButtons() ⇒
void - .updateButtonsVisiblity() ⇒
void - .showButtons() ⇒
void - .hideButtons() ⇒
void - .refresh() ⇒
void - .drawMultiplicationSign() ⇒
void - .drawNumber() ⇒
void - .drawTotalPrice() ⇒
void - .itemY() ⇒
number - .priceY() ⇒
number - .buttonY() ⇒
number - .cursorWidth() ⇒
number - .cursorX() ⇒
number - .maxDigits() ⇒
number - .update() ⇒
void - .isOkTriggered() ⇒
boolean - .playOkSound() ⇒
void - .processNumberChange() ⇒
void - .changeNumber(amount) ⇒
void - .updateCursor() ⇒
void - .onButtonUp() ⇒
void - .onButtonUp2() ⇒
void - .onButtonDown() ⇒
void - .onButtonDown2() ⇒
void - .onButtonOk() ⇒
void
new Window_ShopNumber()
窗口_商店数值
在商店画面上的输入要买卖的商品数量的窗口。
The window for inputting quantity of items to buy or sell on the shop
screen.
window_ShopNumber.initialize(x, y, height) ⇒ void
初始化窗口。
Initialize the window.
Kind: instance method of Window_ShopNumber
| Param | Type | Description |
|---|---|---|
| x | number | 窗口的 X 坐标 |
| y | number | 窗口的 Y 坐标 |
| height | number | 窗口的高度 |
window_ShopNumber.windowWidth() ⇒ number
获取窗口宽度。
Get the window width.
Kind: instance method of Window_ShopNumber
Returns: number - 窗口宽度
window_ShopNumber.number() ⇒ number
获取当前数值。
Get the current number.
Kind: instance method of Window_ShopNumber
Returns: number - 当前数值
window_ShopNumber.setup(item, max, price) ⇒ void
设置商品信息。
Set up the item information.
Kind: instance method of Window_ShopNumber
| Param | Type | Description |
|---|---|---|
| item | RPG.BaseItem | 商品对象 |
| max | number | 最大数量 |
| price | number | 单价 |
window_ShopNumber.setCurrencyUnit(currencyUnit) ⇒ void
设置货币单位。
Set the currency unit.
Kind: instance method of Window_ShopNumber
| Param | Type | Description |
|---|---|---|
| currencyUnit | string | 货币单位 |
window_ShopNumber.createButtons() ⇒ void
创建按钮。
Create the buttons.
Kind: instance method of Window_ShopNumber
window_ShopNumber.placeButtons() ⇒ void
放置按钮。
Place the buttons.
Kind: instance method of Window_ShopNumber
window_ShopNumber.updateButtonsVisiblity() ⇒ void
更新按钮可见性。
Update button visibility.
Kind: instance method of Window_ShopNumber
window_ShopNumber.showButtons() ⇒ void
显示按钮。
Show the buttons.
Kind: instance method of Window_ShopNumber
window_ShopNumber.hideButtons() ⇒ void
隐藏按钮。
Hide the buttons.
Kind: instance method of Window_ShopNumber
window_ShopNumber.refresh() ⇒ void
刷新窗口内容。
Refresh the window contents.
Kind: instance method of Window_ShopNumber
window_ShopNumber.drawMultiplicationSign() ⇒ void
绘制乘号。
Draw the multiplication sign.
Kind: instance method of Window_ShopNumber
window_ShopNumber.drawNumber() ⇒ void
绘制数值。
Draw the number.
Kind: instance method of Window_ShopNumber
window_ShopNumber.drawTotalPrice() ⇒ void
绘制总价。
Draw the total price.
Kind: instance method of Window_ShopNumber
window_ShopNumber.itemY() ⇒ number
获取项目的 Y 坐标。
Get the Y coordinate of the item.
Kind: instance method of Window_ShopNumber
Returns: number - 项目 Y 坐标
window_ShopNumber.priceY() ⇒ number
获取价格的 Y 坐标。
Get the Y coordinate of the price.
Kind: instance method of Window_ShopNumber
Returns: number - 价格 Y 坐标
window_ShopNumber.buttonY() ⇒ number
获取按钮的 Y 坐标。
Get the Y coordinate of the buttons.
Kind: instance method of Window_ShopNumber
Returns: number - 按钮 Y 坐标
window_ShopNumber.cursorWidth() ⇒ number
获取光标宽度。
Get the cursor width.
Kind: instance method of Window_ShopNumber
Returns: number - 光标宽度
window_ShopNumber.cursorX() ⇒ number
获取光标的 X 坐标。
Get the X coordinate of the cursor.
Kind: instance method of Window_ShopNumber
Returns: number - 光标 X 坐标
window_ShopNumber.maxDigits() ⇒ number
获取最大位数。
Get the maximum number of digits.
Kind: instance method of Window_ShopNumber
Returns: number - 最大位数
window_ShopNumber.update() ⇒ void
更新窗口。
Update the window.
Kind: instance method of Window_ShopNumber
window_ShopNumber.isOkTriggered() ⇒ boolean
检查是否触发确定操作。
Check if the OK operation is triggered.
Kind: instance method of Window_ShopNumber
Returns: boolean - 是否触发确定操作
window_ShopNumber.playOkSound() ⇒ void
播放确定声音(空实现)。
Play the OK sound (empty implementation).
Kind: instance method of Window_ShopNumber
window_ShopNumber.processNumberChange() ⇒ void
处理数值改变。
Process number changes.
Kind: instance method of Window_ShopNumber
window_ShopNumber.changeNumber(amount) ⇒ void
改变数值。
Change the number.
Kind: instance method of Window_ShopNumber
| Param | Type | Description |
|---|---|---|
| amount | number | 改变量 |
window_ShopNumber.updateCursor() ⇒ void
更新光标位置。
Update the cursor position.
Kind: instance method of Window_ShopNumber
window_ShopNumber.onButtonUp() ⇒ void
当向上按钮点击时的处理函数。
Handler for when the up button is clicked.
Kind: instance method of Window_ShopNumber
window_ShopNumber.onButtonUp2() ⇒ void
当向上按钮(+10)点击时的处理函数。
Handler for when the up button (+10) is clicked.
Kind: instance method of Window_ShopNumber
window_ShopNumber.onButtonDown() ⇒ void
当向下按钮点击时的处理函数。
Handler for when the down button is clicked.
Kind: instance method of Window_ShopNumber
window_ShopNumber.onButtonDown2() ⇒ void
当向下按钮(-10)点击时的处理函数。
Handler for when the down button (-10) is clicked.
Kind: instance method of Window_ShopNumber
window_ShopNumber.onButtonOk() ⇒ void
当确定按钮点击时的处理函数。
Handler for when the OK button is clicked.
Kind: instance method of Window_ShopNumber