Class in reactor_windows.js

Window_Selectable

87 functions in 7 groups · hide internal

Windows draw every menu, list and status panel.

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 source
Window_Selectable.prototype.initialize(rect)

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

ensureCursorVisible

method source
Window_Selectable.prototype.ensureCursorVisible(smooth)

Ensure cursor visible. (Same as the RPG Maker MZ method of this name.)

Getting Information

index

method source
Window_Selectable.prototype.index()

Index. (Same as the RPG Maker MZ method of this name.)

maxCols

method source
Window_Selectable.prototype.maxCols()

The maximum cols. (Same as the RPG Maker MZ method of this name.)

maxItems

method source
Window_Selectable.prototype.maxItems()

The maximum items. (Same as the RPG Maker MZ method of this name.)

itemWidth

method source
Window_Selectable.prototype.itemWidth()

Item width. (Same as the RPG Maker MZ method of this name.)

itemHeight

method source
Window_Selectable.prototype.itemHeight()

Item height. (Same as the RPG Maker MZ method of this name.)

maxRows

method source
Window_Selectable.prototype.maxRows()

The maximum rows. (Same as the RPG Maker MZ method of this name.)

maxTopRow

method source
Window_Selectable.prototype.maxTopRow()

The maximum top row. (Same as the RPG Maker MZ method of this name.)

maxPageRows

method source
Window_Selectable.prototype.maxPageRows()

The maximum page rows. (Same as the RPG Maker MZ method of this name.)

maxPageItems

method source
Window_Selectable.prototype.maxPageItems()

The maximum page items. (Same as the RPG Maker MZ method of this name.)

maxVisibleItems

method source
Window_Selectable.prototype.maxVisibleItems()

The maximum visible items. (Same as the RPG Maker MZ method of this name.)

itemRect

method source
Window_Selectable.prototype.itemRect(index)

Item rect. (Same as the RPG Maker MZ method of this name.)

itemRectWithPadding

method source
Window_Selectable.prototype.itemRectWithPadding(index)

Item rect with padding. (Same as the RPG Maker MZ method of this name.)

itemLineRect

method source
Window_Selectable.prototype.itemLineRect(index)

Item line rect. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isHorizontal

method source
Window_Selectable.prototype.isHorizontal()

Whether it is horizontal. (Same as the RPG Maker MZ method of this name.)

isHandled

method source
Window_Selectable.prototype.isHandled(symbol)

Whether it is handled. (Same as the RPG Maker MZ method of this name.)

isOpenAndActive

method source
Window_Selectable.prototype.isOpenAndActive()

Whether it is open and active. (Same as the RPG Maker MZ method of this name.)

isCursorMovable

method source
Window_Selectable.prototype.isCursorMovable()

Whether it is cursor movable. (Same as the RPG Maker MZ method of this name.)

isScrollEnabled

method source
Window_Selectable.prototype.isScrollEnabled()

Whether it is scroll enabled. (Same as the RPG Maker MZ method of this name.)

isHoverEnabled

method source
Window_Selectable.prototype.isHoverEnabled()

Whether it is hover enabled. (Same as the RPG Maker MZ method of this name.)

isTouchOkEnabled

method source
Window_Selectable.prototype.isTouchOkEnabled()

Whether it is touch ok enabled. (Same as the RPG Maker MZ method of this name.)

isOkEnabled

method source
Window_Selectable.prototype.isOkEnabled()

Whether it is ok enabled. (Same as the RPG Maker MZ method of this name.)

isCancelEnabled

method source
Window_Selectable.prototype.isCancelEnabled()

Whether it is cancel enabled. (Same as the RPG Maker MZ method of this name.)

isOkTriggered

method source
Window_Selectable.prototype.isOkTriggered()

Whether it is ok triggered. (Same as the RPG Maker MZ method of this name.)

isCancelTriggered

method source
Window_Selectable.prototype.isCancelTriggered()

Whether it is cancel triggered. (Same as the RPG Maker MZ method of this name.)

isCurrentItemEnabled

method source
Window_Selectable.prototype.isCurrentItemEnabled()

Whether it is current item enabled. (Same as the RPG Maker MZ method of this name.)

Actions

setCursorFixed

method source
Window_Selectable.prototype.setCursorFixed(cursorFixed)

