/tg/ Station 13 - Modules - Types

modular_aphelion/modules/character_preview/code/effects.dm

/proc/character_preview_effectsWhat the page draws over the character preview's drawing, because a flatten leaves it out: the rows tg's height filters move, and the mob's transform (body size). Takes the drawing's frame height and how far its tile sits above the frame's bottom (the "y" the page gets). Returns the page's keys for them, left out when the mob has neither:
/proc/character_preview_rowsThe runs of frame rows that the mob's displacement filters move, as character_preview_effects() gives them, or null if there are none or one moves more than whole rows. Filters run in the order tg keeps them, each map centred on the tile and then moved by its own offset.
/proc/character_preview_map_rowsHow a displacement map moves each of its rows, from the bottom: -1 when a row shows the row below, 1 the row above, 0 itself. FALSE for a map that isn't a tile wide, or whose rows don't each move whole and as one. tg's heights use a handful of shared maps, so each is read once.
/proc/character_preview_map_pixel_moveHow one displacement map pixel moves its row: -1, 0 or 1 as character_preview_map_rows() has them, or null when it moves it sideways or by part of a pixel.