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

modular_aphelion/modules/custom_sprites/code/saved_styles.dm

CUSTOM_STYLE_MAX_PREFERENCES_BYTESThe largest preferences.json custom_style_read_file() reads back, 8 MiB.
/proc/custom_style_keyThe key a style is stored under: the target, or markings:zone.
/proc/custom_style_previous_validatePrevious styles are trusted disk data, but still pass the strict package validator.
/proc/custom_style_copy_previousKeep each previous package's native record array independent and JSON-serializable.
/proc/custom_style_hair_preference_typesEvery preference a head target's base look is saved in: its fields, plus head hair's opacity toggle.
/proc/custom_style_normal_colorA colour as the preference writer stores it, black when invalid.
/proc/custom_style_normal_opacityKeep explicit opacity, including fully opaque hair on naturally translucent species.
/proc/custom_style_live_hair_contextA body's live base look for a head target, read from its head when it has one.
/proc/custom_style_markings_slot_dataCopy a character's saved native markings and replace exactly the selected zone, including Clear.
/proc/custom_style_hair_slot_dataReturns an updated copy of a character's save data, or null when that slot has no data.
/proc/custom_style_read_fileA file's text, or null when it's missing or larger than max_bytes.

Define Details

CUSTOM_STYLE_MAX_PREFERENCES_BYTES

The largest preferences.json custom_style_read_file() reads back, 8 MiB.