Sets the cursor fixed. (Same as the RPG Maker MZ method of this name.)

setCursorAll

method source
Window_Selectable.prototype.setCursorAll(cursorAll)

Sets the cursor all. (Same as the RPG Maker MZ method of this name.)

activate

method source
Window_Selectable.prototype.activate()

Activate. (Same as the RPG Maker MZ method of this name.)

deactivate

method source
Window_Selectable.prototype.deactivate()

Deactivate. (Same as the RPG Maker MZ method of this name.)

select

method source
Window_Selectable.prototype.select(index)

Select. (Same as the RPG Maker MZ method of this name.)

setTopRow

method source
Window_Selectable.prototype.setTopRow(row)

Sets the top row. (Same as the RPG Maker MZ method of this name.)

setHelpWindow

method source
Window_Selectable.prototype.setHelpWindow(helpWindow)

Sets the help window. (Same as the RPG Maker MZ method of this name.)

showHelpWindow

method source
Window_Selectable.prototype.showHelpWindow()

Shows the help window. (Same as the RPG Maker MZ method of this name.)

hideHelpWindow

method source
Window_Selectable.prototype.hideHelpWindow()

Hides the help window. (Same as the RPG Maker MZ method of this name.)

setHandler

method source
Window_Selectable.prototype.setHandler(symbol, method)

Sets the handler. (Same as the RPG Maker MZ method of this name.)

callHandler

method source
Window_Selectable.prototype.callHandler(symbol)

Call handler. (Same as the RPG Maker MZ method of this name.)

callOkHandler

method source
Window_Selectable.prototype.callOkHandler()

Call ok handler. (Same as the RPG Maker MZ method of this name.)

callCancelHandler

method source
Window_Selectable.prototype.callCancelHandler()

Call cancel handler. (Same as the RPG Maker MZ method of this name.)

callUpdateHelp

method source
Window_Selectable.prototype.callUpdateHelp()

Call update help. (Same as the RPG Maker MZ method of this name.)

setHelpWindowItem

method source
Window_Selectable.prototype.setHelpWindowItem(item)

Sets the help window item. (Same as the RPG Maker MZ method of this name.)

clearItem

method source
Window_Selectable.prototype.clearItem(index)

Clears the item. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

processCursorMove

method source
Window_Selectable.prototype.processCursorMove()

Handles the cursor move. (Same as the RPG Maker MZ method of this name.)

processHandling

method source
Window_Selectable.prototype.processHandling()

Handles the handling. (Same as the RPG Maker MZ method of this name.)

processTouch

method source
Window_Selectable.prototype.processTouch()

Handles the touch. (Same as the RPG Maker MZ method of this name.)

onTouchSelect

method source
Window_Selectable.prototype.onTouchSelect(trigger)

Called when touch select happens. (Same as the RPG Maker MZ method of this name.)

onTouchOk

method source
Window_Selectable.prototype.onTouchOk()

Called when touch ok happens. (Same as the RPG Maker MZ method of this name.)

onTouchCancel

method source
Window_Selectable.prototype.onTouchCancel()

Called when touch cancel happens. (Same as the RPG Maker MZ method of this name.)

processOk

method source
Window_Selectable.prototype.processOk()

Handles the ok. (Same as the RPG Maker MZ method of this name.)

processCancel

method source
Window_Selectable.prototype.processCancel()

Handles the cancel. (Same as the RPG Maker MZ method of this name.)

processPageup

method source
Window_Selectable.prototype.processPageup()

Handles the pageup. (Same as the RPG Maker MZ method of this name.)

processPagedown

method source
Window_Selectable.prototype.processPagedown()

Handles the pagedown. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Window_Selectable.prototype.update()

Update. (Same as the RPG Maker MZ method of this name.)

updateInputData

method source
Window_Selectable.prototype.updateInputData()

Updates the input data each frame. (Same as the RPG Maker MZ method of this name.)

updateHelp

method source
Window_Selectable.prototype.updateHelp()

Updates the help each frame. (Same as the RPG Maker MZ method of this name.)

drawAllItems

method source
Window_Selectable.prototype.drawAllItems()

Draws the all items. (Same as the RPG Maker MZ method of this name.)

drawItem

