Class in reactor_windows.js

Window_Scrollable

35 functions in 7 groups · hide internal

Windows draw every menu, list and status panel.

Familiar territory. Window_Scrollable 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 1

initialize() Sets up a new instance.

Getting Information 2

maxScrollX() The maximum scroll x.
maxScrollY() The maximum scroll y.

Checks (True / False) 4

isWheelScrollEnabled() Whether it is wheel scroll enabled.
isTouchScrollEnabled() Whether it is touch scroll enabled.
isScrollEnabled() Whether it is scroll enabled.
isTouchedInsideFrame() Whether it is touched inside frame.

Actions 2

clearScrollStatus() Clears the scroll status.
setScrollAccel() Sets the scroll accel.

Events, Commands & Input 5

processWheelScroll() Handles the wheel scroll.
processTouchScroll() Handles the touch scroll.
onTouchScrollStart() Called when touch scroll start happens.
onTouchScroll() Called when touch scroll happens.
onTouchScrollEnd() Called when touch scroll end happens.

Updating & Drawing 7

update() Update.
updateSmoothScroll() Updates the smooth scroll each frame.
updateScrollAccel() Updates the scroll accel each frame.
updateArrows() Updates the arrows each frame.
updateOrigin() Updates the origin each frame.
updateScrollBase() Updates the scroll base each frame.
paint() Paint.

Other 14

scrollX() Scroll x.
scrollY() Scroll y.
scrollBaseX() Scroll base x.
scrollBaseY() Scroll base y.
scrollTo() Scroll to.
scrollBy() Scroll by.
smoothScrollTo() Smooth scroll to.
smoothScrollBy() Smooth scroll by.
overallWidth() Overall width.
overallHeight() Overall height.
scrollBlockWidth() Scroll block width.
scrollBlockHeight() Scroll block height.
smoothScrollDown() Smooth scroll down.
smoothScrollUp() Smooth scroll up.

Setup & Creation

initialize

method source
Window_Scrollable.prototype.initialize(rect)

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

Getting Information

maxScrollX

method source
Window_Scrollable.prototype.maxScrollX()

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

maxScrollY

method source
Window_Scrollable.prototype.maxScrollY()

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

Checks (True / False)

isWheelScrollEnabled

method source
Window_Scrollable.prototype.isWheelScrollEnabled()

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

isTouchScrollEnabled

method source
Window_Scrollable.prototype.isTouchScrollEnabled()

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

isScrollEnabled

method source
Window_Scrollable.prototype.isScrollEnabled()

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

isTouchedInsideFrame

method source
Window_Scrollable.prototype.isTouchedInsideFrame()

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

Actions

clearScrollStatus

method source
Window_Scrollable.prototype.clearScrollStatus()

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

setScrollAccel

method source
Window_Scrollable.prototype.setScrollAccel(x, y)

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

Events, Commands & Input

processWheelScroll

method source
Window_Scrollable.prototype.processWheelScroll()

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

processTouchScroll

method source
Window_Scrollable.prototype.processTouchScroll()

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

onTouchScrollStart

method source
Window_Scrollable.prototype.onTouchScrollStart()

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

onTouchScroll

method source
Window_Scrollable.prototype.onTouchScroll()

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

onTouchScrollEnd

method source
Window_Scrollable.prototype.onTouchScrollEnd()

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

Updating & Drawing

update

method source
Window_Scrollable.prototype.update()

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

updateSmoothScroll

method source
Window_Scrollable.prototype.updateSmoothScroll()

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

updateScrollAccel

method source
Window_Scrollable.prototype.updateScrollAccel()

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

updateArrows

method source
Window_Scrollable.prototype.updateArrows()

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

updateOrigin

method source
Window_Scrollable.prototype.updateOrigin()

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

updateScrollBase

method source
Window_Scrollable.prototype.updateScrollBase(baseX, baseY)

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

paint

method source
Window_Scrollable.prototype.paint()

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

Other

scrollX

method source
Window_Scrollable.prototype.scrollX()

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

scrollY

method source
Window_Scrollable.prototype.scrollY()

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

scrollBaseX

method source
Window_Scrollable.prototype.scrollBaseX()

Scroll base x. (Same as the RPG Maker MZ method of this name.)

scrollBaseY

method source
Window_Scrollable.prototype.scrollBaseY()

Scroll base y. (Same as the RPG Maker MZ method of this name.)

scrollTo

method source
Window_Scrollable.prototype.scrollTo(x, y)

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

scrollBy

method source
Window_Scrollable.prototype.scrollBy(x, y)

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

smoothScrollTo

method source
Window_Scrollable.prototype.smoothScrollTo(x, y)

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

smoothScrollBy

method source
Window_Scrollable.prototype.smoothScrollBy(x, y)

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

overallWidth

method source
Window_Scrollable.prototype.overallWidth()

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

overallHeight

method source
Window_Scrollable.prototype.overallHeight()

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

scrollBlockWidth

method source
Window_Scrollable.prototype.scrollBlockWidth()

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

scrollBlockHeight

method source
Window_Scrollable.prototype.scrollBlockHeight()

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

smoothScrollDown

method source
Window_Scrollable.prototype.smoothScrollDown(n)

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

smoothScrollUp

method source
Window_Scrollable.prototype.smoothScrollUp(n)

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