Class in reactor_character_creator.js
ReactorCharacterStudio
22 public functions in 4 groups · show internal (_) functions
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 sourcenew ReactorCharacterStudio()
Sets up a new instance.
Getting Information
valueAt
method sourceReactorCharacterStudio.prototype.valueAt(path)
Value at.
Actions
open
method sourceReactorCharacterStudio.prototype.async open()
Loads the Forge once; the scene hears of it through onReady and onStatus.
setValue
method sourceReactorCharacterStudio.prototype.setValue(path, value)
Sets the value.
endTry
method sourceReactorCharacterStudio.prototype.endTry(keep)
The list closed: kept, or back as it was before the first try.
startView
method sourceReactorCharacterStudio.prototype.startView()
Starts the view.
place
method sourceReactorCharacterStudio.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 sourceReactorCharacterStudio.prototype.setShown(shown)
Sets the shown.
show
method sourceReactorCharacterStudio.prototype.async show(made)
The newest build in the view; the last goes only once this one is ready to replace it.
dispose
method sourceReactorCharacterStudio.prototype.dispose(object)
Dispose.
finish
method sourceReactorCharacterStudio.prototype.async finish()
The finished character: built whole, kept, sent to the server when there is one, and worn.
close
method sourceReactorCharacterStudio.prototype.close()
Close.
Other
dressFirst
method sourceReactorCharacterStudio.prototype.dressFirst()
A new character starts in everyday clothes, whatever the project lets a player take off later.
sliderValue
method sourceReactorCharacterStudio.prototype.sliderValue(control)
A slider's value, or where it rests until the Forge has given one.
optionValue
method sourceReactorCharacterStudio.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 sourceReactorCharacterStudio.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 sourceReactorCharacterStudio.prototype.choose(control, id)
Choose.
rebuildSoon
method sourceReactorCharacterStudio.prototype.rebuildSoon()
Rebuild soon.
rebuild
method sourceReactorCharacterStudio.prototype.async rebuild()
One build at a time: the latest settings win, and those in between are skipped.
settle
method sourceReactorCharacterStudio.prototype.async settle()
The look on screen brought up to what was last asked for, before the character is finished from it.
portrait
method sourceReactorCharacterStudio.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 sourceReactorCharacterStudio.prototype.status(text, bad)
Status.