Class in reactor_character_creator.js

Window_CreatorControls

26 public functions in 7 groups · show internal (_) functions

Players building their own characters.

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 source
Window_CreatorControls.prototype.initialize(rect, studio)

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

Getting Information

maxItems

method source
Window_CreatorControls.prototype.maxItems()

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

currentRow

method source
Window_CreatorControls.prototype.currentRow()

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

Checks (True / False)

isCurrentItemEnabled

method source
Window_CreatorControls.prototype.isCurrentItemEnabled()

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

isTouchScrollEnabled

method source
Window_CreatorControls.prototype.isTouchScrollEnabled()

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

Actions

setTab

method source
Window_CreatorControls.prototype.setTab(tab)

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

setSlider

method source
Window_CreatorControls.prototype.setSlider(row, value)

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

Events, Commands & Input

processOk

method source
Window_CreatorControls.prototype.processOk()

OK has nothing to open on a slider, and says nothing.

Updating & Drawing

update

method source
Window_CreatorControls.prototype.update()

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

updateSliderDrag

method source
Window_CreatorControls.prototype.updateSliderDrag()

Press on a slider's bar and drag: the value follows the pointer.

drawItem

method source
Window_CreatorControls.prototype.drawItem(index)

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

drawItemBackground

method source
Window_CreatorControls.prototype.drawItemBackground(index)

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

drawSlider

method source
Window_CreatorControls.prototype.drawSlider(index, row)

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

drawOption

method source
Window_CreatorControls.prototype.drawOption(rect, half, row)

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

drawSwatch

method source
Window_CreatorControls.prototype.drawSwatch(rect, row)

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

Other

firstRow

method source
Window_CreatorControls.prototype.firstRow()

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

hitIndex

method source
Window_CreatorControls.prototype.hitIndex()

A heading can't be landed on, by key or by pointer.

cursorDown

method source
Window_CreatorControls.prototype.cursorDown(wrap)

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

cursorUp

method source
Window_CreatorControls.prototype.cursorUp()

Up from the top row goes back to the tabs.

backToTabs

method source
Window_CreatorControls.prototype.backToTabs()

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

cursorLeft

method source
Window_CreatorControls.prototype.cursorLeft()

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

cursorRight

method source
Window_CreatorControls.prototype.cursorRight()

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

adjust

method source
Window_CreatorControls.prototype.adjust(direction)

Left and right change the row.

Details

Left and right change the row. Shift makes it fine.

sliderValue

method source
Window_CreatorControls.prototype.sliderValue(row)

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

gaugeRect

method source
Window_CreatorControls.prototype.gaugeRect(index)

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

touchFraction

method source
Window_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.