Window_ShopStatus ⇐ Window_Base
Kind: global class
Extends: Window_Base
- Window_ShopStatus ⇐
Window_Base- new Window_ShopStatus()
- .initialize(x, y, width, height)
- .refresh() ⇒
void - .setItem(item) ⇒
void - .isEquipItem() ⇒
boolean - .drawPossession(x, y) ⇒
void - .drawEquipInfo(x, y) ⇒
void - .statusMembers() ⇒
Array.<Game_Actor> - .pageSize() ⇒
number - .maxPages() ⇒
number - .drawActorEquipInfo(x, y, actor) ⇒
void - .drawActorParamChange(x, y, actor, item1) ⇒
void - .paramId() ⇒
number - .currentEquippedItem(actor, etypeId) ⇒
RPG_EquipItem|null - .update() ⇒
void - .updatePage() ⇒
void - .isPageChangeEnabled() ⇒
boolean - .isPageChangeRequested() ⇒
boolean - .isTouchedInsideFrame() ⇒
boolean - .changePage() ⇒
void
new Window_ShopStatus()
在商店画面上的显示物品持有数和角色装备的窗口
The window for displaying number of items in possession and the actor's
equipment on the shop screen
window_ShopStatus.initialize(x, y, width, height)
初始化商店状态窗口
Initialize the shop status window
Kind: instance method of Window_ShopStatus
| 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_ShopStatus.refresh() ⇒ void
刷新窗口内容
Refresh the window contents
Kind: instance method of Window_ShopStatus
window_ShopStatus.setItem(item) ⇒ void
设置要显示的物品
Set the item to display
Kind: instance method of Window_ShopStatus
| Param | Type | Description |
|---|---|---|
| item | RPG_Item | 物品对象 - The item object |
window_ShopStatus.isEquipItem() ⇒ boolean
检查是否为装备物品
Check if the item is equipment
Kind: instance method of Window_ShopStatus
Returns: boolean - 如果是装备物品则返回true - Returns true if the item is equipment
window_ShopStatus.drawPossession(x, y) ⇒ void
绘制物品持有数
Draw the number of items in possession
Kind: instance method of Window_ShopStatus
| Param | Type | Description |
|---|---|---|
| x | number | 绘制的X坐标 - The x-coordinate to draw |
| y | number | 绘制的Y坐标 - The y-coordinate to draw |
window_ShopStatus.drawEquipInfo(x, y) ⇒ void
绘制装备信息
Draw the equipment information
Kind: instance method of Window_ShopStatus
| Param | Type | Description |
|---|---|---|
| x | number | 绘制的X坐标 - The x-coordinate to draw |
| y | number | 绘制的Y坐标 - The y-coordinate to draw |
window_ShopStatus.statusMembers() ⇒ Array.<Game_Actor>
获取状态显示成员
Get the status display members
Kind: instance method of Window_ShopStatus
Returns: Array.<Game_Actor> - 状态成员数组 - Array of status members
window_ShopStatus.pageSize() ⇒ number
指一页显示几个成员的装备信息。
Refers to how many members' equipment information is displayed on one page.
Kind: instance method of Window_ShopStatus
Returns: number - 页面大小 - Page size
window_ShopStatus.maxPages() ⇒ number
获取最大页数
Get the maximum number of pages
Kind: instance method of Window_ShopStatus
Returns: number - 最大页数 - Maximum number of pages
window_ShopStatus.drawActorEquipInfo(x, y, actor) ⇒ void
绘制角色装备信息
Draw the actor's equipment information
Kind: instance method of Window_ShopStatus
| Param | Type | Description |
|---|---|---|
| x | number | 绘制的X坐标 - The x-coordinate to draw |
| y | number | 绘制的Y坐标 - The y-coordinate to draw |
| actor | Game_Actor | 角色对象 - The actor object |
window_ShopStatus.drawActorParamChange(x, y, actor, item1) ⇒ void
绘制角色能力值变化
Draw the actor's parameter change
Kind: instance method of Window_ShopStatus
| Param | Type | Description |
|---|---|---|
| x | number | 绘制的X坐标 - The x-coordinate to draw |
| y | number | 绘制的Y坐标 - The y-coordinate to draw |
| actor | Game_Actor | 角色对象 - The actor object |
| item1 | RPG_EquipItem | 当前装备物品 - The currently equipped item |
window_ShopStatus.paramId() ⇒ number
获取能力值ID
Get the parameter ID
Kind: instance method of Window_ShopStatus
Returns: number - 能力值ID(2=攻击力,3=防御力) - Parameter ID (2=Attack, 3=Defense)
window_ShopStatus.currentEquippedItem(actor, etypeId) ⇒ RPG_EquipItem | null
获取当前装备的物品
Get the currently equipped item
Kind: instance method of Window_ShopStatus
Returns: RPG_EquipItem | null - 当前装备的物品或null - The currently equipped item or null
| Param | Type | Description |
|---|---|---|
| actor | Game_Actor | 角色对象 - The actor object |
| etypeId | number | 装备类型ID - The equipment type ID |
window_ShopStatus.update() ⇒ void
更新窗口
Update the window
Kind: instance method of Window_ShopStatus
window_ShopStatus.updatePage() ⇒ void
更新页面
Update the page
Kind: instance method of Window_ShopStatus
window_ShopStatus.isPageChangeEnabled() ⇒ boolean
检查是否启用页面更改
Check if page change is enabled
Kind: instance method of Window_ShopStatus
Returns: boolean - 如果启用页面更改则返回true - Returns true if page change is enabled
window_ShopStatus.isPageChangeRequested() ⇒ boolean
检查是否有页面更改请求
Check if page change is requested
Kind: instance method of Window_ShopStatus
Returns: boolean - 如果有页面更改请求则返回true - Returns true if page change is requested
window_ShopStatus.isTouchedInsideFrame() ⇒ boolean
检查是否触摸在窗口框架内
Check if touched inside the window frame
Kind: instance method of Window_ShopStatus
Returns: boolean - 如果触摸在窗口框架内则返回true - Returns true if touched inside the window frame
window_ShopStatus.changePage() ⇒ void
更改页面
Change the page
Kind: instance method of Window_ShopStatus