method source
Window_Selectable.prototype.drawItem(/*index*/)

Draws the item. (Same as the RPG Maker MZ method of this name.)

drawItemBackground

method source
Window_Selectable.prototype.drawItemBackground(index)

Draws the item background. (Same as the RPG Maker MZ method of this name.)

drawBackgroundRect

method source
Window_Selectable.prototype.drawBackgroundRect(rect)

Draws the background rect. (Same as the RPG Maker MZ method of this name.)

redrawItem

method source
Window_Selectable.prototype.redrawItem(index)

Redraw item. (Same as the RPG Maker MZ method of this name.)

redrawCurrentItem

method source
Window_Selectable.prototype.redrawCurrentItem()

Redraw current item. (Same as the RPG Maker MZ method of this name.)

refresh

method source
Window_Selectable.prototype.refresh()

Refresh. (Same as the RPG Maker MZ method of this name.)

paint

method source
Window_Selectable.prototype.paint()

Paint. (Same as the RPG Maker MZ method of this name.)

refreshCursor

method source
Window_Selectable.prototype.refreshCursor()

Redraws the cursor. (Same as the RPG Maker MZ method of this name.)

refreshCursorForAll

method source
Window_Selectable.prototype.refreshCursorForAll()

Redraws the cursor for all. (Same as the RPG Maker MZ method of this name.)

Other

cursorFixed

method source
Window_Selectable.prototype.cursorFixed()

Cursor fixed. (Same as the RPG Maker MZ method of this name.)

cursorAll

method source
Window_Selectable.prototype.cursorAll()

Cursor all. (Same as the RPG Maker MZ method of this name.)

colSpacing

method source
Window_Selectable.prototype.colSpacing()

Col spacing. (Same as the RPG Maker MZ method of this name.)

rowSpacing

method source
Window_Selectable.prototype.rowSpacing()

Row spacing. (Same as the RPG Maker MZ method of this name.)

contentsHeight

method source
Window_Selectable.prototype.contentsHeight()

Contents height. (Same as the RPG Maker MZ method of this name.)

overallHeight

method source
Window_Selectable.prototype.overallHeight()

Overall height. (Same as the RPG Maker MZ method of this name.)

forceSelect

method source
Window_Selectable.prototype.forceSelect(index)

Force select. (Same as the RPG Maker MZ method of this name.)

smoothSelect

method source
Window_Selectable.prototype.smoothSelect(index)

Smooth select. (Same as the RPG Maker MZ method of this name.)

deselect

method source
Window_Selectable.prototype.deselect()

Deselect. (Same as the RPG Maker MZ method of this name.)

reselect

method source
Window_Selectable.prototype.reselect()

Reselect. (Same as the RPG Maker MZ method of this name.)

row

method source
Window_Selectable.prototype.row()

Row. (Same as the RPG Maker MZ method of this name.)

topRow

method source
Window_Selectable.prototype.topRow()

Top row. (Same as the RPG Maker MZ method of this name.)

topIndex

method source
Window_Selectable.prototype.topIndex()

Top index. (Same as the RPG Maker MZ method of this name.)

cursorDown

method source
Window_Selectable.prototype.cursorDown(wrap)

Cursor down. (Same as the RPG Maker MZ method of this name.)

cursorUp

method source
Window_Selectable.prototype.cursorUp(wrap)

Cursor up. (Same as the RPG Maker MZ method of this name.)

cursorRight

method source
Window_Selectable.prototype.cursorRight(wrap)

Cursor right. (Same as the RPG Maker MZ method of this name.)

cursorLeft

method source
Window_Selectable.prototype.cursorLeft(wrap)

Cursor left. (Same as the RPG Maker MZ method of this name.)

cursorPagedown

method source
Window_Selectable.prototype.cursorPagedown()

Cursor pagedown. (Same as the RPG Maker MZ method of this name.)

cursorPageup

method source
Window_Selectable.prototype.cursorPageup()

Cursor pageup. (Same as the RPG Maker MZ method of this name.)

hitIndex

method source
Window_Selectable.prototype.hitIndex()

Hit index. (Same as the RPG Maker MZ method of this name.)

hitTest

method source
Window_Selectable.prototype.hitTest(x, y)

Hit test. (Same as the RPG Maker MZ method of this name.)