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

modular_aphelion/modules/cyborg_customization/code/layout_schema.dm

CYBORG_LAYOUT_MIN_ROTATIONThe lowest rotation a part can have, in degrees
CYBORG_LAYOUT_MAX_ROTATIONThe highest rotation a part can have, in degrees
CYBORG_LAYOUT_MIN_SCALEThe smallest scale a part can have, as a multiple of its art's size
CYBORG_LAYOUT_MAX_SCALEThe largest scale a part can have, as a multiple of its art's size
CYBORG_LAYOUT_MIN_PRIORITYThe lowest layer order a part can have, which draws it under the other parts
CYBORG_LAYOUT_MAX_PRIORITYThe highest layer order a part can have, which draws it over the other parts
/proc/cyborg_layout_supported_slotsSave texts store parts by their place here, so only append. Every caller shares the list, so none may change it
/proc/cyborg_layout_supported_advanced_keysSave texts store overrides by their place here, so only append.
/proc/cyborg_layout_defaultReturns a new layout tree with default parts and no presets or model defaults
/proc/cyborg_layout_default_sprite_sizeReturns the sprite size a slot's parts start at
/proc/cyborg_layout_sprite_sizeReturns a sprite size clamped to the allowed range, or the slot's default when it isn't a number
/proc/cyborg_layout_default_entryReturns a new part entry with every field at its default
/proc/cyborg_layout_default_slotsReturns a new layout with every part slot at its defaults
/proc/cyborg_layout_numberReturns a number clamped to its range and rounded to its step, or the default when it isn't one. Text numbers are read too
/proc/cyborg_layout_normalize_entryReturns a part entry in canonical form, every field bounded and filled in, or the slot's defaults when raw isn't a list
/proc/cyborg_layout_normalize_advancedReturns a part's overrides in canonical form. An import also expands donor pose-wide entries to each direction
/proc/cyborg_layout_normalize_advanced_entryReturns one override with only the fields it sets, bounded, or null when it sets none. Arousal states can't nest, so they pass allow_arousal FALSE
/proc/cyborg_layout_normalize_slotsReturns a layout with every part slot normalized, defaults filling the missing ones
/proc/cyborg_layout_normalizeA layout tree in its canonical form, or the default tree when raw is not one.
/proc/cyborg_layout_import_is_futureWhether a stored or uploaded slot comes from a newer build. It is kept as it is and never rewritten.
/proc/cyborg_identity_import_sanitize_slotImport-only migration of donor identity keys. Layouts are read separately into the sidecar.

Define Details

CYBORG_LAYOUT_MAX_PRIORITY

The highest layer order a part can have, which draws it over the other parts

CYBORG_LAYOUT_MAX_ROTATION

The highest rotation a part can have, in degrees

CYBORG_LAYOUT_MAX_SCALE

The largest scale a part can have, as a multiple of its art's size

CYBORG_LAYOUT_MIN_PRIORITY

The lowest layer order a part can have, which draws it under the other parts

CYBORG_LAYOUT_MIN_ROTATION

The lowest rotation a part can have, in degrees

CYBORG_LAYOUT_MIN_SCALE

The smallest scale a part can have, as a multiple of its art's size