/tg/ Station 13 - Modules - Types — Proc Details

markings_room

What the club mirror on the Markings tab needs beyond the markings data: the colour each marking starts in, the custom drawings to show on its cards, which body region owns each pixel of the drawn character, and a surprise. See module.md.

Procs

augment_overlay_imagesWhat an augment draws on the body it's in: an eye's eyes on its head, an implant's overlay, an organ's own overlay.
augment_overlay_mapThe visible augments the preview body wears, mapped as its regions are (custom_sprite_region_map()): which one draws each pixel, facing each way. A pair of eyes, an implant's overlay: the scan chamber's x-ray leaves each showing as it is, in its own shape. Each one's images are filled with its ID colour and composed in draw order, and the result is read once per view. Cached by the images that drew it.
get_constant_dataThe colour each marking with one of its own starts in, by name. Every other marking follows one of the character's mutant colours, which get_ui_data() sends.
get_ui_static_dataThe engine's record, for Hephaestus's tag: it holds all round, so it goes once a window.
send_regionsThe page asks, for the character drawing it shows (params["id"]), which body region owns each pixel of the preview body, facing each way, for the mirror's halo and for pointing at a part. It gets the custom markings editor's region map, cached by the body's geometry, in an update of its own: markings_room_regions_for, the drawing the map fits, and the map itself only when the page doesn't hold it already (params["have"], the key of the one it holds). Most drawings, a marking painted or swapped, leave the body's shape as it was, and its map with it.
surprise_markingsSurprise me: a whole new set of markings the species is meant to wear, on every zone at once, in place of every marking worn now. A zone is left bare MARKINGS_ROOM_SURPRISE_BARE percent of the time and otherwise gets one or two markings, now and then in a marker's paint and, when the character allows glow, glowing. Legs under a taur body get none. The markings it put on go to the window alone, as every markings action's do.

Proc Details

augment_overlay_images

What an augment draws on the body it's in: an eye's eyes on its head, an implant's overlay, an organ's own overlay.

Returns a list of images, or null when it draws nothing.

augment_overlay_map

The visible augments the preview body wears, mapped as its regions are (custom_sprite_region_map()): which one draws each pixel, facing each way. A pair of eyes, an implant's overlay: the scan chamber's x-ray leaves each showing as it is, in its own shape. Each one's images are filled with its ID colour and composed in draw order, and the result is read once per view. Cached by the images that drew it.

Arguments:

Returns list("zones" = the augments' slots, "rows" = facing -> 32 row strings), or null when none draws.

get_constant_data

The colour each marking with one of its own starts in, by name. Every other marking follows one of the character's mutant colours, which get_ui_data() sends.

get_ui_static_data

The engine's record, for Hephaestus's tag: it holds all round, so it goes once a window.

send_regions

The page asks, for the character drawing it shows (params["id"]), which body region owns each pixel of the preview body, facing each way, for the mirror's halo and for pointing at a part. It gets the custom markings editor's region map, cached by the body's geometry, in an update of its own: markings_room_regions_for, the drawing the map fits, and the map itself only when the page doesn't hold it already (params["have"], the key of the one it holds). Most drawings, a marking painted or swapped, leave the body's shape as it was, and its map with it.

surprise_markings

Surprise me: a whole new set of markings the species is meant to wear, on every zone at once, in place of every marking worn now. A zone is left bare MARKINGS_ROOM_SURPRISE_BARE percent of the time and otherwise gets one or two markings, now and then in a marker's paint and, when the character allows glow, glowing. Legs under a taur body get none. The markings it put on go to the window alone, as every markings action's do.