Class in reactor_character_creator.js

ReactorCharacterStudio

22 functions in 4 groups · hide internal

Players building their own characters.

What is being built, and the small 3D view of it. It outlives its scene, because typing a name is a scene of its own and leaving a scene makes a fresh one. The view has its own canvas, laid over the game's inside a window's frame, because the game's renderer is busy being the game.

class ReactorCharacterStudio

Quick Reference

Setup & Creation 1

constructor() Sets up a new instance.

Getting Information 1

valueAt() Value at.

Actions 10

open() Loads the Forge once; the scene hears of it through onReady and onStatus.
setValue() Sets the value.
endTry() The list closed: kept, or back as it was before the first try.
startView() Starts the view.
place() Lays the view over a place in the game's own coordinates, however the game is scaled in its window.
setShown() Sets the shown.
show() The newest build in the view; the last goes only once this one is ready to replace it.
dispose() Dispose.
finish() The finished character: built whole, kept, sent to the server when there is one, and worn.
close() Close.

Other 10

dressFirst() A new character starts in everyday clothes, whatever the project lets a player take off later.
sliderValue() A slider's value, or where it rests until the Forge has given one.
optionValue() What a list control holds now.
tryOn() A list's highlighted choice, worn for a look before it is chosen.
choose() Choose.
rebuildSoon() Rebuild soon.
rebuild() One build at a time: the latest settings win, and those in between are skipped.
settle() The look on screen brought up to what was last asked for, before the character is finished from it.
portrait() The character's portrait, framed as the Forge frames a face sheet: the eyes on one line, 42% of the way down…
status() Status.

Setup & Creation

constructor

constructor source
new ReactorCharacterStudio()

Sets up a new instance.

Getting Information

valueAt

method source
ReactorCharacterStudio.prototype.valueAt(path)

Value at.

Actions

open

method source
ReactorCharacterStudio.prototype.async open()

Loads the Forge once; the scene hears of it through onReady and onStatus.

setValue

method source
ReactorCharacterStudio.prototype.setValue(path, value)

Sets the value.

endTry

method source
ReactorCharacterStudio.prototype.endTry(keep)

The list closed: kept, or back as it was before the first try.

startView

method source
ReactorCharacterStudio.prototype.startView()

Starts the view.

place

method source
ReactorCharacterStudio.prototype.place(x, y, width, height)

Lays the view over a place in the game's own coordinates, however the game is scaled in its window.

setShown

method source
ReactorCharacterStudio.prototype.setShown(shown)

Sets the shown.

show

method source
ReactorCharacterStudio.prototype.async show(made)

The newest build in the view; the last goes only once this one is ready to replace it.

dispose

method source
ReactorCharacterStudio.prototype.dispose(object)

Dispose.

finish

method source
ReactorCharacterStudio.prototype.async finish()

The finished character: built whole, kept, sent to the server when there is one, and worn.

close

method source
ReactorCharacterStudio.prototype.close()

Close.

Other

dressFirst

method source
ReactorCharacterStudio.prototype.dressFirst()

A new character starts in everyday clothes, whatever the project lets a player take off later.

sliderValue

method source
ReactorCharacterStudio.prototype.sliderValue(control)

A slider's value, or where it rests until the Forge has given one.

optionValue

method source
ReactorCharacterStudio.prototype.optionValue(control)

What a list control holds now.

Details

What a list control holds now. An outfit is a set of garments, so its name is only known from the choice.

tryOn

method source
ReactorCharacterStudio.prototype.tryOn(control, id)

A list's highlighted choice, worn for a look before it is chosen.

Details

A list's highlighted choice, worn for a look before it is chosen. The first try remembers how things were.

choose

method source
ReactorCharacterStudio.prototype.choose(control, id)

Choose.

rebuildSoon

method source
ReactorCharacterStudio.prototype.rebuildSoon()

Rebuild soon.

rebuild

method source
ReactorCharacterStudio.prototype.async rebuild()

One build at a time: the latest settings win, and those in between are skipped.

settle

method source
ReactorCharacterStudio.prototype.async settle()

The look on screen brought up to what was last asked for, before the character is finished from it.

portrait

method source
ReactorCharacterStudio.prototype.portrait()

The character's portrait, framed as the Forge frames a face sheet: the eyes on one line, 42% of the way down a square that spans a little more than the head.

Details

The character's portrait, framed as the Forge frames a face sheet: the eyes on one line, 42% of the way down a square that spans a little more than the head. Drawn from the view's own scene, so it has the same lights, then the view goes back as it was.

status

method source
ReactorCharacterStudio.prototype.status(text, bad)

Status.