Class in reactor_windows.js
Window_Selectable
87 public functions in 7 groups · show internal (_) functions
Familiar territory. Window_Selectable keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 2
| initialize() | Sets up a new instance. |
| ensureCursorVisible() | Ensure cursor visible. |
Getting Information 13
| index() | Index. |
| maxCols() | The maximum cols. |
| maxItems() | The maximum items. |
| itemWidth() | Item width. |
| itemHeight() | Item height. |
| maxRows() | The maximum rows. |
| maxTopRow() | The maximum top row. |
| maxPageRows() | The maximum page rows. |
| maxPageItems() | The maximum page items. |
| maxVisibleItems() | The maximum visible items. |
| itemRect() | Item rect. |
| itemRectWithPadding() | Item rect with padding. |
| itemLineRect() | Item line rect. |
Checks (True / False) 12
| isHorizontal() | Whether it is horizontal. |
| isHandled() | Whether it is handled. |
| isOpenAndActive() | Whether it is open and active. |
| isCursorMovable() | Whether it is cursor movable. |
| isScrollEnabled() | Whether it is scroll enabled. |
| isHoverEnabled() | Whether it is hover enabled. |
| isTouchOkEnabled() | Whether it is touch ok enabled. |
| isOkEnabled() | Whether it is ok enabled. |
| isCancelEnabled() | Whether it is cancel enabled. |
| isOkTriggered() | Whether it is ok triggered. |
| isCancelTriggered() | Whether it is cancel triggered. |
| isCurrentItemEnabled() | Whether it is current item enabled. |
Actions 16
| setCursorFixed() | Sets the cursor fixed. |
| setCursorAll() | Sets the cursor all. |
| activate() | Activate. |
| deactivate() | Deactivate. |
| select() | Select. |
| setTopRow() | Sets the top row. |
| setHelpWindow() | Sets the help window. |
| showHelpWindow() | Shows the help window. |
| hideHelpWindow() | Hides the help window. |
| setHandler() | Sets the handler. |
| callHandler() | Call handler. |
| callOkHandler() | Call ok handler. |
| callCancelHandler() | Call cancel handler. |
| callUpdateHelp() | Call update help. |
| setHelpWindowItem() | Sets the help window item. |
| clearItem() | Clears the item. |
Events, Commands & Input 10
| processCursorMove() | Handles the cursor move. |
| processHandling() | Handles the handling. |
| processTouch() | Handles the touch. |
| onTouchSelect() | Called when touch select happens. |
| onTouchOk() | Called when touch ok happens. |
| onTouchCancel() | Called when touch cancel happens. |
| processOk() | Handles the ok. |
| processCancel() | Handles the cancel. |
| processPageup() | Handles the pageup. |
| processPagedown() | Handles the pagedown. |
Updating & Drawing 13
| update() | Update. |
| updateInputData() | Updates the input data each frame. |
| updateHelp() | Updates the help each frame. |
| drawAllItems() | Draws the all items. |
| drawItem() | Draws the item. |
| drawItemBackground() | Draws the item background. |
| drawBackgroundRect() | Draws the background rect. |
| redrawItem() | Redraw item. |
| redrawCurrentItem() | Redraw current item. |
| refresh() | Refresh. |
| paint() | Paint. |
| refreshCursor() | Redraws the cursor. |
| refreshCursorForAll() | Redraws the cursor for all. |
Other 21
| cursorFixed() | Cursor fixed. |
| cursorAll() | Cursor all. |
| colSpacing() | Col spacing. |
| rowSpacing() | Row spacing. |
| contentsHeight() | Contents height. |
| overallHeight() | Overall height. |
| forceSelect() | Force select. |
| smoothSelect() | Smooth select. |
| deselect() | Deselect. |
| reselect() | Reselect. |
| row() | Row. |
| topRow() | Top row. |
| topIndex() | Top index. |
| cursorDown() | Cursor down. |
| cursorUp() | Cursor up. |
| cursorRight() | Cursor right. |
| cursorLeft() | Cursor left. |
| cursorPagedown() | Cursor pagedown. |
| cursorPageup() | Cursor pageup. |
| hitIndex() | Hit index. |
| hitTest() | Hit test. |
Setup & Creation
initialize
method sourceWindow_Selectable.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
ensureCursorVisible
method sourceWindow_Selectable.prototype.ensureCursorVisible(smooth)
Ensure cursor visible. (Same as the RPG Maker MZ method of this name.)
Getting Information
index
method sourceWindow_Selectable.prototype.index()
Index. (Same as the RPG Maker MZ method of this name.)
maxCols
method sourceWindow_Selectable.prototype.maxCols()
The maximum cols. (Same as the RPG Maker MZ method of this name.)
maxItems
method sourceWindow_Selectable.prototype.maxItems()
The maximum items. (Same as the RPG Maker MZ method of this name.)
itemWidth
method sourceWindow_Selectable.prototype.itemWidth()
Item width. (Same as the RPG Maker MZ method of this name.)
itemHeight
method sourceWindow_Selectable.prototype.itemHeight()
Item height. (Same as the RPG Maker MZ method of this name.)
maxRows
method sourceWindow_Selectable.prototype.maxRows()
The maximum rows. (Same as the RPG Maker MZ method of this name.)
maxTopRow
method sourceWindow_Selectable.prototype.maxTopRow()
The maximum top row. (Same as the RPG Maker MZ method of this name.)
maxPageRows
method sourceWindow_Selectable.prototype.maxPageRows()
The maximum page rows. (Same as the RPG Maker MZ method of this name.)
maxPageItems
method sourceWindow_Selectable.prototype.maxPageItems()
The maximum page items. (Same as the RPG Maker MZ method of this name.)
maxVisibleItems
method sourceWindow_Selectable.prototype.maxVisibleItems()
The maximum visible items. (Same as the RPG Maker MZ method of this name.)
itemRect
method sourceWindow_Selectable.prototype.itemRect(index)
Item rect. (Same as the RPG Maker MZ method of this name.)
itemRectWithPadding
method sourceWindow_Selectable.prototype.itemRectWithPadding(index)
Item rect with padding. (Same as the RPG Maker MZ method of this name.)
itemLineRect
method sourceWindow_Selectable.prototype.itemLineRect(index)
Item line rect. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isHorizontal
method sourceWindow_Selectable.prototype.isHorizontal()
Whether it is horizontal. (Same as the RPG Maker MZ method of this name.)
isHandled
method sourceWindow_Selectable.prototype.isHandled(symbol)
Whether it is handled. (Same as the RPG Maker MZ method of this name.)
isOpenAndActive
method sourceWindow_Selectable.prototype.isOpenAndActive()
Whether it is open and active. (Same as the RPG Maker MZ method of this name.)
isCursorMovable
method sourceWindow_Selectable.prototype.isCursorMovable()
Whether it is cursor movable. (Same as the RPG Maker MZ method of this name.)
isScrollEnabled
method sourceWindow_Selectable.prototype.isScrollEnabled()
Whether it is scroll enabled. (Same as the RPG Maker MZ method of this name.)
isHoverEnabled
method sourceWindow_Selectable.prototype.isHoverEnabled()
Whether it is hover enabled. (Same as the RPG Maker MZ method of this name.)
isTouchOkEnabled
method sourceWindow_Selectable.prototype.isTouchOkEnabled()
Whether it is touch ok enabled. (Same as the RPG Maker MZ method of this name.)
isOkEnabled
method sourceWindow_Selectable.prototype.isOkEnabled()
Whether it is ok enabled. (Same as the RPG Maker MZ method of this name.)
isCancelEnabled
method sourceWindow_Selectable.prototype.isCancelEnabled()
Whether it is cancel enabled. (Same as the RPG Maker MZ method of this name.)
isOkTriggered
method sourceWindow_Selectable.prototype.isOkTriggered()
Whether it is ok triggered. (Same as the RPG Maker MZ method of this name.)
isCancelTriggered
method sourceWindow_Selectable.prototype.isCancelTriggered()
Whether it is cancel triggered. (Same as the RPG Maker MZ method of this name.)
isCurrentItemEnabled
method sourceWindow_Selectable.prototype.isCurrentItemEnabled()
Whether it is current item enabled. (Same as the RPG Maker MZ method of this name.)
Actions
setCursorFixed
method sourceWindow_Selectable.prototype.setCursorFixed(cursorFixed)
Sets the cursor fixed. (Same as the RPG Maker MZ method of this name.)
setCursorAll
method sourceWindow_Selectable.prototype.setCursorAll(cursorAll)
Sets the cursor all. (Same as the RPG Maker MZ method of this name.)
activate
method sourceWindow_Selectable.prototype.activate()
Activate. (Same as the RPG Maker MZ method of this name.)
deactivate
method sourceWindow_Selectable.prototype.deactivate()
Deactivate. (Same as the RPG Maker MZ method of this name.)
select
method sourceWindow_Selectable.prototype.select(index)
Select. (Same as the RPG Maker MZ method of this name.)
setTopRow
method sourceWindow_Selectable.prototype.setTopRow(row)
Sets the top row. (Same as the RPG Maker MZ method of this name.)
setHelpWindow
method sourceWindow_Selectable.prototype.setHelpWindow(helpWindow)
Sets the help window. (Same as the RPG Maker MZ method of this name.)
showHelpWindow
method sourceWindow_Selectable.prototype.showHelpWindow()
Shows the help window. (Same as the RPG Maker MZ method of this name.)
hideHelpWindow
method sourceWindow_Selectable.prototype.hideHelpWindow()
Hides the help window. (Same as the RPG Maker MZ method of this name.)
setHandler
method sourceWindow_Selectable.prototype.setHandler(symbol, method)
Sets the handler. (Same as the RPG Maker MZ method of this name.)
callHandler
method sourceWindow_Selectable.prototype.callHandler(symbol)
Call handler. (Same as the RPG Maker MZ method of this name.)
callOkHandler
method sourceWindow_Selectable.prototype.callOkHandler()
Call ok handler. (Same as the RPG Maker MZ method of this name.)
callCancelHandler
method sourceWindow_Selectable.prototype.callCancelHandler()
Call cancel handler. (Same as the RPG Maker MZ method of this name.)
callUpdateHelp
method sourceWindow_Selectable.prototype.callUpdateHelp()
Call update help. (Same as the RPG Maker MZ method of this name.)
setHelpWindowItem
method sourceWindow_Selectable.prototype.setHelpWindowItem(item)
Sets the help window item. (Same as the RPG Maker MZ method of this name.)
clearItem
method sourceWindow_Selectable.prototype.clearItem(index)
Clears the item. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processCursorMove
method sourceWindow_Selectable.prototype.processCursorMove()
Handles the cursor move. (Same as the RPG Maker MZ method of this name.)
processHandling
method sourceWindow_Selectable.prototype.processHandling()
Handles the handling. (Same as the RPG Maker MZ method of this name.)
processTouch
method sourceWindow_Selectable.prototype.processTouch()
Handles the touch. (Same as the RPG Maker MZ method of this name.)
onTouchSelect
method sourceWindow_Selectable.prototype.onTouchSelect(trigger)
Called when touch select happens. (Same as the RPG Maker MZ method of this name.)
onTouchOk
method sourceWindow_Selectable.prototype.onTouchOk()
Called when touch ok happens. (Same as the RPG Maker MZ method of this name.)
onTouchCancel
method sourceWindow_Selectable.prototype.onTouchCancel()
Called when touch cancel happens. (Same as the RPG Maker MZ method of this name.)
processOk
method sourceWindow_Selectable.prototype.processOk()
Handles the ok. (Same as the RPG Maker MZ method of this name.)
processCancel
method sourceWindow_Selectable.prototype.processCancel()
Handles the cancel. (Same as the RPG Maker MZ method of this name.)
processPageup
method sourceWindow_Selectable.prototype.processPageup()
Handles the pageup. (Same as the RPG Maker MZ method of this name.)
processPagedown
method sourceWindow_Selectable.prototype.processPagedown()
Handles the pagedown. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceWindow_Selectable.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateInputData
method sourceWindow_Selectable.prototype.updateInputData()
Updates the input data each frame. (Same as the RPG Maker MZ method of this name.)
updateHelp
method sourceWindow_Selectable.prototype.updateHelp()
Updates the help each frame. (Same as the RPG Maker MZ method of this name.)
drawAllItems
method sourceWindow_Selectable.prototype.drawAllItems()
Draws the all items. (Same as the RPG Maker MZ method of this name.)
drawItem
method sourceWindow_Selectable.prototype.drawItem(/*index*/)
Draws the item. (Same as the RPG Maker MZ method of this name.)
drawItemBackground
method sourceWindow_Selectable.prototype.drawItemBackground(index)
Draws the item background. (Same as the RPG Maker MZ method of this name.)
drawBackgroundRect
method sourceWindow_Selectable.prototype.drawBackgroundRect(rect)
Draws the background rect. (Same as the RPG Maker MZ method of this name.)
redrawItem
method sourceWindow_Selectable.prototype.redrawItem(index)
Redraw item. (Same as the RPG Maker MZ method of this name.)
redrawCurrentItem
method sourceWindow_Selectable.prototype.redrawCurrentItem()
Redraw current item. (Same as the RPG Maker MZ method of this name.)
refresh
method sourceWindow_Selectable.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
paint
method sourceWindow_Selectable.prototype.paint()
Paint. (Same as the RPG Maker MZ method of this name.)
refreshCursor
method sourceWindow_Selectable.prototype.refreshCursor()
Redraws the cursor. (Same as the RPG Maker MZ method of this name.)
refreshCursorForAll
method sourceWindow_Selectable.prototype.refreshCursorForAll()
Redraws the cursor for all. (Same as the RPG Maker MZ method of this name.)
Other
cursorFixed
method sourceWindow_Selectable.prototype.cursorFixed()
Cursor fixed. (Same as the RPG Maker MZ method of this name.)
cursorAll
method sourceWindow_Selectable.prototype.cursorAll()
Cursor all. (Same as the RPG Maker MZ method of this name.)
colSpacing
method sourceWindow_Selectable.prototype.colSpacing()
Col spacing. (Same as the RPG Maker MZ method of this name.)
rowSpacing
method sourceWindow_Selectable.prototype.rowSpacing()
Row spacing. (Same as the RPG Maker MZ method of this name.)
contentsHeight
method sourceWindow_Selectable.prototype.contentsHeight()
Contents height. (Same as the RPG Maker MZ method of this name.)
overallHeight
method sourceWindow_Selectable.prototype.overallHeight()
Overall height. (Same as the RPG Maker MZ method of this name.)
forceSelect
method sourceWindow_Selectable.prototype.forceSelect(index)
Force select. (Same as the RPG Maker MZ method of this name.)
smoothSelect
method sourceWindow_Selectable.prototype.smoothSelect(index)
Smooth select. (Same as the RPG Maker MZ method of this name.)
deselect
method sourceWindow_Selectable.prototype.deselect()
Deselect. (Same as the RPG Maker MZ method of this name.)
reselect
method sourceWindow_Selectable.prototype.reselect()
Reselect. (Same as the RPG Maker MZ method of this name.)
row
method sourceWindow_Selectable.prototype.row()
Row. (Same as the RPG Maker MZ method of this name.)
topRow
method sourceWindow_Selectable.prototype.topRow()
Top row. (Same as the RPG Maker MZ method of this name.)
topIndex
method sourceWindow_Selectable.prototype.topIndex()
Top index. (Same as the RPG Maker MZ method of this name.)
cursorDown
method sourceWindow_Selectable.prototype.cursorDown(wrap)
Cursor down. (Same as the RPG Maker MZ method of this name.)
cursorUp
method sourceWindow_Selectable.prototype.cursorUp(wrap)
Cursor up. (Same as the RPG Maker MZ method of this name.)
cursorRight
method sourceWindow_Selectable.prototype.cursorRight(wrap)
Cursor right. (Same as the RPG Maker MZ method of this name.)
cursorLeft
method sourceWindow_Selectable.prototype.cursorLeft(wrap)
Cursor left. (Same as the RPG Maker MZ method of this name.)
cursorPagedown
method sourceWindow_Selectable.prototype.cursorPagedown()
Cursor pagedown. (Same as the RPG Maker MZ method of this name.)
cursorPageup
method sourceWindow_Selectable.prototype.cursorPageup()
Cursor pageup. (Same as the RPG Maker MZ method of this name.)
hitIndex
method sourceWindow_Selectable.prototype.hitIndex()
Hit index. (Same as the RPG Maker MZ method of this name.)
hitTest
method sourceWindow_Selectable.prototype.hitTest(x, y)
Hit test. (Same as the RPG Maker MZ method of this name.)