augment_paint 
The recolourable finishes' colours in character setup: their finishes and presets sent once with the rest of the constant data, with the brand styles the finish picker tries on, each slot's colours, and the editor's two actions, each answered with the colours alone. The preview's skin follows the preview mob as it is rebuilt (add_preview_answer()). The brand styles' try-on sprites are sent only when the window asks for them (send_augment_brand_sprites()).
Vars | |
| sent_skin | The preview skin the page last got, as colour, ramp and body run together, so an answer sends it only when it changed. |
|---|---|
Procs | |
| add_preview_answer | Adds the preview's skin to an answer when it changed since the page last got it. The answer comes once the preview mob has been rebuilt for the changes it covers, while the window's own data, sent as each change is made, read the mob before that. So the editor tints its skin base as the game draws the character. |
| copy_augment_colors | Gives every slot wearing a recolourable finish the colours params["slot"] draws, its default included. |
| get_constant_data | Returns what the editor reads of every recolourable finish, by name, sent once with the rest of the constant data: its id, its channels and their labels, its default and presets, and which zones its paint sheet has _paint and _glow states for; the editor's quick swatches; and for the finish picker's try-on, every brand style's key and the zones it has sprites for, by name (augment_brand_states()). |
| get_ui_assets | Returns the editor's sprites, the finishes' sheets cut up for its preview. |
| get_ui_data | Returns each slot's colours, the skin the editor tints its preview's skin base with, and whether the character's lights glow. |
| preview_skin | Returns the skin the editor tints its preview's skin base with: the preview body's chest colour, and whether it is a mutant
colour, which the humanoid skin ramp draws. With it, whether the body is drawn feminine (limb_gender "f"), so a dimorphic
brand head or chest tries on as its head_f or chest_f sprite. |
| send_augment_brand_sprites | Sends the brand styles' try-on sheet to the preferences window, when the window is about to need the Augments room rather than whenever preferences open: the window asks for it once, in the background, ahead of the room. |
| send_augment_colors | Sends the open character setup window the augment colours. |
| set_augment_colors | Sets one slot's colours, or with no colours its finish's default. The slot's finish must be recolourable. |
Var Details
sent_skin 
The preview skin the page last got, as colour, ramp and body run together, so an answer sends it only when it changed.
Proc Details
add_preview_answer
Adds the preview's skin to an answer when it changed since the page last got it. The answer comes once the preview mob has been rebuilt for the changes it covers, while the window's own data, sent as each change is made, read the mob before that. So the editor tints its skin base as the game draws the character.
copy_augment_colors
Gives every slot wearing a recolourable finish the colours params["slot"] draws, its default included.
Arguments:
- params: "slot", the augment slot copied from, which must wear a recolourable finish.
- user: The player acting.
Returns:
- FALSE: The window is sent the colours alone, or nothing for a refused action.
get_constant_data
Returns what the editor reads of every recolourable finish, by name, sent once with the rest of the constant data: its id, its channels and their labels, its default and presets, and which zones its paint sheet has _paint and _glow states for; the editor's quick swatches; and for the finish picker's try-on, every brand style's key and the zones it has sprites for, by name (augment_brand_states()).
get_ui_assets
Returns the editor's sprites, the finishes' sheets cut up for its preview.
get_ui_data
Returns each slot's colours, the skin the editor tints its preview's skin base with, and whether the character's lights glow.
preview_skin
Returns the skin the editor tints its preview's skin base with: the preview body's chest colour, and whether it is a mutant
colour, which the humanoid skin ramp draws. With it, whether the body is drawn feminine (limb_gender "f"), so a dimorphic
brand head or chest tries on as its head_f or chest_f sprite.
send_augment_brand_sprites
Sends the brand styles' try-on sheet to the preferences window, when the window is about to need the Augments room rather than whenever preferences open: the window asks for it once, in the background, ahead of the room.
send_augment_colors
Sends the open character setup window the augment colours.
Returns:
- FALSE: Nothing else needs sending.
set_augment_colors
Sets one slot's colours, or with no colours its finish's default. The slot's finish must be recolourable.
Arguments:
- params: "slot", an augment slot, and "colors", a colour string or null.
- user: The player acting.
Returns:
- FALSE: The window is sent the colours alone, or nothing for a refused action.