Class in reactor_character_creator.js
Window_CreatorControls
26 functions in 7 groups · hide internal
Familiar territory. Window_CreatorControls keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
One row for each thing a tab lets a player change, with the Forge's own group headings.
function Window_CreatorControls()
Quick Reference
Setup & Creation 1
| initialize() | Sets up a new instance. |
Getting Information 2
| maxItems() | The maximum items. |
| currentRow() | The current row. |
Checks (True / False) 2
| isCurrentItemEnabled() | Whether it is current item enabled. |
| isTouchScrollEnabled() | Whether it is touch scroll enabled. |
Actions 2
| setTab() | Sets the tab. |
| setSlider() | Sets the slider. |
Events, Commands & Input 1
| processOk() | OK has nothing to open on a slider, and says nothing. |
Updating & Drawing 7
| update() | Update. |
| updateSliderDrag() | Press on a slider's bar and drag: the value follows the pointer. |
| drawItem() | Draws the item. |
| drawItemBackground() | Draws the item background. |
| drawSlider() | Draws the slider. |
| drawOption() | Draws the option. |
| drawSwatch() | Draws the swatch. |
Other 11
| firstRow() | First row. |
| hitIndex() | A heading can't be landed on, by key or by pointer. |
| cursorDown() | Cursor down. |
| cursorUp() | Up from the top row goes back to the tabs. |
| backToTabs() | Back to tabs. |
| cursorLeft() | Cursor left. |
| cursorRight() | Cursor right. |
| adjust() | Left and right change the row. |
| sliderValue() | Slider value. |
| gaugeRect() | Gauge rect. |
| touchFraction() | Where the pointer is along a row's bar, 0 to 1. |
Setup & Creation
initialize
method sourceWindow_CreatorControls.prototype.initialize(rect, studio)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxItems
method sourceWindow_CreatorControls.prototype.maxItems()
The maximum items. (Same as the RPG Maker MZ method of this name.)
currentRow
method sourceWindow_CreatorControls.prototype.currentRow()
The current row. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isCurrentItemEnabled
method sourceWindow_CreatorControls.prototype.isCurrentItemEnabled()
Whether it is current item enabled. (Same as the RPG Maker MZ method of this name.)
isTouchScrollEnabled
method sourceWindow_CreatorControls.prototype.isTouchScrollEnabled()
Whether it is touch scroll enabled. (Same as the RPG Maker MZ method of this name.)
Actions
setTab
method sourceWindow_CreatorControls.prototype.setTab(tab)
Sets the tab. (Same as the RPG Maker MZ method of this name.)
setSlider
method sourceWindow_CreatorControls.prototype.setSlider(row, value)
Sets the slider. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processOk
method sourceWindow_CreatorControls.prototype.processOk()
OK has nothing to open on a slider, and says nothing.
Updating & Drawing
update
method sourceWindow_CreatorControls.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateSliderDrag
method sourceWindow_CreatorControls.prototype.updateSliderDrag()
Press on a slider's bar and drag: the value follows the pointer.
drawItem
method sourceWindow_CreatorControls.prototype.drawItem(index)
Draws the item. (Same as the RPG Maker MZ method of this name.)
drawItemBackground
method sourceWindow_CreatorControls.prototype.drawItemBackground(index)
Draws the item background. (Same as the RPG Maker MZ method of this name.)
drawSlider
method sourceWindow_CreatorControls.prototype.drawSlider(index, row)
Draws the slider. (Same as the RPG Maker MZ method of this name.)
drawOption
method sourceWindow_CreatorControls.prototype.drawOption(rect, half, row)
Draws the option. (Same as the RPG Maker MZ method of this name.)
drawSwatch
method sourceWindow_CreatorControls.prototype.drawSwatch(rect, row)
Draws the swatch. (Same as the RPG Maker MZ method of this name.)
Other
firstRow
method sourceWindow_CreatorControls.prototype.firstRow()
First row. (Same as the RPG Maker MZ method of this name.)
hitIndex
method sourceWindow_CreatorControls.prototype.hitIndex()
A heading can't be landed on, by key or by pointer.
cursorDown
method sourceWindow_CreatorControls.prototype.cursorDown(wrap)
Cursor down. (Same as the RPG Maker MZ method of this name.)
cursorUp
method sourceWindow_CreatorControls.prototype.cursorUp()
Up from the top row goes back to the tabs.
backToTabs
method sourceWindow_CreatorControls.prototype.backToTabs()
Back to tabs. (Same as the RPG Maker MZ method of this name.)
cursorLeft
method sourceWindow_CreatorControls.prototype.cursorLeft()
Cursor left. (Same as the RPG Maker MZ method of this name.)
cursorRight
method sourceWindow_CreatorControls.prototype.cursorRight()
Cursor right. (Same as the RPG Maker MZ method of this name.)
adjust
method sourceWindow_CreatorControls.prototype.adjust(direction)
Left and right change the row.
Details
Left and right change the row. Shift makes it fine.
sliderValue
method sourceWindow_CreatorControls.prototype.sliderValue(row)
Slider value. (Same as the RPG Maker MZ method of this name.)
gaugeRect
method sourceWindow_CreatorControls.prototype.gaugeRect(index)
Gauge rect. (Same as the RPG Maker MZ method of this name.)
touchFraction
method sourceWindow_CreatorControls.prototype.touchFraction(index, dragging)
Where the pointer is along a row's bar, 0 to 1.
Details
Where the pointer is along a row's bar, 0 to 1. Null when off it, unless already dragging it.