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 sourceWindow_Scrollable.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxScrollX
method sourceWindow_Scrollable.prototype.maxScrollX()
The maximum scroll x. (Same as the RPG Maker MZ method of this name.)
maxScrollY
method sourceWindow_Scrollable.prototype.maxScrollY()
The maximum scroll y. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isWheelScrollEnabled
method sourceWindow_Scrollable.prototype.isWheelScrollEnabled()
Whether it is wheel scroll enabled. (Same as the RPG Maker MZ method of this name.)
isTouchScrollEnabled
method sourceWindow_Scrollable.prototype.isTouchScrollEnabled()
Whether it is touch scroll enabled. (Same as the RPG Maker MZ method of this name.)
isScrollEnabled
method sourceWindow_Scrollable.prototype.isScrollEnabled()
Whether it is scroll enabled. (Same as the RPG Maker MZ method of this name.)
isTouchedInsideFrame
method sourceWindow_Scrollable.prototype.isTouchedInsideFrame()
Whether it is touched inside frame. (Same as the RPG Maker MZ method of this name.)
Actions
clearScrollStatus
method sourceWindow_Scrollable.prototype.clearScrollStatus()
Clears the scroll status. (Same as the RPG Maker MZ method of this name.)
setScrollAccel
method sourceWindow_Scrollable.prototype.setScrollAccel(x, y)
Sets the scroll accel. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processWheelScroll
method sourceWindow_Scrollable.prototype.processWheelScroll()
Handles the wheel scroll. (Same as the RPG Maker MZ method of this name.)
processTouchScroll
method sourceWindow_Scrollable.prototype.processTouchScroll()
Handles the touch scroll. (Same as the RPG Maker MZ method of this name.)
onTouchScrollStart
method sourceWindow_Scrollable.prototype.onTouchScrollStart()
Called when touch scroll start happens. (Same as the RPG Maker MZ method of this name.)
onTouchScroll
method sourceWindow_Scrollable.prototype.onTouchScroll()
Called when touch scroll happens. (Same as the RPG Maker MZ method of this name.)
onTouchScrollEnd
method sourceWindow_Scrollable.prototype.onTouchScrollEnd()
Called when touch scroll end happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceWindow_Scrollable.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateSmoothScroll
method sourceWindow_Scrollable.prototype.updateSmoothScroll()
Updates the smooth scroll each frame. (Same as the RPG Maker MZ method of this name.)
updateScrollAccel
method sourceWindow_Scrollable.prototype.updateScrollAccel()
Updates the scroll accel each frame. (Same as the RPG Maker MZ method of this name.)
updateArrows
method sourceWindow_Scrollable.prototype.updateArrows()
Updates the arrows each frame. (Same as the RPG Maker MZ method of this name.)
updateOrigin
method sourceWindow_Scrollable.prototype.updateOrigin()
Updates the origin each frame. (Same as the RPG Maker MZ method of this name.)
updateScrollBase
method sourceWindow_Scrollable.prototype.updateScrollBase(baseX, baseY)
Updates the scroll base each frame. (Same as the RPG Maker MZ method of this name.)
paint
method sourceWindow_Scrollable.prototype.paint()
Paint. (Same as the RPG Maker MZ method of this name.)
Other
scrollX
method sourceWindow_Scrollable.prototype.scrollX()
Scroll x. (Same as the RPG Maker MZ method of this name.)
scrollY
method sourceWindow_Scrollable.prototype.scrollY()
Scroll y. (Same as the RPG Maker MZ method of this name.)
scrollBaseX
method sourceWindow_Scrollable.prototype.scrollBaseX()
Scroll base x. (Same as the RPG Maker MZ method of this name.)
scrollBaseY
method sourceWindow_Scrollable.prototype.scrollBaseY()
Scroll base y. (Same as the RPG Maker MZ method of this name.)
scrollTo
method sourceWindow_Scrollable.prototype.scrollTo(x, y)
Scroll to. (Same as the RPG Maker MZ method of this name.)
scrollBy
method sourceWindow_Scrollable.prototype.scrollBy(x, y)
Scroll by. (Same as the RPG Maker MZ method of this name.)
smoothScrollTo
method sourceWindow_Scrollable.prototype.smoothScrollTo(x, y)
Smooth scroll to. (Same as the RPG Maker MZ method of this name.)
smoothScrollBy
method sourceWindow_Scrollable.prototype.smoothScrollBy(x, y)
Smooth scroll by. (Same as the RPG Maker MZ method of this name.)
overallWidth
method sourceWindow_Scrollable.prototype.overallWidth()
Overall width. (Same as the RPG Maker MZ method of this name.)
overallHeight
method sourceWindow_Scrollable.prototype.overallHeight()
Overall height. (Same as the RPG Maker MZ method of this name.)
scrollBlockWidth
method sourceWindow_Scrollable.prototype.scrollBlockWidth()
Scroll block width. (Same as the RPG Maker MZ method of this name.)
scrollBlockHeight
method sourceWindow_Scrollable.prototype.scrollBlockHeight()
Scroll block height. (Same as the RPG Maker MZ method of this name.)
smoothScrollDown
method sourceWindow_Scrollable.prototype.smoothScrollDown(n)
Smooth scroll down. (Same as the RPG Maker MZ method of this name.)
smoothScrollUp
method sourceWindow_Scrollable.prototype.smoothScrollUp(n)
Smooth scroll up. (Same as the RPG Maker MZ method of this name.)